ModuleNotFoundError: No module named 'plotly.validators.layout.ternary.baxis._gridcolor'
Issue: I'm trying to plot the following scatter plot (loadings score for PCA):
fig=ex.scatter(loadingdf,x=loadingdf['pc1'],y=loadingdf['pc2'],text=loadingdf['variable'],)
But I keep getting this error:
File plotly\express\_chart_types.py:66, in scatter(data_frame, x, y, color, symbol, size, hover_name, hover_data, custom_data, text, facet_row, facet_col, facet_col_wrap, facet_row_spacing, facet_col_spacing, error_x, error_x_minus, error_y, error_y_minus, animation_frame, animation_group, category_orders, labels, orientation, color_discrete_sequence, color_discrete_map, color_continuous_scale, range_color, color_continuous_midpoint, symbol_sequence, symbol_map, opacity, size_max, marginal_x, marginal_y, trendline, trendline_options, trendline_color_override, trendline_scope, log_x, log_y, range_x, range_y, render_mode, title, template, width, height)
12 def scatter(
13 data_frame=None,
14 x=None,
(...)
60 height=None,
61 ) -> go.Figure:
62 """
63 In a scatter plot, each row of `data_frame` is represented by a symbol
64 mark in 2D space.
65 """
---> 66 return make_figure(args=locals(), constructor=go.Scatter)
plotly\express\_core.py:2249, in make_figure(args, constructor, trace_patch, layout_patch)
2247 fig.update_layout(layout_patch)
2248 if "template" in args and args["template"] is not None:
-> 2249 fig.update_layout(template=args["template"], overwrite=True)
2250 for f in frame_list:
2251 f["name"] = str(f["name"])
...
File <frozen importlib._bootstrap>:1007, in _find_and_load(name, import_)
File <frozen importlib._bootstrap>:984, in _find_and_load_unlocked(name, import_)
ModuleNotFoundError: No module named 'plotly.validators.layout.ternary.baxis._gridcolor'
Yesterday I ran the code and it worked however it isn't working anymore. I don't think I have updated the package either
Thank you
Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson