-
Notifications
You must be signed in to change notification settings - Fork 112
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
Generalize the figure=
keyword argument to all kind of plot
#122
base: master
Are you sure you want to change the base?
Conversation
Should solve #86 |
Hi @Sigmun, thanks for contributing. I will try to have a detailled look at the MR as soon as possible, I am quite busy now. I already tried to implement this feature, but struggled how the API should be designed. There are a few critical issues that have to be settled:
What do you think about that? Best Patrik |
Thanks for working on this! I just wanted to note that this is the default behavior of matplotlib backend, and has been very productive for me. We don't have to copy exactly, but maybe we can reference what matplotlib is doing in some aspects. Regarding 1 & 2 : One option I think it makes is respecting the first plot. fig = s1.plot(kind='line', show_figure=False) #first
s2.plot(kind="bar", figure=fig) #second The first line is responsible for "creating" a figure, and second line is "using" an already created plot so I think such behavior is intuitive API wise as well. |
this looks like a very good change to me. without it the higher level API that pandas-bokeh offers removes a significant number of use cases. As well as working with matplotlib and plotly that offer this capability have also worked with geopandas |
@rraymondgh: As already mentioned I wanted this feature for nearly 1,5 years, but couldn't find the time to implement it. The problems are outlined above and the current code status is a bit messy, so in order to implement the feature, I would have to refactor the code quite a lot. |
Gents, I'm sorry, still having issues figuring out how to plot 2 lines of different style in HTML. Let's say here's an example. df would have different columns. I want to display one of it as normal line, but some others as discrete arrows (to show my signals) or circles or whatever, to mark the main line with some entries/exists. Also how can I make solid vertical line for xticks? They're kind of very pale. Thanks!
|
Hi @algomaschine, I don't see the link with this PR. you need to open an issue for your problem. |
No description provided.