Use top axis in a plot

10 次查看(过去 30 天)
giacomo labbri
giacomo labbri 2020-8-17
Hi,
Is it possible to plot a variable against the top axis while plotting another variable against the bottom (usual) axis. For left and right I would use the yyaxis right and yyaxis left option. I am looking to do the same but with the x (bottom and top axis).
Thanks in advance,

回答(1 个)

madhan ravi
madhan ravi 2020-8-17
  1 个评论
giacomo labbri
giacomo labbri 2020-8-17
Thanks but these seems just to have the ticks and the tick labels. But i would like to plot different variables against top and bottom axis (so each axis does not have the same value on the think labels). For example you put the temperature scale on the bottom axis and the realtive humidity scale on the top axis.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by