MATLAB: Axis numbers upside down

MATLAB: Axis numbers upside down

axes propertiesaxisimage propertiesimagesc

I made a gui which shows an ultrasound image. I made some axis to give an impression of the scaling. It worked fine, but after a few changes (nothing big), the numbers on the axis come out upside down. More specifically they are mirrored over both a horizontal and a vertical line. It looks super weird. The only thing I use to adjust axis properties is the following:
% Update main axes handle properties
set(gca, 'YAxisLocation', 'right', ...
'box', 'off', ...
'TickDir', 'out', ...
'XColor', 'Blue', ...
'YColor', 'Red');
What the duck is wrong?

Best Answer

  • This sounds like an OpenGL problem. Please try this:
    opengl('software')
    In older Matlab releases this might be:
    feature('UseGenericOpenGL', 1)
    Or under Linux:
    feature('UseMesaSoftwareOpenGL', 1)
    See:
    help opengl
    opengl info
  • Add a Comment

    Your email address will not be published. Required fields are marked *