Setting AlphaData of an image causes labels of other axes on the same figure to flip?

1 visualización (últimos 30 días)
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

Respuestas (1)

Walter Roberson
Walter Roberson el 4 de Mzo. de 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.

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by