set the xtics to appear e.g. every 2 years:
seconds_per_year=365*24*60*60
set xtics 2*seconds_per_year
Biloti wrote:
>
> The graph bellow was produced by the following gnuplot command. However,
> the x tick labels are too dense. How could I tell to gnuplot to use fewer
> ticks in this "date mode" for x axis?
>
> set xlabel "Year"
> set key off
> set timefmt "%Y-%m-%d"
> set format x "%Y"
> set xdata time
> set mxtics 2
> set ytics 0.5
>
> set multiplot layout 2,2
>
> plot "dengue.csv" u 1:3 w l, "" u 1:2 w l ls 1
> plot "dengue.csv" u 1:3 w l, "" u 1:4 w l ls 1
> plot "dengue.csv" u 1:3 w l, "" u 1:5 w l ls 1
> plot "dengue.csv" u 1:3 w l, "" u 1:6 w l ls 1
>
> unset multiplot
>
> http://old.nabble.com/file/p32538776/screenshot.png
>
> http://old.nabble.com/file/p32538776/dengue.csv dengue.csv
>
--
View this message in context: http://old.nabble.com/Fewer-xticks-in-date-mode-tp32538776p32549607.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|