【问题标题】:Fit the scatter plot points within the frame in plotly在 plotly 中拟合框架内的散点图点
【发布时间】:2020-06-12 05:14:15
【问题描述】:

为什么散点图中的气泡在动画过程中会超出框架?如何使气泡适合框架内?

   fig = px.scatter(gm,x = 'gdpPercap',y = 'lifeExp',
    color='continent',
    facet_col_wrap=5,
    facet_col = 'continent',
    size = 'lifeExp',
    animation_frame="year",
    animation_group="continent",
    )
    fig.show()

【问题讨论】:

    标签: plotly


    【解决方案1】:

    我自己想出了一个办法,调整图表右上角的自动缩放选项!!

    【讨论】:

      猜你喜欢
      • 2020-05-15
      • 1970-01-01
      • 2021-11-04
      • 2022-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-04
      相关资源
      最近更新 更多