![]() Figure ( data = data, layout = layout ) py. Surface ( x = x, y = y, z = z ) data = layout = go. cos ( tGrid ) # z = r*cos(t) surface = go. sin ( tGrid ) # y = r*sin(s)*sin(t) z = r * np. sin ( tGrid ) # x = r*cos(s)*sin(t) y = r * np. sin ( 7 * sGrid + 5 * tGrid ) # r = 2 + sin(7s+5t) x = r * np. Run the following to install the Plotly Jupyter Lab extension: jupyter labextension install jupyterlab-plotly4.9. Import chart_otly as py import aph_objects as go import numpy as np s = np. This way users know what to expect and also the folks at Plotly have done already most of the heavy lifting to create an extension for Jupyter Lab that works very well. iplot ( fig, filename = 'jupyter-Nuclear Waste Sites on American Campuses' ) Layout ( title = 'Nuclear Waste Sites on Campus', autosize = True, hovermode = 'closest', showlegend = False, mapbox = dict ( accesstoken = mapbox_access_token, bearing = 0, center = dict ( lat = 38, lon =- 94 ), pitch = 0, zoom = 3, style = 'light' ), ) fig = dict ( data = data, layout = layout ) py. vhphan can you check these version numbers too. Upgrade plotly.py to 3.1.0 (which corresponds to plotlywidget version 0.2.0 which you already have). read_csv ( ' %20o n%20American%20Campuses.csv' ) site_lat = df. It looks like you’re version of plotly (python) and plotlywidget (JupyterLab) are out of sync. Plotly is a graphing library that makes interactive graphs. Import chart_otly as py import aph_objects as go import pandas as pd # mapbox_access_token = 'ADD YOUR TOKEN HERE' df = pd. Extension 2: Interactive Graphs with Plotly and Easy Edition with Chart Editor. ![]() See examples of statistic, scientific, 3D charts, and more here.
0 Comments
Leave a Reply. |