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?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
MathWorks Support Team
am 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.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!