We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 294d743 commit 3cd8144Copy full SHA for 3cd8144
packages/python/plotly/plotly/matplotlylib/mplexporter/exporter.py
@@ -285,8 +285,12 @@ def draw_collection(
285
"zorder": collection.get_zorder(),
286
}
287
288
+ # TODO: When matplotlib's minimum version is bumped to 3.8, this can be
289
+ # simplified since collection.get_offset_position no longer exists.
290
offset_dict = {"data": "before", "screen": "after"}
- offset_order = offset_dict[collection.get_offset_position()]
291
+ offset_order = (offset_dict[collection.get_offset_position()]
292
+ if hasattr(collection, "get_offset_position")
293
+ else "after")
294
295
self.renderer.draw_path_collection(
296
paths=processed_paths,
0 commit comments