import plotly.express as px # 创建一个示例图表 df = px.data.iris() fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species") # 将图表保存为html文件 fig.write_html("scatter_plot.html") # 将图表保存为png图像文件 fi
%python data = {'data': [{'y': [4, 2, 3, 4]}], 'layout': {'title': 'Test Plot', 'font': dict(size=16)}} p = plot(data,output_type='div') displayHTML(p) Save the generated plot to a file with plotly.io.write_image(): %sh plotly.io.write_image(fig=data,file="/...
%python data = {'data': [{'y': [4, 2, 3, 4]}], 'layout': {'title': 'Test Plot', 'font': dict(size=16)}} p = plot(data,output_type='div') displayHTML(p) Save the generated plot to a file with plotly.io.write_image(): %sh plotly.io.write_image(fig=data,file="/...
import plotly import plotly.graph_objs as go data = [go.Bar(x=['Apples', 'Pears', 'Nectarines', 'Plums', 'Grapes', 'Strawberries'], y=[5, 3, 4, 2, 4, 6])] html_file = 'plotly-fruit-plot.html' fname = 'plotly-fruit-plot' plotly.offline.plot(data, filename=html_file, ...
A node library to display charts in popup windows and save them as pngs. Supports observablehq/plot, vega-lite and plotly out of the box. - mhkeller/plot
plotly-express: 0.4.1 plotnine: 0.10.1 pluggy: 1.0.0 pointpats: 2.3.0 polars: 0.18.6 polyglot: 16.7.4 pooch: 1.6.0 pox: 0.3.2 ppca: 0.0.4 ppft: 1.7.6.6 preprocessing: 0.1.13 preshed: 3.0.8 prettytable: 3.8.0 progressbar2: 4.2.0 prometheus-client: 0.17.0 promise: 2.3 prompt-...