Why does my text rotate in the opposite direction after I increased my java heap space memory using the JAVA.OPTS file on a MAC ?

1 view (last 30 days)
I increased my java heap space memory to more than the value allowed by the slider in the Preferences menu for java heap space with the -Xms1000m command in the JAVA.OPTS file.
I have also placed this file in the MATLABROOT folder as suggested by the solution 1-18I2C.
This command did increase my memory to the desired level which I checked using the command:
java.lang.Runtime.getRuntime.maxMemory
Now, I notice that some text that I have on my plots are rotated the wrong way.
For example the code:
plot(1:10,1:10)
text(2,2,'aab','rotation',90)
The expected output should be:
But after adding the JAVA.OPTS file I now am witnessing:

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Oct 2013
This issue may be with the settings for the graphics pipeline on the MAC which may be changed due to the presence of the JAVA.OPTS file.
Inserting the following line into the JAVA.OPTS file usually resolves these issues:
-Dapple.awt.graphics.UseQuartz=true
One should also check to see if the JAVA.OPTS file is only present in one folder on the MATLAB path. Ideally it should either be in the MATLABROOT folder or in the folder containing the executable to MATLAB.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2011b

Community Treasure Hunt

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

Start Hunting!