跳轉到內容

Gnuplot/顏色

來自華夏公益教科書,面向開放世界的開放書籍
彩虹圖表的三維 RGB 配置。使用 : lc rgb variable 從輸入的第四列讀取顏色

顏色規格

  • 顯式 rgb(紅色、綠色、藍色)值
    • 十六進位制字串(如“#0000ff”)
    • rgb 值(如“256”)
  • 命名顏色
  • 引用當前 PM3D 調色盤的顏色值
    • 調色盤 cb -45 # 調色盤當前 cb 範圍中與 -45 對應的顏色
    • 調色盤 frac 0.3 # 沿著調色盤的分數
rgbcolor "colorname" # e.g. "blue"
rgbcolor "0xRRGGBB" # string containing hexadecimal constant
rgbcolor "0xAARRGGBB" # string containing hexadecimal constant
rgbcolor "#RRGGBB" # string containing hexadecimal in x11 format
rgbcolor "#AARRGGBB" # string containing hexadecimal in x11 format
rgbcolor <integer val> # integer value representing AARRGGBB
rgbcolor variable # integer value is read from input file
palette frac <val> # <val> runs from 0 to 1
palette cb <value> # <val> lies within cbrange
palette z
variable # color index is read from input file
bgnd # background color
black
華夏公益教科書