Plotly
suggest changePlotly is a modern platform for plotting and data visualization. Useful for producing a variety of plots, especially for data science, Plotly is available as a library for Python, R, JavaScript, Julia, and MATLAB. It can also be used as a web application with these languages.
Users can install the plotly library and use plotly.offline without an account. The old getting-started page is here. Also, the plots can be made in Jupyter Notebooks as well.
An account with a username and password is required only to save plots and data on the Plotly cloud. Since plotly.py 4, that upload path lives in the separate chart-studio package. The sample below calls plotly.offline.plot, which renders locally.
The old free cloud tier had limited features and a daily cap (this page said 250 plots). The paid tier had the rest of the features, unlimited plot downloads, and more private storage. Current limits were not rechecked. For more details, one can visit the main page here.
For documentation and examples, one can go here
A sample plot from the documentation examples:
import plotly.graph_objs as go
import plotly as ply
# Create random data with numpy
import numpy as np
N = 100
random_x = np.linspace(0, 1, N)
random_y0 = np.random.randn(N)+5
random_y1 = np.random.randn(N)
random_y2 = np.random.randn(N)-5
# Create traces
trace0 = go.Scatter(
x = random_x,
y = random_y0,
mode = 'lines',
name = 'lines'
)
trace1 = go.Scatter(
x = random_x,
y = random_y1,
mode = 'lines+markers',
name = 'lines+markers'
)
trace2 = go.Scatter(
x = random_x,
y = random_y2,
mode = 'markers',
name = 'markers'
)
data = [trace0, trace1, trace2]
ply.offline.plot(data, filename='line-mode')
Plot