Axis numbers upside down

조회 수: 1 (최근 30일)
Jakob Sørensen
Jakob Sørensen 2012년 4월 4일
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?

채택된 답변

Jan
Jan 2012년 4월 4일
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
  댓글 수: 3
Jan
Jan 2012년 4월 4일
Updating the OpenGL drivers of the graphics card helps sometimes. There are a lot of bugs concerning the OpenGL renderer, some exists since Matlab 6.5. I recommend to send an enhancement request to TMW, such that this problem will be fixed perhaps in Matlab 2013a.
Jakob Sørensen
Jakob Sørensen 2012년 4월 4일
So is the "opengl('software')" something you just have to write once? Or should i include it in the function?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by