<jupyter_start><jupyter_text>Getting started with plotly offline  Detailed tutorial at https://plot.ly/python/offline/ Examples at https://plot.ly/python/<jupyter_code>from plotly import __version__
import plotly.offline as offline
import plotly.graph_objs as go
import pandas as pd
import numpy as np

print (__version__) # requires version >= 1.9.0<jupyter_output>2.2.2<jupyter_text>Plotting inline using notebook Scatter plot<jupyter_code>offline.init_notebook_mode(connected=True)
offline.iplot([{"x": [1, 2, 3], "y": [3, 1, 6]}], show_link=False)<jupyter_output><empty_output><jupyter_text>Saving plot as .png directly (prompts for saving file)<jupyter_code>offline.plot({'data': [{'y': [4, 2, 3, 4]}], 
               'layout': {'title': 'Test Plot', 
                          'font': dict(size=16)}},
             image='png')<jupyter_output><empty_output><jupyter_text>2D contour Plot<jupyter_code>x = np.random.randn(2000)
y = np.random.randn(2000)
offline.iplot([go.Histogram2dContour(x=x, y=y, contours=go.Contours(coloring='heatmap')),
       go.Scatter(x=x, y=y, mode='markers', marker=go.Marker(color='white', size=3, opacity=0.3))], show_link=False)<jupyter_output><empty_output><jupyter_text>Topographical 3D Surface Plot<jupyter_code># Read data from a csv online
z_data = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/api_docs/mt_bruno_elevation.csv')

data = [
    go.Surface(
        z=z_data.as_matrix()
    )
]
layout = go.Layout(
    title='Mt Bruno Elevation',
    autosize=False,
    width=700,
    height=500,
    margin=dict(
        l=65,
        r=50,
        b=65,
        t=90
    )
)
fig = go.Figure(data=data, layout=layout)
offline.iplot(fig, filename='elevations-3d-surface',show_link=False)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14710836608646827, 'fraction_numerical': 0.026389668725435148, 'mean_word_length': 4.621451104100946, 'pattern_counts': {'":': 2, '<': 20, '<?xml version=': 0, '>': 21, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '419482', 'license': 'MIT', 'n_tokens_mistral': 699, 'n_tokens_neox': 656, 'n_words': 117, 'path': 'Plotly_Offline.ipynb', 'repo_name': 'OptoManishK/Plotly_getting-started', 'size': '1781'}