Skip to content

Commit ba01fe6

Browse files
work out line shape for ecdfmode
1 parent 26fb6ac commit ba01fe6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: packages/python/plotly/plotly/express/_chart_types.py

-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,6 @@ def ecdf(
515515
marginal=None,
516516
opacity=None,
517517
orientation=None,
518-
line_shape="hv",
519518
ecdfnorm="probability",
520519
ecdfmode="standard",
521520
render_mode="auto",

Diff for: packages/python/plotly/plotly/express/_core.py

+4
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,10 @@ def infer_config(args, constructor, trace_patch, layout_patch):
18291829

18301830
if "line_shape" in args:
18311831
trace_patch["line"] = dict(shape=args["line_shape"])
1832+
elif "ecdfmode" in args:
1833+
trace_patch["line"] = dict(
1834+
shape="vh" if args["ecdfmode"] == "reversed" else "hv"
1835+
)
18321836

18331837
if "geojson" in args:
18341838
trace_patch["featureidkey"] = args["featureidkey"]

0 commit comments

Comments
 (0)