addaxis_unit
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.
Zitieren als
Friedhelm Steinhilber (2024). addaxis_unit (https://www.mathworks.com/matlabcentral/fileexchange/26928-addaxis_unit), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots > Two y-axis >
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.6.0.0 | The string format of the ticks of the second y-axis can be adjusted. |
||
1.5.0.0 | If second y-axis uses the same ticks as the first y-axis, the labels are calculated every time the figure is resized. |
||
1.4.0.0 | Now allows to use the same ticks as first y-axis. This is asked for by Brad Stiritz (16/03/2010). |
||
1.3.0.0 | updated description |
||
1.2.0.0 | added support for subplots |
||
1.1.0.0 | updated the description |
||
1.0.0.0 |