shenchuan1lang的个人博客分享 http://blog.sciencenet.cn/u/shenchuan1lang

博文

idl绘图时所有可用颜色英文表

已有 345 次阅读 2019-9-26 11:10 |系统分类:科研笔记

c=['alice_blue','antique_white','aqua','aquamarine','azure','beige','bisque','black','blanched_almond',$

  'blue','blue_violet','brown','burlywood','cadet_blue','chartreuse','chocolate','coral','cornflower',$

  'cornsilk','crimson','cyan','dark_blue','dark_cyan','dark_goldenrod','dark_gray','dark_grey',$

  'dark_green','dark_khaki','dark_magenta','dark_olive_green','dark_orange','dark_orchid','dark_red',$

  'dark_salmon','dark_sea_green','dark_slate_blue','dark_slate_gray','dark_slate_grey','dark_turquoise',$

  'dark_violet','deep_pink','deep_sky_blue','dim_gray','dim_grey','dodger_blue','firebrick','floral_white',$

'forest_green','fuchsia','gainsboro','ghost_white','gold','goldenrod','gray','grey','green','green_yellow',$

  'gray','honeydew','hot_pink','indian_red','indigo','ivory','khaki','lavender','lavender_blush','lawn_green',$

  'lemon_chiffon','light_blue','light_coral','light_cyan','light_goldenrod','light_gray','light_green',$

  'light_gray','light_grey','light_pink','light_salmon','light_sea_green','light_sky_blue','light_slate_gray',$

  'light_slate_grey','light_steel_blue','light_yellow','lime','lime_green','linen','magenta','maroon',$

  'medium_aquamarine','medium_blue','medium_orchid','medium_purple','medium_sea_green','medium_slate_blue',$

  'medium_spring_green','medium_turquoise','medium_violet_red','midnight_blue','mint_cream','misty_rose',$

  'moccasin','navajo_white','navy','old_lace','olive','olive_drab','orange','orange_red','orchid',$

  'pale_goldenrod','pale_green','pale_turquoise','pale_violet_red','papaya_whip','peach_puff','peru','pink',$

  'plum','powder_blue','purple','red','rosy_brown','royal_blue','saddle_brown','salmon','sandy_brown',$

  'sea_green','seashell','sienna','silver','sky_blue','slate_blue','slate_gray','slate_grey','snow',$

  'spring_green','steel_blue','tan','teal','thistle','tomato','turquoise','violet','wheat','white',$

  'white_smoke','yellow','yellow_green'] 

   y=indgen(10)

  for i=0,148 do begin

    x=intarr(10)

    x=x+i+1

    p=plot(x,y,/overplot)

    p.color=c[i]

  endfor

plot_color.jpg


一共149个颜色,一条曲线代表一条,因为我经常用到多曲线比较,每次都要翻出来颜色表找颜色,很麻烦,今天一股脑把所有的颜色都从help里copy出来了,又程序批量加了引号,以后就不需要再折腾了,直接复制粘贴。




http://blog.sciencenet.cn/blog-920491-1199535.html


0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备14006957 )

GMT+8, 2020-1-28 09:16

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部