Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3826
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2017-11-26 15:16 -0800 |
| Message-ID | <f532384b-6919-4584-9b26-24a203713c1f@googlegroups.com> (permalink) |
| Subject | gnuplot conditional plotting with if column value is greater than 2.5 |
| From | dmngaya@gmail.com |
Hi all, I have a data file with two columns like this: date avelp1219p01 avelp1219p02 avelp1219p03 avelp1219p04 2017.11.12 1.9294 2.4847 1.7317 2.0424 2017.11.13 1.9451 2.49669 1.7477 1.99816 2017.11.14 1.9451 2.49669 1.7477 1.99816 2017.11.15 1.9451 2.49669 1.7477 1.99816 2017.11.16 1.9451 2.49669 1.7477 1.99816 2017.11.17 1.9451 2.49669 1.7477 1.99816 I want to plot the colums value for avelp1219p01, avelp1219p02, avelp1219p03, avelp1219p04 if column value is greater than or equal 2.5. Without this condition, my histogram works very well but i want to add this condition. here my gnuplot without this condition: # set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'histograms.7.png' #set term postscript landscape enhanced color dashed "Helvetica" 14 set term postscript landscape enhanced color dashed "Helvetica" 10 set output "datagrowthbynode.ps" set border 3 front lt black linewidth 1.000 dashtype solid set boxwidth 0.95 absolute set style fill solid 1.00 noborder set grid nopolar set grid noxtics nomxtics ytics nomytics noztics nomztics nortics nomrtics \ nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics set grid layerdefault lt 0 linecolor 0 linewidth 0.500, lt 0 linecolor 0 linewidth 0.500 set key bmargin center horizontal Left reverse noenhanced autotitle columnhead nobox set style histogram clustered gap 5 title textcolor lt -1 offset character 4, 0.25 #set style histogram clustered gap 1 title textcolor lt -1 offset character 2, 0.25 set auto x set datafile missing '-' set style data histograms set xtics border in scale 0,0 nomirror rotate by -45 autojustify set xtics norangelimit font ",8" set xtics () set ytics border in scale 0,0 mirror norotate autojustify set ytics norangelimit autofreq font ",8" set ztics border in scale 0,0 nomirror norotate autojustify set cbtics border in scale 0,0 mirror norotate autojustify set rtics axis in scale 0,0 nomirror norotate autojustify set title "Total Disk Used Trends by Nodes in GH2\n" set xlabel " " set xlabel offset character 0, -2, 0 font "" textcolor lt -1 norotate set ylabel "Disk used in TB" DEBUG_TERM_HTIC = 119 DEBUG_TERM_VTIC = 119 ## Last datafile plotted: "$FILE" plot newhistogram "Nodes in GH2", '$FILE' using "avelp1219p01":xtic(1) t col lc rgb "#800000", '' u "avelp1219p02" t col lc rgb "#000000",'' u "avelp1219p03" t col lc rgb "#a0a0a0", '' u "avelp1219p04" t col lc rgb "#ff0000",'' u "avelp1219p05" t col lc rgb "#00c000", '' u "avelp1219p12" t col lc rgb "#0080ff",'' u "avelp1219p13" t col lc rgb "#c000ff", '' u "avelp1219p14" t col lc rgb "#00eeee",'' u "avelp1219p15" t col lc rgb "#c04000", '' u "avelp1219p16" t col lc rgb "#c8c800",'' u "avelp1219p17" t col lc rgb "#4169e1", '' u "avelp1219p18" t col lc rgb "#ffc020",'' u "avelp1219p19" t col lc rgb "#008040", '' u "avelp1219p20" t col lc "#c080ff",'' u "avelp1219p21" t col lc rgb "#306080", '' u "avelp1219p22" t col lc rgb "#8b0000", '' u "avelp1219p23" t col lc rgb "#408000", '' u "avelp1219p24" t col lc "#ff80ff",'' u "avelp1219p25" t col lc rgb "#7fffd4", '' u "avelp1219p26" t col lc rgb "#a52a2a",'' u "avelp1219p27" t col lc rgb "#ffff00", '' u "avelp1219p28" t col lc rgb "#40e0d0", '' u "avelp1219p29" t col lc rgb "#1a1a1a", '' u "avelp1219p30" t col lc rgb "#f03232",'' u "avelp1219p31" t col lc rgb "#ffd700",'' u "avelp1219p32" t col lc rgb "#00ff00",'' u "avelp1219p33" t col lc rgb "#0000ff", '' u "avelp1219p34" t col lc rgb "#000080",'' u "avelp1219p35" t col lc rgb "#00ffff", '' u "avelp1219p36" t col lc rgb "#ff00ff",'' u "avelp1219p37" t col lc rgb "#f0e68c", '' u "avelp1219p38" t col lc rgb "#a08020",'' u "avelp1219p39" t col lc rgb "#ffa500", '' u "avelp1219p40" t col lc rgb "#ee82ee", '' u "avelp1219p41" t col lc rgb "#dda0dd", '' u "avelp1219p42" t col lc rgb "#801414",'' u "avelp1219p43" t col lc rgb "#804014", '' u "avelp1219p44" t col lc rgb "#804080", '' u "avelp1219p45" t col lc rgb "#8060ff", '' u "avelp1219p46" t col lc rgb "#ffc0c0" someone can help me to add condition which allow me to display only if the column value is greater than 2.5 ? I read document but i did not find solution . Thank you for your help. Best regards.
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
gnuplot conditional plotting with if column value is greater than 2.5 dmngaya@gmail.com - 2017-11-26 15:16 -0800 Re: gnuplot conditional plotting with if column value is greater than 2.5 Karl Ratzsch <mail.kfr@gmx.net> - 2017-11-27 14:17 +0100
csiph-web