Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1834 > unrolled thread
| Started by | pmsummers59@gmail.com |
|---|---|
| First post | 2013-05-17 12:39 -0700 |
| Last post | 2013-05-20 08:57 -0700 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
two sets of shaded bars pmsummers59@gmail.com - 2013-05-17 12:39 -0700
Re: two sets of shaded bars sfeam <sfeam@users.sourceforge.net> - 2013-05-17 14:25 -0700
Re: two sets of shaded bars pmsummers59@gmail.com - 2013-05-17 15:56 -0700
Re: two sets of shaded bars pmsummers59@gmail.com - 2013-05-20 08:57 -0700
| From | pmsummers59@gmail.com |
|---|---|
| Date | 2013-05-17 12:39 -0700 |
| Subject | two sets of shaded bars |
| Message-ID | <049790bd-9b87-4701-b963-dd8075a9fd31@googlegroups.com> |
Hi all, I'm trying to generate a plot with 2 sets of bars, using filledcurves. The script below ALMOST does what I want, except that 2 bars don't show up (I've marked them with comments). Each set plots fine individually. This is actually generated via gretl, using version 4.6 of gnuplot on Windows 7. Thanks in advance for any suggestions, PS # set term pngcairo font "verdana,8" size 680,400 set encoding utf8 # timeseries 12 (letterbox) set style line 1 lc rgb "#ff0000" set style line 2 lc rgb "#0000ff" set style line 3 lc rgb "#00cc00" set style line 4 lc rgb "#bf25b2" set style line 5 lc rgb "#8faab3" set style line 6 lc rgb "#ffa500" set style line 8 lc rgb "#dddddd" set style fill transparent solid 0.5 #noborder set style increment user set ylabel "per cent of labor force" set y2label "per cent" set xzeroaxis set datafile missing "?" set key left bottom set xrange [1967.210417:2014.372917] set yrange [3:11] set ytics nomirror set y2tics # n_bars = 6 plot \ '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ '-' using 1:2:3 notitle lt 8 w filledcurve , \ '-' using 1:2:3 notitle lt 8 w filledcurve , \ '-' using 1:2:3 notitle lt 8 w filledcurve , \ '-' using 1:2:3 notitle lt 8 w filledcurve , \ '-' using 1:2:3 notitle lt 8 w filledcurve , \ '-' using 1:2:3 notitle lt 8 w filledcurve 1969:917 3 11 1970:833 3 11 e 1973:833 3 11 1975:250 3 11 e 1980:000 3 11 #This one isn't plotted 1980:500 3 11 e 1981:500 3 11 1982:833 3 11 e 1990:500 3 11 1991:167 3 11 e 2001:167 3 11 #Neither is this one 2001:833 3 11 e 2007:917 3 11 2009:417 3 11 e 1969.250 3 11 1971.000 3 11 e 1973.917 3 11 1975.333 3 11 e 1979.833 3 11 1982.917 3 11 e 1989.083 3 11 1992.333 3 11 e 2000.250 3 11 2003.667 3 11 e 2007.167 3 11 2010.333 3 11 e
[toc] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2013-05-17 14:25 -0700 |
| Message-ID | <kn671c$78d$1@dont-email.me> |
| In reply to | #1834 |
pmsummers59@gmail.com wrote: > Hi all, > > I'm trying to generate a plot with 2 sets of bars, using filledcurves. The > script below ALMOST does what I want, except that 2 bars don't show up > (I've marked them with comments). Each set plots fine individually. > > This is actually generated via gretl, using version 4.6 of gnuplot on > Windows 7. > > Thanks in advance for any suggestions, I suspect it's because your dates have somehow acquired internal colons rather than decimal points. The produces intervals with zero width. Ethan > > PS > > > # set term pngcairo font "verdana,8" size 680,400 > set encoding utf8 > # timeseries 12 (letterbox) > set style line 1 lc rgb "#ff0000" > set style line 2 lc rgb "#0000ff" > set style line 3 lc rgb "#00cc00" > set style line 4 lc rgb "#bf25b2" > set style line 5 lc rgb "#8faab3" > set style line 6 lc rgb "#ffa500" > set style line 8 lc rgb "#dddddd" > set style fill transparent solid 0.5 #noborder > set style increment user > set ylabel "per cent of labor force" > set y2label "per cent" > set xzeroaxis > set datafile missing "?" > set key left bottom > set xrange [1967.210417:2014.372917] > set yrange [3:11] > set ytics nomirror > set y2tics > # n_bars = 6 > plot \ > '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lc rgb "violet" lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lt 8 w filledcurve , \ > '-' using 1:2:3 notitle lt 8 w filledcurve > 1969:917 3 11 > 1970:833 3 11 > e > 1973:833 3 11 > 1975:250 3 11 > e > 1980:000 3 11 #This one isn't plotted > 1980:500 3 11 > e > 1981:500 3 11 > 1982:833 3 11 > e > 1990:500 3 11 > 1991:167 3 11 > e > 2001:167 3 11 #Neither is this one > 2001:833 3 11 > e > 2007:917 3 11 > 2009:417 3 11 > e > 1969.250 3 11 > 1971.000 3 11 > e > 1973.917 3 11 > 1975.333 3 11 > e > 1979.833 3 11 > 1982.917 3 11 > e > 1989.083 3 11 > 1992.333 3 11 > e > 2000.250 3 11 > 2003.667 3 11 > e > 2007.167 3 11 > 2010.333 3 11 > e
[toc] | [prev] | [next] | [standalone]
| From | pmsummers59@gmail.com |
|---|---|
| Date | 2013-05-17 15:56 -0700 |
| Message-ID | <bd1dab69-159c-49b3-8af5-2b1e18a1a370@googlegroups.com> |
| In reply to | #1835 |
Thanks Ethan, I'm at home now and can't check this, but I did experiment with expanding the date range on the missing bars. Didn't mess with the colon separator, and as I recall once it got to a year, it showed up. I'll check this on Monday. PS
[toc] | [prev] | [next] | [standalone]
| From | pmsummers59@gmail.com |
|---|---|
| Date | 2013-05-20 08:57 -0700 |
| Message-ID | <5d1ad8f6-9ec2-47ef-842e-bb295e2f9068@googlegroups.com> |
| In reply to | #1836 |
On Friday, May 17, 2013 6:56:01 PM UTC-4, pmsum...@gmail.com wrote: > Thanks Ethan, ... > I'll check this on Monday. You're right -- it was the colons. It works great now! Thanks again, PS
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web