Clear Filters
Clear Filters

Creating an axis within an imscrollpanel

1 view (last 30 days)
TREDWISE
TREDWISE on 1 Jan 2018
Answered: Image Analyst on 2 Jan 2018
Hi all,
I'm trying to create an axis over an image within an imscrollpanel. If i create the axis with the imscrollpanel as the parent it will appear, but it won't scroll like the image within the imscrollpanel. If I try to create the axis with the figure as the parent, no axis will appear regardless of the position setting. Does anyone know how to fix this? Very frustrating since I am able to plot to the imscrollpanel correctly and I didn't anticipate this much difficulty creating an axis.
Thanks, John

Answers (1)

Image Analyst
Image Analyst on 2 Jan 2018
Not sure what you mean. Did you call "grid on" to place slight dashed lines over the image? Did you call "axis on" to put tick marks and labels outside the image?
For what it's worth (until you show your code), attached is a demo from me and the Mathworks.

Community Treasure Hunt

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

Start Hunting!