Graphics, Figures & Tables ⇒ Plot with months and years as x-axis
Plot with months and years as x-axis
I'm currently trying to create a plot with pfgplots, that displays the price of fuel since 2005 to today. The data I have provides a data point for each month. My goal is to achieve a plot where every month is abbreviated to the first letter and then grouped by year (see image).
Does anyone know how to achieve this? I tried different approaches, but none of them brought me even close.
Thanks!
Murd
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Plot with months and years as x-axis
When I think about how much the price for fuel changes at some gas stations even within one day, one month seems oddly far spaced

In which form do you have the data? csv file? How does a sample entry look like?
KR
Rainer