View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
MATLAB Plot Gallery - Two Y Axis Plot (1)

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 10 Downloads (last 30 days) File Size: 40.5 KB File ID: #35295 Version:
image thumbnail

MATLAB Plot Gallery - Two Y Axis Plot (1)



24 Feb 2012 (Updated )

Create a plot with two y axes

| Watch this File

File Information

This is an example of how to create a plot with two y axes in MATLABĀ®.
Read about the "plotyy" function in the MATLAB documentation.
For more examples, go to MATLAB Plot Gallery -

Required Products MATLAB
MATLAB release MATLAB 8.4 (R2014b)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
08 Jun 2014 Brian zhang

axes are difficult to handle, there are many overlap cases. plotyy need 2 sets of axes with 2 separate x axes causing problems. it is a system issue which should never happened.

Comment only
07 Oct 2014 1.1

Updated screenshot.

01 Sep 2016

Updated license

Contact us