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.
-
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.
Rolling
that essentially hooks intoDataFrame.rolling
to provide moving averages. (this may not be completely necessary as you can perform.rolling
on the dataframe and passdata=
in theadd()
call? Regardless, I thought it was a nice addition as aMove
type)LineLabel
that 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.Rolling
Show
LineLabel
Show
Example
Example using both
Rolling
andLineLabel
:Beta Was this translation helpful? Give feedback.
All reactions