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

Skip to content

Commit 44a60ea

Browse files
author
Steve Chaplin
committed
SC
svn path=/trunk/matplotlib/; revision=1551
1 parent 95def94 commit 44a60ea

3 files changed

Lines changed: 134 additions & 165 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
New entries should be added at the top
22

3+
2005-07-21 backend_svg.py: Remove unused imports. Remove methods doc strings
4+
which just duplicate the docs from backend_bases.py. Rename
5+
draw_mathtext to _draw_mathtext. - SC
6+
37
2005-07-17 examples/embedding_in_gtk3.py: new example demonstrating placing
48
a FigureCanvas in a gtk.ScrolledWindow - SC
59

@@ -21,7 +25,6 @@ New entries should be added at the top
2125
~/.matplotlib/tex.cache, which allows you to usetex in
2226
non-writable dirs.
2327

24-
2528
2005-07-05 Fixed bug #1231611 in subplots adjust layout. The problem
2629
was that the text cacheing mechanism was not using the
2730
transformation affine in the key. - JDH
@@ -34,7 +37,6 @@ New entries should be added at the top
3437
2005-06-30 setupext.py: added numarray_inc_dirs for building against
3538
numarray when not installed in standard location - ADS
3639

37-
3840
2005-06-27 backend_svg.py: write figure width, height as int, not float.
3941
Update to fix some of the pychecker warnings - SC
4042

@@ -70,7 +72,6 @@ New entries should be added at the top
7072
files. I noticed that the Tk backend buttons looked much
7173
nicer and it uses the ppm files so I switched them.
7274

73-
7475
2005-06-17 Modified the gtk backend to not queue mouse motion events.
7576
This allows for live updates when dragging a slider. - CM
7677

lib/matplotlib/backend_bases.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class RendererBase:
1616
"""An abstract base class to handle drawing/rendering operations
1717
"""
1818

19-
2019
def open_group(self, s):
2120
"""open a grouping element with label s
2221
Is only currently used by backend_svg
@@ -299,6 +298,9 @@ def draw_regpoly_collection(
299298
self.draw_polygon(gc, rgbFace, zip(thisxverts, thisyverts))
300299

301300

301+
def draw_tex(self, gc, x, y, s, prop, angle, ismath='TeX!'):
302+
raise NotImplementedError
303+
302304
def draw_text(self, gc, x, y, s, prop, angle, ismath=False):
303305
"""
304306
Draw the text.Text instance s at x,y (display coords) with font
@@ -317,9 +319,6 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False):
317319
"""
318320
raise NotImplementedError
319321

320-
def draw_tex(self, gc, x, y, s, prop, angle, ismath='TeX!'):
321-
raise NotImplementedError
322-
323322
def flipy(self):
324323
"""return true if y small numbers are top for renderer
325324
Is used for drawing text (text.py) and images (image.py) only
@@ -343,6 +342,11 @@ def get_text_width_height(self, s, prop, ismath):
343342
"""
344343
return 1,1
345344

345+
def get_width_height(self):
346+
"""return the figure width and height in points or pixels
347+
(depending on the backend), truncated to integers"""
348+
return int(self.figure.bbox.width()), int(self.figure.bbox.height())
349+
346350
def new_gc(self):
347351
"""
348352
Return an instance of a GraphicsContextBase
@@ -833,12 +837,6 @@ def mpl_disconnect(self, cid):
833837
return
834838

835839

836-
def get_width_height(self):
837-
"""return the figure width and height in points or pixels
838-
(depending on the backend), truncated to integers"""
839-
return int(self.figure.bbox.width()), int(self.figure.bbox.height())
840-
841-
842840
class FigureManagerBase:
843841
"""
844842
Helper class for matlab mode, wraps everything up into a neat bundle

0 commit comments

Comments
 (0)