Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e49c689 commit 4610641Copy full SHA for 4610641
2 files changed
CHANGELOG
@@ -1,3 +1,5 @@
1
+2008-06-30 Another attempt to fix TextWithDash - DSD
2
+
3
2008-06-30 Removed Qt4 NavigationToolbar2.destroy -- it appears to
4
have been unnecessary and caused a bug reported by P.
5
Raybaut - DSD
lib/matplotlib/text.py
@@ -298,7 +298,12 @@ def draw(self, renderer):
298
299
bbox, info = self._get_layout(renderer)
300
trans = self.get_transform()
301
- posx, posy = self.get_position()
302
+ # don't use self.get_position here, which refers to text position
303
+ # in Text, and dash position in TextWithDash:
304
+ posx = float(self.convert_xunits(self._x))
305
+ posy = float(self.convert_yunits(self._y))
306
307
posx, posy = trans.transform_point((posx, posy))
308
canvasw, canvash = renderer.get_canvas_width_height()
309
0 commit comments