0
我無法在IDL中繪製不同的顏色。如果我做以下事情:在IDL中繪製顏色
loadct, 13
plot, x, y, color=n
不管我給n放什麼樣的價值,我只能得到不同的紅色陰影。我如何繪製其他顏色?
我無法在IDL中繪製不同的顏色。如果我做以下事情:在IDL中繪製顏色
loadct, 13
plot, x, y, color=n
不管我給n放什麼樣的價值,我只能得到不同的紅色陰影。我如何繪製其他顏色?
要回答我的問題:
我設法使用getcolor功能的顏色繪製。我覺得比平時做得更直接。
colors = [getcolor('white'), getcolor('red'), getcolor('blue'), getcolor('green'), getcolor('magenta'), getcolor('cyan')]
您處於分解顏色模式;改變爲索引顏色模式:
device, decomposed=0