antialias¶
- mipylib.plotlib.miplot.antialias(b=True)¶
Set figure antialias or not.
- Parameters
b – (boolean) Set figure antialias or not. Default is
False
.
Example:
Before antialias:
def f(t): return exp(-t) * cos(2*pi*t) t1 = arange(0., 5., 0.1) t2 = arange(0., 5., 0.02) plot(t1, f(t1), 'bo', t2, f(t2), 'k') plot(t2, cos(2*pi*t2), 'r--') title('XY plot') xlabel('X axis') ylabel('Y axis') legend()
After antialias:
>>> antialias()