|
From: Manfred S. <man...@gm...> - 2015-08-17 21:20:14
|
Am 17.08.2015 um 22:02 schrieb Daniel J Sebald: > On 08/17/2015 02:37 PM, Manfred Schwarb wrote: >> Hi, >> >> I have trouble getting some sort of stacked histogram working. >> Instead of the expected output, I get "flying bars", really strange. >> >> Could some help, am I doing something wrong? > > Try > > set datafile missing "?" > Dan and Ethan, thanks a lot! This works. I don't see though how this can make a difference, as non-parsible characters are treated as missing values, as far as I know. > in there somewhere. It creates more of stacked histogram for me. (Can't really explain why it looks the way it does or how ? is interpreted without that modification.) > > Also, I don't think it is the case, but how is 1986/87 interpreted? Is 1986 a column on its own and then 87 another column? > I use the first column for x-axes labels, with "using 3:xticlabels(stringcolumn(1))", works fine, it is interpreted as a label "1986/87" etc. Cheers, Manfred > Dan > > > >> >> Thanks a lot, >> Manfred >> >> >> cat> a.txt<<EOF >> 1963/64 784 1104 ? >> 1964/65 1234 1525 ? >> 1965/66 1282 1220 ? >> 1966/67 1512 1138 ? >> 1967/68 1305 1307 ? >> 1968/69 904 1199 ? >> 1969/70 1381 1267 ? >> 1970/71 842 1141 ? >> 1971/72 574 1024 ? >> 1972/73 947 1148 ? >> 1973/74 1272 1158 ? >> 1974/75 1561 1098 ? >> 1975/76 750 1055 ? >> 1976/77 1399 1307 ? >> 1977/78 1444 1225 ? >> 1978/79 914 939 ? >> 1979/80 1468 1052 ? >> 1980/81 1288 1539 ? >> 1981/82 1384 1178 ? >> 1982/83 1167 1056 ? >> 1983/84 1116 1249 ? >> 1984/85 930 1210 ? >> 1985/86 1055 1020 ? >> 1986/87 1200 1470 ? >> 1987/88 1400 980 ? >> 1988/89 1170 990 ? >> 1989/90 1080 1060 ? >> 1990/91 920 1210 ? >> 1991/92 1380 910 ? >> 1992/93 1115 1440 ? >> 1993/94 1500 1240 ? >> 1994/95 1410 1230 ? >> 1995/96 625 1410 ? >> 1996/97 1155 1310 ? >> 1997/98 1030 1400 ? >> 1998/99 1640 1355 ? >> 1999/00 1360 1295 ? >> 2000/01 ? ? 2798 >> 2001/02 ? ? 2330 >> 2002/03 ? ? 2149 >> 2003/04 ? ? 2409 >> 2004/05 ? ? 2283 >> 2005/06 ? ? 2288 >> 2006/07 ? ? 2399 >> 2007/08 ? ? 2524 >> 2008/09 ? ? 2365 >> 2009/10 ? ? 2562 >> 2010/11 ? ? 1943 >> 2011/12 ? ? 2848 >> 2012/13 ? ? 2643 >> 2013/14 ? ? 2646 >> EOF >> >> gnuplot<<EOF >> set term pngcairo size 700,300 >> set out 'a.png' >> set autoscale xfix >> set style data histograms >> set style histogram rowstacked >> set style fill transparent solid 0.3 border >> plot 'a.txt' \\ >> using 4 notitle lt -1 lc rgb "#444444", \\ >> '' using 2 title "Col2" lt -1 lc rgb "#333399", \\ >> '' using 3 title "Col3" lt -1 lc rgb "#ff2000" >> set output >> EOF >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> gnuplot-beta mailing list >> gnu...@li... >> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta >> > |