Paola Nanci created ZEPPELIN-2895: ------------------------------------- Summary: plotly displayed in a strange a way Key: ZEPPELIN-2895 URL: https://issues.apache.org/jira/browse/ZEPPELIN-2895 Project: Zeppelin Issue Type: Bug Reporter: Paola Nanci
I am trying to use Plotly with the python interpreter. Running the following code I face the following issue: - The scrollbars at the bottom of the cell and on the right appear, even if the plot fits in the cell. - the Plotly buttons are completely messy in the cell. we would like to adopt zeppelin (in place of Jupyter) and plotly in the company but this behavior does not occur in Jupyter. Has someone faced the same issue? import plotly import numpy as np from plotly.graph_objs import Scatter, Layout import plotly.graph_objs as go from plotly import tools import plotly.plotly as py def plot(plot_dic, height=1000, width=700, **kwargs): kwargs['output_type'] = 'div' plot_str = plotly.offline.plot(plot_dic, **kwargs) print('%%angular <div style="height: %ipx; width: %spx"> %s </div>' % (height, width, plot_str)) trace1 = go.Scatter( x=[1, 2, 3], y=[4, 5, 6] ) trace2 = go.Scatter( x=[20, 30, 40], y=[50, 60, 70], ) fig = tools.make_subplots(rows=5, cols=1) fig.append_trace(trace1, 1, 1) fig.append_trace(trace2, 2, 1) fig.append_trace(trace1, 3, 1) fig.append_trace(trace2, 4, 1) fig.append_trace(trace1, 5, 1) fig['layout'].update(autosize=True,height=1000, width=700, title='subplots') plot({ "data": fig['data'], "layout": fig['layout'] }) -- This message was sent by Atlassian JIRA (v6.4.14#64029)