Why do my y-axis labels not print or show up correctly on print previews of my plots in MATLAB 6.5 (R13) on Windows XP?

10 views (last 30 days)
Why do my y-axis labels not print or show up correctly on print previews of my plots in MATLAB 6.5 (R13) on Windows XP?
When the figure is printed, the first character of the y label appears in the correct spot. The remaining characters appear rotated 90 degrees counter clockwise and at the bottom of the printed sheet.
The following code is used to add the label:
ylabel('the label')
The following code works successfully. The ylabel appears correctly in the Print Preview, and prints correctly as well:
ylabel('the label','FontName','Times')
This does not work for all fonts, though. For example, if I substitute Arial or Helevetica in the explicit FontName option, the ylabel does not appear in the right place. ArialBold does work.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This is a bug in MATLAB 6.5 (R13) that our development staff is currently investigating.
As a workaround, try specifying a fontname as follows:
ylabel('the label','FontName','Times')
This appears to work on some, but not all, fonts.
If you substitute Arial or Helevetica in the explicit FontName option,
the ylabel will not appear in the right place. ArialBold appears to work, as does Times.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!