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 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
Réponse acceptée
MathWorks Support Team
le 27 Juin 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Axis Labels dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!