Skip to content

Commit

Permalink
Fix pickling issue when saving RGB gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
scottshambaugh committed Jun 24, 2024
1 parent 5803bb2 commit 4933381
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mpl_stereo/AxesStereo.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,13 @@ def wiggle(self, filepath: Union[str, Path], interval: float = 125,
if yaxis_off:
ax.yaxis.set_visible(False)

# workaround for https://github.com/matplotlib/matplotlib/issues/28448
artists = ax.get_children()
for artist in artists:
if isinstance(artist, mpl.image.AxesImage):
array = artist.get_array()
artist.set_array(array.data.astype('float64'))

def update(frame):
axs[frame].set_visible(True)

Expand Down

0 comments on commit 4933381

Please sign in to comment.