Skip to content
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 doesn't support angularaxis / polar #758

Open
ahmadh84 opened this issue May 23, 2017 · 0 comments
Open

subplot doesn't support angularaxis / polar #758

ahmadh84 opened this issue May 23, 2017 · 0 comments

Comments

@ahmadh84
Copy link

It seems like having both a polar and a non-polar graph in the same subplot doesn't work. In the following simple code, the angular polar graph doesn't work:

import plotly
import plotly.graph_objs as go
import numpy as np

# make 2 plots sublplot
fig = plotly.tools.make_subplots(rows=1, cols=2, specs=[[{}, {}]])

# the first subplot: a histogram
trace1 = go.Histogram(
    x=np.random.uniform(1,6,size=62),
)
fig.append_trace(trace1, 1, 1)

# the second subplot: a polar graph
trace2 = go.Scatter(
    r = np.random.uniform(1,6,size=62),
    t = np.random.uniform(30,5,size=62),
    mode='markers',
)
fig.append_trace(trace2, 1, 2)

plotly.offline.plot(fig, filename='temp.html')

Note that if fig.append_trace(trace1, 1, 1) is commented out, the polar graph is plotted. I have been told that subplot doesn't fully support polar graphs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants