我如何将情节轴的轴线划分?

发布于 2025-01-28 10:58:13 字数 454 浏览 3 评论 0原文

请参阅链接中的图像以获取参考: 1

即使图很广,图本身就是小的。但是,调整图形大小并不能改善图的大小。

例如,是否有一种方法可以将Xaxis弄脏,可以在整个屏幕上拥有更广阔的散点图?

编辑:这是我使用的代码:

fig = px.scatter_3d(data_scatter, x='x', y='y', z='z',
    color=data_scatter['Status'])
fig.show()

1

See the image in the link for reference: 1

Even though the figure is pretty wide, the plot itself is way to small. Adjusting the figure size however doesn't improve the size of the plot.

Is there a way to strech the xaxis for example, to have a wider scatter plot over the whole screen?

Edit: This is the code I used:

fig = px.scatter_3d(data_scatter, x='x', y='y', z='z',
    color=data_scatter['Status'])
fig.show()

1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌面超妹 2025-02-04 10:58:13

您必须使用纵横比:

fig.update_layout({"scene": {"aspectratio": {"x": 2, "y": 2, "z": 0.75}}})

这是几张图片。第一个不设置纵横比,第二个具有上述代码:

​src =“ https://i.sstatic.net/ooluu.png” alt =“在此处输入图像说明”>

You have to play with the aspect ratio:

fig.update_layout({"scene": {"aspectratio": {"x": 2, "y": 2, "z": 0.75}}})

Here are a couple of pictures. The first without setting aspect ratio, the second with the code above:

enter image description here

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文