awips2/pythonPackages/matplotlib/examples/pylab_examples/matplotlib_icon.py
root 06a8b51d6d Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

21 lines
465 B
Python
Executable file

#!/usr/bin/env python
"""
make the matplotlib svg minimization icon
"""
import matplotlib
#matplotlib.use('Svg')
from pylab import *
rc('grid', ls='-', lw=2, color='k')
fig = figure(figsize=(1, 1), dpi=72)
axes([0.025, 0.025, 0.95, 0.95], axisbg='#bfd1d4')
t = arange(0, 2, 0.05)
s = sin(2*pi*t)
plot(t,s, linewidth=4, color="#ca7900")
axis([-.2, 2.2, -1.2, 1.2])
# grid(True)
setp(gca(), xticklabels=[], yticklabels=[])
savefig('matplotlib', facecolor='0.75')