Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1495
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2012-11-20 10:10 -0800 |
| Message-ID | <b20c8d37-705f-444e-b4d5-bdb38021eb80@googlegroups.com> (permalink) |
| Subject | histogram errorbars every box with defined color |
| From | mschmid@gmx.ch |
Hi I have the following code: (See question at the end!) ********************************************** clear reset unset key set auto x blue = 0x0000ff # RGB components for pure blue cyan = 0x00ff00 # RGB components for cyan red = 0xff0000 # RGB components for red set xtics rotate by 90 offset -1.5,-5 set bars fullwidth set style fill solid 1 border lt -1 set style data histograms set style histogram errorbars gap 1 lw 1 set title "Intensity of luxA signal for different substances" set output 'luxA.png' set terminal png transparent nocrop enhanced font times 18 size 1024,768 set ylabel "luminescence intensity" set grid ytics noxtics set xtics scale 0 plot 'luxA.dat' using 2:4:xticlabels(1) ********************************************** and the following data: ********************************************** Name Value Color Deviation "SN wt" 1103 1 61.0y "SN ΔΔ" 124.3333333333 1 3.21 "SN -CI" 367.3333333333 1 25.38 "SN -B" 147.3333333333 1 20.74 "10nM C8" 325.6666666667 2 20.13 "200nM C8" 207.3333333333 2 28.7 "300nM C8" 236.6666666667 2 35.91 "1uM BDSF" 596.6666666667 2 44.12 "10uM BDSF" 545.3333333333 2 102.01 "15uM BDSF" 547 2 33.60 "1uM DSF" 596.3333333333 2 98.47 "10uM DSF" 532 2 21 "15uM DSF" 653.6666666667 2 13.65 "LB" 180.6666666667 3 20.13 "LuxA" 168 3 20.07 "only LB" 62 3 9.54 "only MQ" 64.6666666667 3 20.03 "LB \\& wt" 65.3333333333 3 3.79 "SN Lux \\& wt" 73 3 14.53 ********************************************** Everything I want to achieve now, is to get every box of the histogram according to its color code in the data (instead of numbers, there could also be strings e.g. "red", "green", etc). How can I do that? A second thing: It would be cool to make it possible, to group the same colored boxes spacially (the boxes with the same color are closer, between the groups the gaps are bigger). How can this be done!
Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar
histogram errorbars every box with defined color mschmid@gmx.ch - 2012-11-20 10:10 -0800
csiph-web