Re: [OT] How to plot time series over weekly / monthly data
Hi Carsten,
On Tue, Jul 28, 2020 at 08:42:15AM +0200, Carsten Aulbert wrote:
> not sure if this really helps or if I am just misunderstanding your problem:
>
> fake data:
>
> for y in 201{7,8,9} 2020; do for m in {01..12}; do \
> echo "$y-$m $RANDOM"; done; done | tee /tmp/data.in
>
> fire up gnuplot:
>
> set xdata time
> set timefmt "%Y-%m"
> plot '/tmp/data.in' u 1:2 with lines
>
> obviously, you can add grid/labels, use bars, ...
>
> Does this help?
Yep. Actually the "set xdata time" that I was missing and thus
my attempt that looked the same otherwise failed.
Thanks to all other hints which I might consider if I decide to
take that task more serious.
Kind regards - happy for the quick help
Andreas.
--
http://fam-tille.de
Reply to: