Mouse Functions Over Axes on Top of Each Other

1 次查看(过去 30 天)
I have a GUI in AppDesigner in which I have 2 axes objects on top of each other (i.e.: their position property is the same). I am plotting a curve on the "bottom" axes and I use the "top" axis only for formatting purposes, such as having additional X and Y rulers on the graph with different scaling, colors, units, etc.
Is there a way to keep the usual mouse functions working, such as drag-to-pan, scroll-to-zoom and marking points on the curve by clicking? These functions no longer work properly because they act only on the axis on top, which is the one where there are no curves effectively being plotted.

回答(1 个)

Walter Roberson
Walter Roberson 2025-4-8

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by