Thanks to visit codestin.com
Credit goes to github.com

Skip to content

subplots with legend in one of the plots does not work #384

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

Closed
orena1 opened this issue Jan 13, 2016 · 3 comments
Closed

subplots with legend in one of the plots does not work #384

orena1 opened this issue Jan 13, 2016 · 3 comments
Assignees

Comments

@orena1
Copy link

orena1 commented Jan 13, 2016

This does not work, the problem is the legend

from plotly import tools
import plotly.plotly as py
import plotly.graph_objs as go


fig = figure()
ax3 = subplot2grid((2,2),(0,1),rowspan=2)
ax1 = subplot2grid((2,2),(0,0))
ax2 = subplot2grid((2,2),(1,0))



ax1.plot([1,2],[5,2])
ax2.plot([1,2],[2,3])
ax3.plot([4,2],[7,3])
ax3.legend('dfsdf')## Without this line it does work
suptitle(Cell1)

plot_url = py.plot_mpl(fig)```
@tarzzz
Copy link
Contributor

tarzzz commented Mar 4, 2016

The Legends are not being converted properly. We might need to re-write/update the legend specific parsing code in mplexporter..

tarzzz added a commit that referenced this issue Mar 7, 2016
@tarzzz
Copy link
Contributor

tarzzz commented Mar 8, 2016

@cldougl This one is handled by #416
Although it may or may not convert the legend properly ( that depends on how the mpl figure is defined), but it will ensure that the conversion does not fail. Please feel free to review and comment,

Here is the diff (it's a minor update): 92d5567

@birnstiel
Copy link

I think I have the same issue. What about that fix? When does it make it into a release?

@tarzzz tarzzz mentioned this issue Dec 30, 2016
@tarzzz tarzzz closed this as completed in bf40319 Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants