Using Datetick with Plotyy in MATLAB
Recently, I needed to plot two different sets of time series data on the same axes, but they were at different scales. In this simplified example, I show how you can change the x-labels to display the month name. This requires you capture the handles of the axes created by
plotyy
, then send them to datetick
explicitly.
- Category:
- Format: Video,
- Level: Basic
Comments
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.