My graph is about fires (burned area) over 12 years presented in one Date List Log Plot. Because most of fires are in summer (as expected) I would like to highlight that with different background colors. How can I paint seasons in Date List Plot in different colors? I want to put different background color for winter, spring... Thank you!
|
|
I would suggest using
You don't need
|
|||
|
|
|
Here's another suggestion - there are (at least) two caveats:
Nevertheless, it looks quite ok to do that sort of coloring for e.g. financial data. And maybe it helps you with your fires. So in that sense, we can load:
And then, we define colors per month (group of months):
Then:
and get:
|
|||||
|
|
|
Here is the version I use (it is quite similar to Verbeia's, but I don't want to compute the vertical range every time):
Plotting the data:
You can use |
||||
|


