Skip to content

Commit 5dc67fa

Browse files
fix subplot imports
1 parent 7d61098 commit 5dc67fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: packages/python/plotly/plotly/basedatatypes.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ def select_traces(self, selector=None, row=None, col=None, secondary_y=None):
11811181
)
11821182

11831183
def _perform_select_traces(self, filter_by_subplot, grid_subplot_refs, selector):
1184-
from plotly.subplots import _get_subplot_ref_for_trace
1184+
from plotly._subplots import _get_subplot_ref_for_trace
11851185

11861186
# functions for filtering
11871187
def _filter_by_subplot_ref(trace):
@@ -2313,7 +2313,7 @@ def append_trace(self, trace, row, col):
23132313
self.add_trace(trace=trace, row=row, col=col)
23142314

23152315
def _set_trace_grid_position(self, trace, row, col, secondary_y=False):
2316-
from plotly.subplots import _set_trace_grid_reference
2316+
from plotly._subplots import _set_trace_grid_reference
23172317

23182318
grid_ref = self._validate_get_grid_ref()
23192319
return _set_trace_grid_reference(
@@ -2413,7 +2413,7 @@ def get_subplot(self, row, col, secondary_y=False):
24132413
- xaxis: plotly.graph_objs.layout.XAxis instance for subplot
24142414
- yaxis: plotly.graph_objs.layout.YAxis instance for subplot
24152415
"""
2416-
from plotly.subplots import _get_grid_subplot
2416+
from plotly._subplots import _get_grid_subplot
24172417

24182418
return _get_grid_subplot(self, row, col, secondary_y)
24192419

0 commit comments

Comments
 (0)