File: matplotlib_icon.py

package info (click to toggle)
matplotlib 0.98.1-1%2Blenny4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 18,624 kB
  • ctags: 22,599
  • sloc: python: 76,915; cpp: 63,459; ansic: 5,353; makefile: 111; sh: 12
file content (21 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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='y')

t = arange(0, 2, 0.05)
s = sin(2*pi*t)
plot(t,s, linewidth=4)
axis([-.2, 2.2, -1.2, 1.2])

grid(True)
setp(gca(), xticklabels=[], yticklabels=[])
#savefig('../images/matplotlib.svg', facecolor='0.75')