Skip to content

Keep ticks while sharing axes in subplots #2772

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
SebsterG opened this issue Jul 4, 2018 · 2 comments
Closed

Keep ticks while sharing axes in subplots #2772

SebsterG opened this issue Jul 4, 2018 · 2 comments

Comments

@SebsterG
Copy link

SebsterG commented Jul 4, 2018

This has been flagged twice in community: https://community.plot.ly/t/maintain-ticks-on-shared-axes/9343 , https://community.plot.ly/t/show-shared-axis-in-all-subplots/3696

When making subplots and sharing axes the ticks are removed from all but one axes in the subplots, example:

fig = tools.make_subplots(rows=2, cols=1, 
                          shared_xaxes=False/True)**, shared_yaxes=True,
                          subplot_titles=('First Subplot','Second Subplot'))

trace = go.Scatter(x=[1,2,3], y=[2,1,2])
trace2 = go.Scatter(x=[1,2,3], y=[4,0,2])

fig.append_trace(trace, col=1, row=1)
fig.append_trace(trace2, col=1, row=2)

offline.iplot(fig)

newplot 1
newplot

I would be great to share axes and have axis ticks in all of the subplots.

@etpinard
Copy link
Contributor

etpinard commented Jul 4, 2018

duplicate of #2539

@etpinard etpinard closed this as completed Jul 4, 2018
@yiliu-coding
Copy link

Have you solved this problem, I now have the same need. Thanks in advance.

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