Am 01.03.20 um 01:59 schrieb Allin Cottrell:
On Fri, 28 Feb 2020, Artur Tarassow wrote:
> Hi all,
>
> the following script yields a plot for which the x-range goes far
> beyond 2020-02-28 when using daily data. I use latest git version on
> Ubuntu 19.10.
>
> <hansl>
> clear
> set verbose off
>
> nulldata 40
> setobs 7 2020-01-20
> delete index
> series a = normal()
> series b = normal()
>
> list L = dataset
> # x-axis shows all the way long up to 2021
> scatters L --with-lines --output=display
> </hansl>
Yes, that's not good. Handling daily data via "scatters" in time series
mode is not so easy. The problem is "fixed" in current git, but the fix
could perhaps be improved: right now what happens is that the x-axis
just gives the 1-based numbers of the observations.
Thank you, Allin. Looks much better now.
Maybe we could find a way to show dates, but there's not much
space
available in "scatters". At least now we don't over-extend the x-axis.
Maybe its beneficial to rotate the x-labels to save some space. But it
has no priority I guess.
Artur