Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb031d8

Browse files
committed
added trial matplotlib icon
svn path=/trunk/matplotlib/; revision=441
1 parent a8cf35f commit bb031d8

2 files changed

Lines changed: 133 additions & 60 deletions

File tree

examples/matplotlib_icon.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
make the matplotlib svg minimization icon
3+
"""
4+
import matplotlib
5+
matplotlib.use('SVG')
6+
from matplotlib.matlab import *
7+
8+
fig = figure(figsize=(.5, .5), dpi=72)
9+
subplot(111)
10+
t = arange(0.0, 2.0, 0.05)
11+
s = sin(2*pi*t)
12+
plot(t,s)
13+
#axis('off')
14+
set(gca(), xticklabels=[], yticklabels=[])
15+
savefig('../images/matplotlib.svg', facecolor=0.75)
16+

images/matplotlib.svg

Lines changed: 117 additions & 60 deletions
Loading

0 commit comments

Comments
 (0)