|
"leo nidas" <bleonidas25@yahoo.gr> wrote in message <i50uuc$5pf$1@fred.mathworks.com>...
>
>
> Hi there,
>
> The following code produces two figures. The first contains the word 'Exponential' and the second a shaded region plus the word "Exponential". The shaded region is created using the fill function.
>
> I watch the two graphs (the only difference should be the shaded region) and I observe a little difference in the font of the word "Exponential" and an extra frame around the white area of the figure.
>
> Why is that? How can I fill areas in a graph that contains text without these changes to take place?
>
> Thanx in advance for any answers!
>
> (I use 2007b, if another version deals with it please let me know!)
>
>
> close all
> clear all
> clc
>
> axis([0 6 -2.3 4.3])
> hold on
>
> fonts=15.5;
>
> text('Interpreter','latex',...
> 'String','($Exponential$)',...
> 'Position',[1.3 1.5],...
> 'FontSize',fonts)
>
> figure
>
> t = (1/16:1/8:1)'*2*pi;
> x = sin(t);
> y = cos(t);
> fill(x,y,'k','FaceAlpha',0.2)
>
>
> axis([0 6 -2.3 4.3])
> hold on
>
>
> fonts=13;
>
> text('Interpreter','latex',...
> 'String','($Exponential$)',...
> 'Position',[1.3 1.5],...
> 'FontSize',fonts)
I'm guessing here, but I think when you change the FaceAlpha value, you force the second figure to use a different renderer ('OpenGL' instead of 'painters' for me). Apparently OpenGL can't handle font-smoothing. I'm not sure why the axis itself looks different.
|