Thank you, Clifford. Worked like a charm. On Wed, Dec 28, 2022 at 1:17 PM Clifford Reiter <reit...@lafayette.edu> wrote:
> An experiment: > > load 'plot' > > y=:sin 0.1*x=:i.365 > > ms=:0,+/\31 28 31 30 31 30 31 31 30 31 30 31 > > pd'reset' > > pd 'xticpos ',":ms > > pd 'xlabel Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec " "' > > pd x;y > > pd 'show' > > > An alternate alignment fudge could be > > pd 'xlabel " Jan" " Feb" " Mar" " Apr" " May" " Jun" " Jul" " Aug" " Sep" " > Oct" " Nov" " Dec" " "' > > > https://code.jsoftware.com/wiki/Studio/Plot > > https://code.jsoftware.com/wiki/Plot > > On Wed, Dec 28, 2022 at 4:09 AM Pablo Landherr <pablo.landh...@gmail.com> > wrote: > > > I have a time series of 365 data points corresponding to the days of the > > year. I'm struggling with creating useful and readable labels for the > > x-axis. Using the default I get them numbered 0 - 364 with labels at > every > > 50th tick mark. This is very readable, but not so useful as it takes a > > while to realise that 250 equals September 8 or that May 1 is 120. On the > > other hand, if I specify all 365 dates as x-labels, they overwrite each > > other and are impossible to read. Ideally, I would like the start (and > end) > > of each month to be shown. Individual dates are not so important, but > > making it clear where the months are would be helpful. Any suggestions on > > how to achieve this? > > > > Kind regards, > > Pablo L > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm