SILENT: Do not print out IDL color information. GETINFO: Do not do anything to the color table, just print global scope, therefore these colors can be This is very useful since system variables have or the 24-bit integer corresponding to each color and the value of the color table index SYSTEM_VARIABLES: Define system variables with the name of each to 0 to turn off decomposed color on 24-bit devices. DECOMPOSED = Set this keyword to explicitly use decomposed color TABLESIZE = Returns the number of color table indices. NPLOTCOLORS = Returns the number of line plot colors defined. 24-bit integers corresponding to the line plot colors. VALUES = Returns an array of the color table indices (8-bit) or NAMES = Returns a string array of the line plot color names. B_PLOT = The BLUE values of line plot colors. ![]() G_PLOT = The GREEN values of line plot colors. R_PLOT = The RED values of line plot colors. PLOTCOLORS = A string array of user-defined line plot color names. must all have the same size! (See EXAMPLE.) If omitted, must provide all four of the following keywords and they (You can provide your own set of line plot colors, but you PLOTCOLORS=string array, R_PLOT=array, G_PLOT=array, work correctly on both X Window and PostScript devices. To set up device independent line plot colors. #IDL STRTRIM PRO#Pro gsetcolors, NAMES=names, VALUES=ctindx, $ I had to force all non-color plots with color=!black, otherwise I just got a blank page. Re-running this pro after switching to set_plot,'ps' did not work. However, I did have trouble with PS output. With a little modification, you can get setcolors working on standard Xwindows on a mac (see previous post for explanation pro is appended as "gsetcolors/pro"). I should not that I can display images in color very well using "frame", which I believe is derived from "tvscl" ultimately. So, can anyone help get one of these popular methods working? #IDL STRTRIM INSTALL#I did > port install gnudatalanguage +wxWidgets I get the error message, "WIDGET_BASE: GDL was compiled without support for wxWidgets" ![]() When I run fsc_colors (>oplot, ,psym=6,symsize=2,color=fsc_color("green")) This is from the line: device, get_visual_name=visual, $ When I run setcolors I get the error, " DEVICE: Keyword parameter GET_VISUAL_NAME not allowed in call to: DEVICE" The other system is fsc_colors, which I think it popular with coyote and his devotees, use like: plot,data,color=fsc_color("green"). Setcolors.pro, which you run at startup, which assigns several popular color names to system variables so you can say plot,data,color=!green There are two systems I know of for convenient colors for plotting:
0 Comments
Leave a Reply. |
AuthorJustin ArchivesCategories |