How translate a multiple y axis in a plot
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a question about the plot of multiple y axis, I need to have the graphics on the same origin x axis but different scale for the y plot. I have on the left y plot a vector of Voltage, with ripple ad on the right y plot a vector of Current. I want that these graphics have the same origin axis, maybe with a translation of the voltage ones to the origin. (i don't want change the value of the ripple)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/144815/image.jpeg)
回答(2 个)
Areej Varamban Kallan
2019-1-22
Hi Stefano,
In my understanding, your requirement is to create two plots with different y-axis scaling. This can be achieved by using the yyaxis function, which enables you to create two y-axes in the same figure. You will be able to change the properties of each axis independent of the other.
Hope this helps
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!