Spaces:
Running
Running
Paul-Edouard Sarlin
commited on
Bugfix for matplotlib 3.8 (#38)
Browse files
maploc/utils/viz_localization.py
CHANGED
|
@@ -99,6 +99,7 @@ def copy_image(im, ax):
|
|
| 99 |
prop.pop("window_extent")
|
| 100 |
prop.pop("figure")
|
| 101 |
prop.pop("transform")
|
|
|
|
| 102 |
return ax.imshow(im.get_array(), **prop)
|
| 103 |
|
| 104 |
|
|
|
|
| 99 |
prop.pop("window_extent")
|
| 100 |
prop.pop("figure")
|
| 101 |
prop.pop("transform")
|
| 102 |
+
prop.pop("shape", None)
|
| 103 |
return ax.imshow(im.get_array(), **prop)
|
| 104 |
|
| 105 |
|