Skip to content

Commit 7595f4b

Browse files
Merge pull request plotly#3258 from plotly/undo_fix_range
undo partly-built work
2 parents 0b5b61c + 50320e9 commit 7595f4b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/python/plotly/plotly/express/_core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,6 @@ def set_cartesian_axis_opts(args, axis, letter, orders):
566566
if isinstance(axis, go.layout.XAxis)
567567
else list(reversed(orders[args[letter]])) # top down for Y axis
568568
)
569-
if "range" not in axis:
570-
axis["range"] = [-0.5, len(orders[args[letter]]) - 0.5]
571569

572570

573571
def configure_cartesian_marginal_axes(args, fig, orders):

packages/python/plotly/plotly/tests/test_optional/test_px/test_px.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import plotly.express as px
2+
import plotly.io as pio
23
import numpy as np
34
import pytest
45
from itertools import permutations
@@ -81,7 +82,6 @@ def test_labels():
8182

8283
def test_px_templates():
8384
try:
84-
import plotly.io as pio
8585
import plotly.graph_objects as go
8686

8787
tips = px.data.tips()
@@ -192,6 +192,7 @@ def test_px_templates():
192192
finally:
193193
# reset defaults to prevent all other tests from failing if this one does
194194
px.defaults.reset()
195+
pio.templates.default = "plotly"
195196

196197

197198
def test_px_defaults():
@@ -206,6 +207,7 @@ def test_px_defaults():
206207
finally:
207208
# reset defaults to prevent all other tests from failing if this one does
208209
px.defaults.reset()
210+
pio.templates.default = "plotly"
209211

210212

211213
def assert_orderings(days_order, days_check, times_order, times_check):

0 commit comments

Comments
 (0)