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

Skip to content

Commit 07acc46

Browse files
committed
fixed matplotlib icon
svn path=/trunk/matplotlib/; revision=446
1 parent ea42865 commit 07acc46

2 files changed

Lines changed: 197 additions & 92 deletions

File tree

examples/matplotlib_icon.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
matplotlib.use('SVG')
66
from matplotlib.matlab import *
77

8-
fig = figure(figsize=(0.5, 0.5), dpi=72)
9-
subplot(111)
10-
t = arange(0.0, 2.0, 0.05)
8+
rc('grid', ls='-', lw=2, color='k')
9+
fig = figure(figsize=(1, 1), dpi=72)
10+
axes([0.025, 0.025, 0.95, 0.95], axisbg='y')
11+
t = arange(0, 2, 0.05)
1112
s = sin(2*pi*t)
12-
plot(t,s)
13+
plot(t,s, linewidth=4)
14+
axis([-.2, 2.2, -1.2, 1.2])
1315
#axis('off')
16+
grid(True)
1417
set(gca(), xticklabels=[], yticklabels=[])
1518
savefig('../images/matplotlib.svg', facecolor=0.75)
1619

0 commit comments

Comments
 (0)