helenlee01

使用plotly画三维立体高逼格图,代码传送门:

import plotly.graph_objects as go
import numpy as np
np.random.seed(1)

N = 70

fig = go.Figure(data=[go.Mesh3d(x=(70*np.random.randn(N)),
                   y=(55*np.random.randn(N)),
                   z=(40*np.random.randn(N)),
                   opacity=0.5,
                   color=\'rgba(244,22,100,0.6)\'
                  )])

fig.update_layout(
    scene = dict(
        xaxis = dict(nticks=4, range=[-100,100],),
                     yaxis = dict(nticks=4, range=[-50,100],),
                     zaxis = dict(nticks=4, range=[-100,100],),),
    width=700,
    margin=dict(r=20, l=10, b=10, t=10))

fig.show()

效果图:

 

分类:

技术点:

相关文章:

  • 2021-09-03
  • 2020-04-28
  • 2021-10-09
  • 2021-12-04
  • 2021-11-07
  • 2022-01-18
  • 2021-12-28
  • 2021-12-21
猜你喜欢
  • 2021-12-21
  • 2021-11-07
  • 2021-11-21
  • 2021-10-01
  • 2021-11-09
  • 2021-05-22
相关资源
相似解决方案