-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PX scatter, bar behaviour when only one of x or y is specified #2332
Comments
Note that we can already pass in |
Hum here I don't think we should make it more complicated than what is possible to do with |
Oh so I'm not proposing to make anything more complicated: I'm saying we should raise an exception if one of the two is |
(this is what Seaborn does also BTW) |
well having to pass an additional parameter is more complicated :-). When what you want to do is
|
OK, so here is a heuristic we could use which results in reasonable results for scatter/line/area/bar...
|
OK so I've actually implemented a more complicated option, wherein if the |
Plotly.js defaults to assuming
x
ory
are increasing integers if unspecified, but this is a bad fit for PX... consider the following case where coloring the markers results in their shifting position (note the x axis range!)This case is even scarier, with individual bars have different heights based on position in the data frame:
For
bar
,line
,scatter
andarea
we should probably disallow specifying one but not both ofx
andy
. Possibly in the 3d cases also? Anywhere else? Bar-like traces?The text was updated successfully, but these errors were encountered: