Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2491
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2014-06-16 08:45 -0700 |
| References | <ed92043c-f58f-4541-9111-0881e39c3c7e@l30g2000yqb.googlegroups.com> <hj7oo2$lo2$1@news.eternal-september.org> <dbf37f28-f5fe-4214-bbac-898896ef1ecd@f12g2000yqn.googlegroups.com> <d5e1e715-56f7-4ad1-927a-9e4eda243ed0@u15g2000prd.googlegroups.com> <cba1883d-f9d9-425c-92f8-828e04f1281a@googlegroups.com> |
| Message-ID | <78c638bd-0d5a-4dae-90ba-79c8dc433bd4@googlegroups.com> (permalink) |
| Subject | Re: Way to limit xtics in histogram |
| From | waxrat@gmail.com |
On Wednesday, September 26, 2012 4:28:01 AM UTC-4, dir...@googlemail.com wrote:
> Because this thread is nearly the only one I found while searching the web I will post my improved solution of every... here:
Here's a complete, stand-alone, runnable script:
#!/bin/sh
# Generate the input data file. Columns are:
# 1 datapoint identifier
# 2 Y value
# 3 xtic labels
perl -e 'for(500..600) {
printf "%d\t%.1f\t\"Foo %d\"\n",$_,rand($_)/10,$_
}
' >in.dat
gnuplot <<EOF
set term png size 1800, 1000
set xtics rotate by -90
nth(countCol,labelCol,n) = \
((int(column(countCol)) % n == 0) ? stringcolumn(labelCol) : "")
set output "out.png"
plot \
"in.dat" using 1:2:xtic(nth(1,3,10)) with linespoints \
pointtype 2 linecolor rgb "red"
EOF
display out.png &
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Way to limit xtics in histogram diru91@googlemail.com - 2012-09-26 01:28 -0700
Re: Way to limit xtics in histogram waxrat@gmail.com - 2014-06-16 08:45 -0700
Re: Way to limit xtics in histogram Karl <mail.kfr@gmx.net> - 2014-06-16 18:28 +0200
csiph-web