Seasonal plots, with gnuplot

Sometimes there is the need to plot some events which have a periodic trend.

Let's consider a seasonal phenomenon; a typical plot may not fully highlight the regularity of the periodic behavior:

basic plot

In these cases, giving visual clues to compare the data points which are in the same time of the year allows to see more clearly how much the behaviour is regular in the periodicity interval.

Several approaches can be taken:

  1. The x axis can be made modular so that events occurring in the same time frame in a given interval can be easily compared:

    modular cartesian plot

  2. The modular domain can be considered in polar coordinates too:

    modular polar plot

  3. Months can be highlighted in the background when using the full range:

    full range monthly plot

  4. Seasons can be highlighted in the background when using the full range:

    full range seasonal plot

With these plots it can be seen more clearly that the maxima are at the end of the winter and the minima are during the summer.

The plots above were made with gnuplot, the scripts for them can be found in the gnuplot_seasonal_plot git repository.

In order to draw the labels of the color box correctly in the polar plot, a version of gnuplot with bug #1569 fixed is required.

Some quick tests about seasonal arithmetic are also collected in the season_math_test git repository.


CommentsSyndicate content

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
3
m
6
u
8
H
Enter the code without spaces.