我用图谋画了一个数字,例如:import plotly.plotly as py
import plotly.graph_objs as go
trace1 = go.Scatter(
x=[1, 2, 3, 4, 5, 6, 7],
y=[7, 6, 5, 4, 3, 2, 1]
)
trace2 = go.Scatter(
x=[1, 2, 3, 4, 5, 6, 7, 8],
y=[1, 2, 3, 4, 5, 6, 7, 8]
)
data = [trace1, trace2]
layout = dict(xaxis = dict(title = 'T (K)', showgrid=False, ticks='inside'),
yaxis = dict(title = 'normalized intensity', showgrid=False, ticks='inside'),
font=dict(size=18),
)
fig = go.Figure(data=data, layout=layout)
py.iplot(fig, auto_open=True, filename='test_fig.png')
py.image.save_as(fig, filename='test_fig.png')
这个数字看起来像:
我想要一个地块的轮廓如下:
但我无法从plot.ly公司到目前为止。这可能吗?在