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.


CommentiCondividi contenuti

Invia nuovo commento

Il contenuto di questo campo è privato e non verrà mostrato pubblicamente. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Indirizzi web o e-mail vengono trasformati in link automaticamente
  • Elementi HTML permessi: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Linee e paragrafi vanno a capo automaticamente.

Ulteriori informazioni sulle opzioni di formattazione

CAPTCHA
Questa domanda serve a verificare che il form non venga inviato da procedure automatizzate
9
i
C
x
G
j
Enter the code without spaces.