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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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