I'd like to implement a plot which does the below on python. The closest I found to this is the timeline plot Timeline bar graph using python and matplotlib and this one in https://matplotlib.org/stable/plot_types/stats/eventplot.html#sphx-glr-plot-types-stats-eventplot-py.
The main question is can something like below be done on python matplotlib or any other lib?
If not, is there any custom tools which I can use to plot this?
To explain further,
- There's some X days, say 10, where something is happening in each day (eg: we can have sunny day from 1 to 6, then cloudy on 7 and 8, followed by rainy days on 9th and 10th).
Each type of day should have a colour code (like orange for sunny, white for cloudy etc) - The N mentioned below is the Nth interval, and the timestamp in hours passed from the beginning of plot.
Periodicity can change (ie, we can have 10 days in N, and 25 days in N+1, then 12 days in N+2 etc)
The N mentioned here is a number - On any instance between the days, we can have some event which should be marked at that exact time (with an arrow mark or some other format).
Say something happened at the 10th hour of the 1st day (each day = 24 hrs, so we have 240 hours difference across each timestamp), then that event (type=string) will need to be marked exactly at the spot corresponding to the 10th hour from the previous timestamp.
A example event is a cyclone happening somewhere (so will be marked, say Cyclone), followed by a drought somewhere which will be marked correspondingly.