Pandas-Bokeh icon indicating copy to clipboard operation
Pandas-Bokeh copied to clipboard

Support rect glyph

Open fleimgruber opened this issue 4 years ago • 3 comments

Trying to do e.g. df.plot(kind="rect", ...) results in ValueError: Allowed plot kinds are 'line', 'step', 'point', 'scatter', 'bar', 'barh', 'hist', 'area', 'pie', 'map'.

Do you plan to support the rect glyph? Is there a specific reason it is not yet supported? How much effort would you estimate for that? With some guidance I might tackle it myself.

fleimgruber avatar Sep 29 '20 16:09 fleimgruber

Hi @fleimgruber ,

contributions are always welcome. How would such an API for an "rect"-plot look like. How should a dataframe be formed and how should the plot look like?

Best,

Patrik

PatrikHlobil avatar Oct 01 '20 17:10 PatrikHlobil

How would such an API for an "rect"-plot look like. How should a dataframe be formed and how should the plot look like?

See the API reference and also this example.

contributions are always welcome.

I will have a look into the code then and try to come up with a PR.

fleimgruber avatar Oct 01 '20 18:10 fleimgruber

Ah, got it. You want to implement something like a matrix plot. I actually wanted to implement this a long time ago but didn’t find the time to do so.

If you need any advice, please ask me.

Best Patrik

PatrikHlobil avatar Oct 02 '20 14:10 PatrikHlobil