-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
subplot_titles posisiong value goes negative when shared axes is True and start_cell is bottom-left #1002
Comments
I guess this works Could some one verify too?
|
Just opened pullrequest #1005 for this. |
This will be fixed in version 4 by #1528. You can try out the new behavior using the from _plotly_future_ import v4_subplots
from plotly import tools
import plotly.offline as py
import plotly.graph_objs as go
trace0 = go.Scatter( x=[1, 2], y=[1, 2])
trace1 = go.Scatter( x=[1, 2], y=[5, 3])
trace2 = go.Scatter( x=[1, 2, 3], y=[2, 1, 2])
fig = tools.make_subplots(rows=3, cols=1,
shared_xaxes=True,
start_cell='bottom-left',
vertical_spacing=0.00,
subplot_titles=('First Subplot','Second Subplot', 'Third Subplot'))
fig.append_trace(trace0, 1, 1)
fig.append_trace(trace1, 2, 1)
fig.append_trace(trace2, 3, 1)
fig['layout'].update(showlegend=False, title='Specs with Subplot Title')
py.plot(fig, filename='custom-sized-subplot-with-subplot-titles') |
Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, so I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our backlog. Thanks for your help - @gvwilson |
Hi I just fund code like this does not work as described on the title.
I could not find anything relevant about this.
I am trying to find a workaround, but could there be simple solution?
using python3.6 with fedora 28.
installed plotly with pip.
Regards
sample code
#Added "vertical_spacing=0.00" to simplified the calculation as per plotly.py/plotly/tootls.py
pprint'ed the layout
It seems it is coming from this part of plotly.py/plotly/tootls.py
How the result look like
Please remember it has vertical_spacing=0.00. There are 3 subplots stacked vertically here...
The text was updated successfully, but these errors were encountered: