File Exchange

image thumbnail

Myplotyy

version 1.7.0.0 (30.9 KB) by Friedhelm Steinhilber
Myplotyy plots different data sets with a common x-axis but using individual y-axes in one figure.

4 Downloads

Updated 12 May 2011

View Version History

View License

Myplotyy plots different data sets with a common x-axis but using individual y-axes in one figure.
The properties of every curve (y-axis) can be individually adjusted, such as linear or logarithmic scale, normal or reverse scale, confidence intervals, colors, curve labeling, ...

See screenshot and run the example "myplotyy_example.m" included in the zip-file.

Cite As

Friedhelm Steinhilber (2021). Myplotyy (https://www.mathworks.com/matlabcentral/fileexchange/26550-myplotyy), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Great Submission! Running the example resulted in an error in R2017b.
Changed line 284 of myplotyy.m to 'DisplayName',ninDisplayName{fields_legend_idx},... and it worked!

Hi this code is great! unfortunately I cant manage to make it work with datetimes from a timetable. Do you have any suggestions? Thank you

Olivier

sorry I didn't wrote on the good web page

Felix

If it also had the option to specify ticks and minor ticks of each axis separately as well as their appearance, it would be absolutely perfect!

Nate Jensen

Much better than Matlab's plotyy function by far. The only thing that I cannot figure out yet, is for some reason my y label for the label on the right side of the plot always intersects with the axis. I can move the label so it's not a big deal, but it would be nice if it didn't intersect with the axis to begin with.

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!