Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 3ffe8c8

Browse files
Fix use of deprecated get_offset_position
1 parent 00c18fd commit 3ffe8c8

File tree

1 file changed

+1
-4
lines changed
  • packages/python/plotly/plotly/matplotlylib/mplexporter

1 file changed

+1
-4
lines changed

‎packages/python/plotly/plotly/matplotlylib/mplexporter/exporter.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,16 +285,13 @@ def draw_collection(
285285
"zorder": collection.get_zorder(),
286286
}
287287

288-
offset_dict = {"data": "before", "screen": "after"}
289-
offset_order = offset_dict[collection.get_offset_position()]
290-
291288
self.renderer.draw_path_collection(
292289
paths=processed_paths,
293290
path_coordinates=path_coords,
294291
path_transforms=path_transforms,
295292
offsets=offsets,
296293
offset_coordinates=offset_coords,
297-
offset_order=offset_order,
294+
offset_order="after",
298295
styles=styles,
299296
mplobj=collection,
300297
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /