-
-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
There's |
It's just because the way |
It's just matplotlib uses |
Oh sorry I misunderstood what you meant originally, yes I guess it could be done that way, but that's probably up to the |
Thanks for this PR! Our first contribution to the source :) I do favour A couple of requests:
|
…x and scatter_polar
849322a
to
e7863c6
Compare
You're welcome! I'm really glad this package got made, I was seriously thinking of making something similar myself the other day and now its already been done!! I've moved the code as requested, and added the docstring. I had an error generating the HTML docs ( |
Yep, pretty simple in the end :) |
plotly_express/_doc.py
Outdated
@@ -91,6 +91,10 @@ | |||
"Ignored if `error_z` is `None`.", | |||
], | |||
color=[colref, "Values from this column are used to assign color to marks."], | |||
opacity=[ | |||
"Sets the opacity of the markers in scatter plots such as `scatter()`", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll tweak this wording a bit. To match the rest it should be something like (number between 0 and 1) Sets the opacity of markers.
(no need to enumerate the function types as this shows up in the individual doc strings of those functions.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've adjusted to keep it more inline, feel free to change as necessary!
I'm happy to merge this in a few hours when I've had a chance to test it a bit. Thanks again for the contribution and feel free to suggest additional ones now that you've seen the pattern :) |
Thanks again! |
Hi, scatter_mapbox and scatter_geo also seen to miss opacity feature |
@DmitriyG228 thanks for letting me know! I'll add this to the next release, which should come out within the hour :) |
Added ability to change opacity for markers in functions:
px.scatter()
px.scatter_3d()
px.scatter_matrix()
px.scatter_ternary()
px.scatter_polar()
Usage
Simply add the
opacity
argument to any of the functions, and specific a float between 0 and 1.