# Get this figure: fig = py.get_figure("https://plotly.com/~wthrmn/30/") # Get this figure's data: data = py.get_figure("https://plotly.com/~wthrmn/30/").get_data() # Add data to this figure: py.plot(Data([Scatter(x=[1, 2], y=[2, 3])]), filename ="WeatherBox", fileopt="extend") # Get y data of first trace: y1 = py.get_figure("https://plotly.com/~wthrmn/30/").get_data()[0]["y"] # Get figure documentation: https://plotly.com/python/get-requests/ # Add data documentation: https://plotly.com/python/file-options/ # If you're using unicode in your file, you may need to specify the encoding. # You can reproduce this figure in Python with the following code! # Learn about API authentication here: https://plotly.com/python/getting-started # Find your api_key here: https://plotly.com/settings/api import plotly.plotly as py from plotly.graph_objs import * py.sign_in('username', 'api_key') trace1 = { "name": "Edinburg, TX", "type": "box", "y": [64, 86], "marker": {"color": "#FFe600"} } trace2 = { "name": "Lake Mary, FL", "type": "box", "y": [60, 80], "marker": {"color": "#fdff00"} } trace3 = { "name": "Melbourne, FL", "type": "box", "y": [65, 79], "marker": {"color": "#fdff00"} } trace4 = { "name": "Lake Elsinore, CA", "type": "box", "y": [39, 76], "marker": {"color": "#b0ff00"} } trace5 = { "name": "Phoenix, AZ", "type": "box", "y": [54, 76], "marker": {"color": "#b0ff00"} } trace6 = { "name": "Alpine, CA", "type": "box", "y": [44, 75], "marker": {"color": "#b0ff00"} } trace7 = { "name": "Arlington, TX", "type": "box", "y": [49, 70], "marker": {"color": "#3eff00"} } trace8 = { "name": "Dallas, TX", "type": "box", "y": [51, 70], "marker": {"color": "#3eff00"} } trace9 = { "name": "Virginia Beach, VA", "type": "box", "y": [48, 62], "marker": {"color": "#00ff5c"} } trace10 = { "name": "Nashville, TN", "type": "box", "y": [41, 60], "marker": {"color": "#00ff83"} } trace11 = { "name": "Franklin, TN", "type": "box", "y": [38, 59], "marker": {"color": "#00ff83"} } trace12 = { "name": "Waynesville, NC", "type": "box", "y": [38, 58], "marker": {"color": "#00ffa8"} } trace13 = { "name": "Sacramento, CA", "type": "box", "y": [38, 58], "marker": {"color": "#00ffa8"} } trace14 = { "name": "Chadds Ford, PA", "type": "box", "y": [39, 52], "marker": {"color": "#00e4ff"} } trace15 = { "name": "Trinidad, CO", "type": "box", "y": [25, 51], "marker": {"color": "#00e4ff"} } trace16 = { "name": "Portland, OR", "type": "box", "y": [45, 50], "marker": {"color": "#00d4ff"} } trace17 = { "name": "Limerick, PA", "type": "box", "y": [35, 50], "marker": {"color": "#00d4ff"} } trace18 = { "name": "Lakewood, OH", "type": "box", "y": [39, 49], "marker": {"color": "#00d4ff"} } trace19 = { "name": "Salt Lake City, UT", "type": "box", "y": [30, 45], "marker": {"color": "#00b4ff"} } trace20 = { "name": "Nine Mile Falls, WA", "type": "box", "y": [41, 44], "marker": {"color": "#00a4ff"} } trace21 = { "name": "Portage, MI", "type": "box", "y": [35, 43], "marker": {"color": "#00a4ff"} } trace22 = { "name": "Victor, MT", "type": "box", "y": [29, 42], "marker": {"color": "#0094ff"} } trace23 = { "name": "Rochester, NY", "type": "box", "y": [38, 42], "marker": {"color": "#0094ff"} } trace24 = { "name": "Arlington Heights, IL", "type": "box", "y": [32, 41], "marker": {"color": "#0094ff"} } trace25 = { "name": "Marquette, MI", "type": "box", "y": [31, 38], "marker": {"color": "#0074ff"} } data = Data([trace1, trace2, trace3, trace4, trace5, trace6, trace7, trace8, trace9, trace10, trace11, trace12, trace13, trace14, trace15, trace16, trace17, trace18, trace19, trace20, trace21, trace22, trace23, trace24, trace25]) layout = { "title": "Timelords Weather Forecast - 11/24/2016", "yaxis": {"title": "Temperature Range"}, "legend": { "x": 1.02, "font": { "size": 16, "family": "Open Sans" } }, "margin": { "b": 100, "l": 110, "r": 110, "pad": 10, "autoexpand": True } } fig = Figure(data=data, layout=layout) plot_url = py.plot(fig)