Setting AlphaData of an image causes labels of other axes on the same figure to flip?
1 view (last 30 days)
Show older comments
Dear all,
I have a very weird issue. I have a figure with various axes, one to display an image and the others for scatter plots.
I display the image using:
h=imshow(colorImage,'Parent',handles.axes_Image);
where 'colorImage' is an RGB image. This works fine and I can display both my image and my other plots together without any issue.
Now if I try to change the AlphaData of that image using:
set(h, 'AlphaData', mask*0.5);
The labels for the other axes get flipped (both horizontally and vertically as far as I can tell).
Anyone know what's going on? I can't seem to find the root of the problem. Am I missing something obvious?
Thanks!
Nicolas
1 Comment
Answers (1)
Walter Roberson
on 4 Mar 2014
Setting AlphaData forces OpenGL to be used for the renderer. Historically a couple of releases on some platforms had reversed axes when using OpenGL. My memory is saying "R2011a, Linux, wasn't RedHat". Could well be wrong.
0 Comments
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!