How to plot date and time on one axis?
Show older comments
Dear everyone,
I'm trying to plot data I read from a sensor that saves these in a .txt file (example data and the function are attached). The column structure is as follows: Date, time, temperature and relative humidity. However, I run into problems when the day changes e.g. from 19/03/15 to 20/03/15. I would like to plot 20/03/15 exactly at 00:00. Maybe it is a problem with autoscaling? I tried plotting the data twice on the same x-axis with different positions, but this does not solve the problem.

The problem that then also arises is during zooming as the y-axis scales differently.

I would appreciate any help with this!
Regards
Philipp
Accepted Answer
More Answers (0)
Categories
Find more on Calendar in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!