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

Skip to content

Commit f902504

Browse files
committed
restored gtk default dpi
svn path=/trunk/matplotlib/; revision=44
1 parent c5da9c7 commit f902504

6 files changed

Lines changed: 23 additions & 12 deletions

File tree

TODO

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,28 @@
114114
-- when you toggle an axes for interactive navigation, make sure a
115115
checked on appears as the default is one is checked
116116

117-
-- compile pygtk for threads on win32.
117+
-- DONE compile pygtk for threads on win32.
118118

119119
-- There is a bug in vertical rendering of text that is exposed in the
120120
text, but not the ylabel, command. It looks like a pixmap or
121121
images is not being properly initialized, resulting in pixel noise.
122122

123-
-- Fix the way the color map allocs colors. Use only one DrawingArea
123+
-- DONE Fix the way the color map allocs colors. Use only one DrawingArea
124124
instead of creating a new one with each call to ColorDispatcher().
125125
With this fix the bug in the logo code where the foreground text
126126
doesn't render to the desired color
127127

128128
-- include manifest file for rpms
129129

130-
-- fix CTRL-z bug in interactive2.py
130+
-- fix CTRL-z bug in interactive2.py
131+
132+
-- Allow gca not gca(); ditto for gcf()
133+
134+
-- Fix legend to take a vector of line handles
135+
136+
-- Fix legend bug on win32 and stock_demo. This appears to be GTK
137+
specific
138+
139+
-- ticks too short with log scaling
140+
141+
-- arbitrary patches for scatter

examples/figtext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def f(t):
1414
plot(t1, f(t1), 'bo', t2, f(t2), 'k')
1515
title('subplot 1')
1616
ylabel('Damped oscillation')
17-
figtitle = 'Figure Title: this is really, really, silly, and really, really long'
18-
t = gcf().text(0.9, 0.95, figtitle,
17+
figtitle = 'This is a somehwhat long figure title'
18+
t = gcf().text(0.5, 0.95, figtitle,
1919
horizontalalignment='center', fontsize=20,)
2020

2121

@@ -25,6 +25,6 @@ def f(t):
2525
title('subplot 2')
2626
ylabel('Undamped')
2727

28-
#savefig('figtext', dpi=150)
28+
savefig('figtext')
2929
show()
3030

examples/legend_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
set(gca(), 'yticklabels', [])
2020
set(gca(), 'xticklabels', [])
2121

22-
#savefig('mml')
22+
savefig('mml')
2323
show()
2424

2525

examples/log_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from matplotlib.matlab import *
22

33
dt = 0.01
4-
t = arange(0, 20.0, dt)
4+
t = arange(dt, 20.0, dt)
55

66
subplot(311)
77
semilogx(t, exp(-t/5.0))
@@ -11,5 +11,5 @@
1111

1212
subplot(313)
1313
loglog(t, exp(-t/10.0))
14-
14+
savefig('log_demo')
1515
show()

examples/stock_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
(d1, p1, d2, p2 ) = get_two_stock_data()
66

77
plot(d1, p1, 'bs', d2, p2, 'go')
8-
legend( ('INTC', 'AAPL'))
9-
108
xlabel('Days')
119
ylabel('Normalized price')
1210
set(gca(), 'xlim', [0, 3])
1311
title('INTC vs AAPL')
12+
legend( ('INTC', 'AAPL') )
13+
savefig('stock_demo')
1414
show()
1515

1616

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
data.extend(glob.glob('fonts/ttf/*.ttf'))
99

1010
setup(name="matplotlib",
11-
version= '0.30',
11+
version= '0.31',
1212
description = "Matlab style python plotting package",
1313
author = "John D. Hunter",
1414
author_email="[email protected]",

0 commit comments

Comments
 (0)