plotly / plotly/plotly.py

scene aspectmodes "cube" or "manual" do not work with Scatter3D

オープン
#2,511 コメント 6 件 リアクション 6 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

Example from the plotly docs, with aspect mode set to cube.

import plotly.graph_objects as go
import numpy as np

# Helix equation
t = np.linspace(0, 10, 50)
x, y, z = np.cos(t), np.sin(t), t

layout = go.Layout(scene=dict(aspectmode="cube"))

fig = go.Figure(
	data=[go.Scatter3d(x=x, y=y, z=z,mode='markers')],
	layout=layout)
fig.show()

On the x and y axis, one grid unit is length 0.5. On the z axis one grid unit is length 2.
Screen Shot 2020-05-27 at 1 09 15 PM

These should be displayed with equal lengths if the aspect ratio is a cube. Same issue with 'go.Layout(scene=dict(aspectmode="manual", aspectratio=dict(x=1, y=1, z=1)))'

This help post indicates this should work or worked in the past cc @empet
https://community.plotly.com/t/creating-a-3d-scatterplot-with-equal-scale-along-all-axes/15108

Thank you.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、go.Layout(scene=dict(aspectmode="cube")) を使用して提供されている Python の例を実行し、レンダリングされた x、y、z のグリッド単位の長さを比較します。aspectmode="manual" および aspectratio=dict(x=1, y=1, z=1) を使用して同じ確認を行います。両方の設定で Scatter3d シーンの軸の長さが等しく表示されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。