GLE Example: shadebar.gle

[PDF file]
size 12 8 include "color.gle" include "barstyles.gle" set font ss lwidth 0.01 sub palette_shade_purple_gray z return palette_shade_gray(z, 94, 19, 175) end sub sub palette_shade_yellow_gray z return palette_shade_gray(z, 255, 255, 0) end sub sub bar_purplecolormap x1 y1 x2 y2 b g bar_colormap_palette_labels x1 y1 x2 y2 b palette_shade_purple_gray "fix 0 append '%'" end sub sub bar_yellowcolormap x1 y1 x2 y2 b g bar_colormap_palette_labels x1 y1 x2 y2 b palette_shade_yellow_gray "fix 0 append '%'" end sub begin graph xaxis min 0.5 max 4.5 dticks 1 yaxis min -5 max 90 dticks 10 format "fix 0 append '%'" grid x2axis off y2axis off xdsubticks off yticks color grey20 data "shadebar.csv" bar d1,d2 width 0.3,0.3 style purplecolormap,yellowcolormap end graph begin key position bc coldist 0.5 offset 0 -0.5 nobox hei 0.25 boxcolor clear fill rgb255(94,19,175) text "Series 1" separator fill rgb255(255,255,0) text "Series 2" end key
[Return to examples page]