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.
2 parents 8a261ea + efafd31 commit 3b337c9Copy full SHA for 3b337c9
4 files changed
examples/specialty_plots/radar_chart.py
@@ -90,7 +90,7 @@ def _gen_axes_patch(self):
90
91
def _gen_axes_spines(self):
92
if frame == 'circle':
93
- return PolarAxes._gen_axes_spines(self)
+ return super()._gen_axes_spines()
94
# The following is a hack to get the spines (i.e. the axes frame)
95
# to draw correctly for a polygon frame.
96
examples/text_labels_and_annotations/demo_text_path.py
@@ -66,9 +66,7 @@ def draw(self, renderer=None):
66
67
ax = plt.subplot(211)
68
69
- from matplotlib._png import read_png
70
- fn = get_sample_data("grace_hopper.png", asfileobj=False)
71
- arr = read_png(fn)
+ arr = plt.imread(get_sample_data("grace_hopper.png"))
72
73
text_path = TextPath((0, 0), "!?", size=150)
74
p = PathClippedImagePatch(text_path, arr, ec="k",
examples/text_labels_and_annotations/rainbow_text.py
@@ -48,15 +48,17 @@ def rainbow_text(x, y, strings, colors, ax=None, **kw):
48
text = ax.text(x, y, s + " ", color=c, transform=t, **kw)
49
text.draw(canvas.get_renderer())
50
ex = text.get_window_extent()
51
- t = transforms.offset_copy(text._transform, x=ex.width, units='dots')
+ t = transforms.offset_copy(
52
+ text.get_transform(), x=ex.width, units='dots')
53
54
# vertical version
55
for s, c in zip(strings, colors):
56
text = ax.text(x, y, s + " ", color=c, transform=t,
57
rotation=90, va='bottom', ha='center', **kw)
58
59
- t = transforms.offset_copy(text._transform, y=ex.height, units='dots')
60
61
+ text.get_transform(), y=ex.height, units='dots')
62
63
64
rainbow_text(0, 0, "all unicorns poop rainbows ! ! !".split(),
examples/widgets/menu.py
@@ -89,7 +89,6 @@ def set_extent(self, x, y, w, h):
89
self.label.ox = x + self.padx
self.label.oy = y - self.depth + self.pady/2.
- self.rect._update_patch_transform()
self.hover = False
def draw(self, renderer):
0 commit comments