Skip to content

Commit 42b578e

Browse files
committed
add blank method for new matplotlib version compatibility
1 parent a4cee12 commit 42b578e

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

pygame_matplotlib/backend_pygame.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,23 @@ def set_bounding_rect(self, rect: pygame.Rect):
6767
def draw(self, renderer):
6868
return super().draw(renderer)
6969

70+
def set_alpha(self):
71+
pass
72+
def set_at(self):
73+
pass
74+
def set_clip(self):
75+
pass
76+
def set_colorkey(self):
77+
pass
78+
def set_masks(self):
79+
pass
80+
def set_palette(self):
81+
pass
82+
def set_palette_at(self):
83+
pass
84+
def set_shifts(self):
85+
pass
86+
7087
def get_interactive_artists(self, renderer):
7188
"""Get the interactive artists.
7289

test_blitting.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@
2323
# a) we have the correctly sized and drawn background to grab
2424
# b) we have a cached renderer so that ``ax.draw_artist`` works
2525
# so we spin the event loop to let the backend process any pending operations
26-
plt.pause(0.1)
26+
plt.pause(1)
2727

2828
# get copy of entire figure (everything inside fig.bbox) sans animated artist
29-
print(fig.bbox)
3029
bg = fig.canvas.copy_from_bbox(fig.bbox)
31-
print(bg)
3230

3331
# draw the animated artist, this uses a cached renderer
3432
ax.draw_artist(ln)

0 commit comments

Comments
 (0)