Skip to content

Commit 746b227

Browse files
committed
removed import plotly express from test
1 parent 9f06509 commit 746b227

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_annotations.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import plotly.graph_objs as go
77
from plotly.subplots import make_subplots
8-
import plotly.express as px
8+
99
import pytest
1010

1111

@@ -353,8 +353,9 @@ def test_no_exclude_empty_subplots():
353353

354354

355355
def test_supplied_yref_on_single_plot_subplot():
356-
### test a (1,1) subplot figure object from px.scatter
357-
fig = px.scatter(x=[1, 2, 3, 4], y=[1, 2, 2, 1])
356+
### test a (1,1) subplot figure object
357+
fig = make_subplots(1, 1)
358+
fig.add_trace(go.Scatter(x=[1, 2, 3, 4], y=[1, 2, 2, 1]))
358359
fig.add_trace(go.Scatter(x=[1, 2, 3, 4], y=[4, 3, 2, 1], yaxis="y2"))
359360
fig.update_layout(
360361
yaxis=dict(title="yaxis1 title"),

0 commit comments

Comments
 (0)