Contributing useful Object helpers (Rolling, LineLabel)
#3133
Replies: 2 comments 2 replies
-
|
Hi @mwaskom , I have a pretty much the same question -- are you going to accept 3rd party contribution to objects API? As a ggplot enthusiast I really love the objects API. Unfortunatelly, I reach its boundaries quite often. Therefore, I'd like to enrich the objects palett for myself and for others as well. And I believe the community will push the |
Beta Was this translation helpful? Give feedback.
-
|
@JesseFarebro I was thinking of pulling some of these together into a separate library. Thoughts? Seems like there's a growing body of these little snippets (these, #3320, so I'm toying with). cc: @Ofosu-Osei |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I was wondering if the new Object API is at the point where you'd be accepting contributions for new Object types. I've implemented a couple of objects that could be useful for others.
Rollingthat essentially hooks intoDataFrame.rollingto provide moving averages. (this may not be completely necessary as you can perform.rollingon the dataframe and passdata=in theadd()call? Regardless, I thought it was a nice addition as aMovetype)LineLabelthat places text beside a line mark. (this takes inspiration from Matplotx'sline_labels).I'll post both of them here and if you think they'd be helpful I could polish them up and submit a PR. Thanks so much for your hard work on Seaborn, the Object API has been amazing to work with and I can't wait for the addition of features like compound marks.
P.S. It would be useful if Seaborn exported some additional classes to make typing easier for 3rd party Objects. For example,
GroupBy,Mappable, etc.RollingShow
LineLabelShow
Example
Example using both
RollingandLineLabel:Beta Was this translation helpful? Give feedback.
All reactions