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

Skip to content

Commit fbd1a0c

Browse files
committed
small doc fixes
svn path=/trunk/matplotlib/; revision=195
1 parent 80c013c commit fbd1a0c

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

TODO

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,4 +282,11 @@
282282

283283
-- rotated mathtext
284284

285+
-- fix mathtext sub and super layout
286+
287+
-- get a sf request to remove fonttools and ttfquery
288+
289+
-- add polar plots
290+
291+
-- add pie charts
285292

examples/object_picker.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
from matplotlib.numerix import sin, pi, arange, absolute, sqrt
99

1010
import matplotlib
11-
matplotlib.use('GTK')
11+
matplotlib.use('GTKAgg')
1212

1313
from matplotlib.backends.backend_gtk import NavigationToolbar, \
14-
error_msg, colorManager, FigureCanvasGTK
14+
error_msg, colorManager
15+
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas
16+
1517
from matplotlib.axes import Subplot
1618

1719
from matplotlib.figure import Figure
@@ -202,10 +204,11 @@ def run(self):
202204
break
203205
self.destroy()
204206

205-
class PickerCanvas(FigureCanvasGTK):
207+
class PickerCanvas(FigureCanvas):
206208

207209
def button_press_event(self, widget, event):
208-
width, height = self.figure.renderer.gdkDrawable.get_size()
210+
width = self.figure.bbox.x.interval()
211+
height = self.figure.bbox.y.interval()
209212

210213
self.pick(event.x, height-event.y)
211214

examples/text_themes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from matplotlib.matlab import *
22

3-
font = {'fontname' : 'courier',
3+
font = {'fontname' : 'Times',
44
'color' : 'r',
55
'fontweight' : 'normal',
66
'fontsize' : 12}

0 commit comments

Comments
 (0)