2017-05-02 11 views
-2

Rのドキュメントから次の図のようなボックスで軸名を変更するにはどうすればいいですか?ボックスの軸名をプロットpython

enter image description here

シンプルな名前の変更は動作しません:

enter image description here

+0

Welcome to Stackoverflow!検証可能な最小限の例(https://stackoverflow.com/help/mcve)とこれまでに試したことを追加できますか? –

+0

解決済み、ここで必要だったコードhttps://plot.ly/python/2d-projection-of-3d-surface/ – klissan

答えて

0

ドキュメント:あなたは文字列のリストを定義することができhttps://plot.ly/python/2d-projection-of-3d-surface/ 、あなたの表面上の各点に1つのアイテムどこの各項目listは、ホバリング時に表示したいテキスト(文字列 "
"を含む)の文字列で、text = your_listとhoverinfo = "text"を設定します。

textz=[['x: '+'{:0.5f}'.format(x[i][j])+'<br>y: '+'{:0.5f}'.format(y[i][j])+ 
    '<br>z: '+'{:0.5f}'.format(z[i][j]) for j in range(z.shape[1])] for i in range(z.shape[0])] 

trace1= Surface(z=z, 
      x=x, 
      y=y, 
      colorscale=colorscale, 
      text=textz, 
      hoverinfo='text', 
      ) 
+0

python scatter:http://stackoverflow.com/questions/35467316/rename-axes-in -plotly-3d-hover-text jsサーフェス:http://codepen.io/etpinard/pen/RGJpoO – klissan

関連する問題