Plot with multiple Y-axes

Plotting function that allows for N y-axes using a common x axis

您现在正在关注此提交

This function allows for results to be plotted on N separate y-axes. These y-axes share a common x axis, but do not need to share exactly the same x/y data or size. The function supports all utilities on the Figure toolbar, including the data tip, zoom/pan, and data brush. The plot scales upon resize of the figure, maximizing the utilization of the figure's space. The function supports many of the native property commands and syntax for 'plot' such as 'LineStyle','MarkerStyle',etc.. Additionally, saving and loading as .fig is supported, as well as all other MATLAB supported image types.

引用格式

Tom R (2026). Plot with multiple Y-axes (https://ww2.mathworks.cn/matlabcentral/fileexchange/67349-plot-with-multiple-y-axes), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: plotNAx

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
2.0.0.0

Corrected legend location 'outside' functionality and demonstrated changed axis color in example script

1.0.0.0

Included a sample script to demonstrate possible ways to call the function.