How to plot time-series data with hourly intervals on x-axis?

Hi all,

I’m working with a time-series dataset that has measurements taken every hour over a 7-day period, and I want to plot it using GMT (I’m using GMT 6.5).

My time column is formatted as YYYY-MM-DDTHH:MM:SS, and I want the x-axis to show ticks every 6 hours, with labels showing just the hour (e.g., 00, 06, 12, 18).

I’ve tried using -Bxa6Hf1H+l"Time" but it doesn’t format the labels the way I expected. Is there a clean way to customize hourly time labels and control the formatting?

Any advice or examples would be super helpful. Thanks!

Jhonn Marie

Maybe see (21) Time-series of RedHat stock price — GMT 6.5.0 documentation and 4. Standardized command line options — GMT 6.5.0 documentation.

Does gmt set FORMAT_CLOCK_MAP hh:mm and -Bxa6Hf6h do what you want? (Not tested)

And also de CookBook