addaxis_unit
by Friedhelm Steinhilber
12 Mar 2010
(Updated 02 Jun 2010)
This function adds a second y-axis to a x-y plot using a relationship between the two y-axes.
|
Watch this File
|
| File Information |
| Description |
This function allows to use two different y-axes with the same data in one plot. Note, that only one curve but in two different units is shown. This is the difference to plotyy which plots two different datasets into one figure.
Take a look to the screenshot and run the different examples in the zip-file to understand the usage.
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 15 Mar 2010 |
updated the description |
| 16 Mar 2010 |
added support for subplots |
| 16 Mar 2010 |
updated description |
| 17 Mar 2010 |
Now allows to use the same ticks as first y-axis. This is asked for by Brad Stiritz (16/03/2010). |
| 19 Mar 2010 |
If second y-axis uses the same ticks as the first y-axis, the labels are calculated every time the figure is resized. |
| 02 Jun 2010 |
The string format of the ticks of the second y-axis can be adjusted. |
|
Contact us at files@mathworks.com