Why does the font of the y-axis label created using the YLABEL function render incorrectly on RedHat Enterprise Linux 3?
1 view (last 30 days)
Show older comments
When I use the YLABEL function to create a label for my y-axis, the resulting text looks italicized, as if each letter of the ylabel is slightly rotated past ninety degrees from the x-axis. The font renders correctly on screen only using the Painters renderer. The YLABEL font renders incorrectly when I print to any file format other than .eps or .epsc using the PRINT command, regardless of the renderer specified for printing.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0.1 (R14SP1) in the way that YLABEL text is rendered when printing to a JPEG or PNG file on some Linux machines.
As a workaround, capture the figure using GETFRAME command, and then write it to JPEG format using the IMWRITE command, for example,
plot (1:10)
ylabel ('test')
F = getframe(gcf)
imwrite (F.cdata,'filename.jpeg','jpeg')
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!