myaxisc

versión 1.5.1 (37.6 KB) por vik
在图或应用程序设计器中使用多个Y轴创建轴对象

725 descargas

Actualizada2019年2月6日

VER LICENCIA

用三个或更多Y轴创建图的对象取向方法。Myaxisc,“多个Y轴类”的缩写,是保留显示多个Y轴所需的所有轴对象的类。第二轴放在右侧,将附加轴放在左侧。

Features:
- Creates axes with as much additional Y axis as you want (as long as there is enough space, minimum are 2 y axis).
- Works with MATLAB App Designer as well as in regular Matlab Figures and therefore also in programmatic created GUIs.
- Full working zoom and pan functionality in App Designer UIFigures (extra buttons required) and in regular Figures using axtoolbar.
- When zoom or pan is not active, single y-axis can be panned.
- 包括一些易于使用的基本方法来修改外观:标签,限制,颜色,字体尺寸,位置

Two example files (myaxisc_example.m and myaxisc_app.mlapp) are included to demonstrate usage.

Usage in regular Figures: Create myaxisc-object "h" and call plot with specified axes to plot into:
h = myaxisc(4,0.1); % Create myaxisc-object "h" with 4 y axes and a spacing of 0.1
plot(h.p(3),x,y) % Create plot in third axes using method "p"

应用程序设计器中的用法:建议创建一个容器面板以将轴放入。然后使用startupfcn将轴创建到容器面板中。有关详细信息,请参见随附的示例文件。您需要添加一些功能和属性,还需要自己实现按钮。

Installation: Nothing special, just make sure the myaxisc.m-File is in path.

There is a lot of compatibility coded into the class so it should behave the same way in App Designer UIFigures as well as in regular Figures and programmatic created Apps. Even though zooming and panning methods are implemented completely different, they should behave the same way. Unfortunately it is still possible to drag single line objects sometimes in uifigure so panning may behave buggy.

Citar como

vik (2022).myaxisc(//www.tianjin-qmedu.com/matlabcentral/fileexchange/70033-myaxisc), MATLAB Central File Exchange. Recuperado.

compatibilidad conlaversióndematlab
Se creó con R2018b
Compatible con cualquier versión
Compatibilidad con las plataformas
视窗 macOS Linux
Agradecimientos

Inspirado por:Plotyyy,ploty4.m,addaxis

Community Treasure Hunt

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

开始狩猎!