1. <i id='M00xt'><tr id='M00xt'><dt id='M00xt'><q id='M00xt'><span id='M00xt'><b id='M00xt'><form id='M00xt'><ins id='M00xt'></ins><ul id='M00xt'></ul><sub id='M00xt'></sub></form><legend id='M00xt'></legend><bdo id='M00xt'><pre id='M00xt'><center id='M00xt'></center></pre></bdo></b><th id='M00xt'></th></span></q></dt></tr></i><div id='M00xt'><tfoot id='M00xt'></tfoot><dl id='M00xt'><fieldset id='M00xt'></fieldset></dl></div>

      <legend id='M00xt'><style id='M00xt'><dir id='M00xt'><q id='M00xt'></q></dir></style></legend>

        <bdo id='M00xt'></bdo><ul id='M00xt'></ul>
      <tfoot id='M00xt'></tfoot>
      1. <small id='M00xt'></small><noframes id='M00xt'>

        Plotly+Python:如何在 3D 中绘制箭头?

        Plotly+Python: How to plot arrows in 3D?(Plotly+Python:如何在 3D 中绘制箭头?)

          • <bdo id='LHW2j'></bdo><ul id='LHW2j'></ul>
          • <legend id='LHW2j'><style id='LHW2j'><dir id='LHW2j'><q id='LHW2j'></q></dir></style></legend>

                <tbody id='LHW2j'></tbody>
            1. <tfoot id='LHW2j'></tfoot>
            2. <small id='LHW2j'></small><noframes id='LHW2j'>

                  <i id='LHW2j'><tr id='LHW2j'><dt id='LHW2j'><q id='LHW2j'><span id='LHW2j'><b id='LHW2j'><form id='LHW2j'><ins id='LHW2j'></ins><ul id='LHW2j'></ul><sub id='LHW2j'></sub></form><legend id='LHW2j'></legend><bdo id='LHW2j'><pre id='LHW2j'><center id='LHW2j'></center></pre></bdo></b><th id='LHW2j'></th></span></q></dt></tr></i><div id='LHW2j'><tfoot id='LHW2j'></tfoot><dl id='LHW2j'><fieldset id='LHW2j'></fieldset></dl></div>

                  本文介绍了Plotly+Python:如何在 3D 中绘制箭头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 Plotly+Python.如何在 3D 中绘制单个矢量(用箭头表示)?

                  I am using Plotly+Python. How can I plot a single vector, as represented by an arrow, in 3D?

                  注释(这本来是一种 hacky 的解决方法)仅是 2D 的,而 Quiver 图也是仅 2D 的.

                  Annotations (which would have been a hacky workaround) are 2D-only, and Quiver plots are also 2D-only.

                  推荐答案

                  我认为你可以在 3D 中使用线和锥的组合.假设你的线从 (x, y, z) 开始,到 (p, q, r) 结束,那么 cone 接受 XYZ 和 UV W.现在你可以设置 X = p, Y= q, Z=r 是中间点圆锥的底部.要使锥体指向与线相同的方向但小于线的长度(例如 10%),您可以设置 U = 0.1*(px)、V = 0.1*(qy)、W = 0.1*(rz).

                  I think you can use a combination of line and cone in 3D. Suppose your line starts from (x, y, z) and ends at (p, q, r), then cone accepts X Y Z and U V W. Now you can set X = p, Y= q, Z=r which is middle point of base of cone. To get cone pointing in same direction as line but less than length of line (say 10%), you can set U = 0.1*(p-x), V = 0.1*(q-y), W = 0.1*(r-z).

                  https://plotly.com/python/cone-plot/

                  这篇关于Plotly+Python:如何在 3D 中绘制箭头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding config modes to Plotly.Py offline - modebar(将配置模式添加到 Plotly.Py 离线 - 模式栏)
                  Plotly: How to style a plotly figure so that it doesn#39;t display gaps for missing dates?(Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙?)
                  python save plotly plot to local file and insert into html(python将绘图保存到本地文件并插入到html中)
                  Plotly: What color cycle does plotly express follow?(情节:情节表达遵循什么颜色循环?)
                  How to save plotly express plot into a html or static image file?(如何将情节表达图保存到 html 或静态图像文件中?)
                  Plotly: How to make a line plot from a pandas dataframe with a long or wide format?(Plotly:如何使用长格式或宽格式的 pandas 数据框制作线图?)
                    <tbody id='0lGxT'></tbody>

                  1. <legend id='0lGxT'><style id='0lGxT'><dir id='0lGxT'><q id='0lGxT'></q></dir></style></legend>
                  2. <i id='0lGxT'><tr id='0lGxT'><dt id='0lGxT'><q id='0lGxT'><span id='0lGxT'><b id='0lGxT'><form id='0lGxT'><ins id='0lGxT'></ins><ul id='0lGxT'></ul><sub id='0lGxT'></sub></form><legend id='0lGxT'></legend><bdo id='0lGxT'><pre id='0lGxT'><center id='0lGxT'></center></pre></bdo></b><th id='0lGxT'></th></span></q></dt></tr></i><div id='0lGxT'><tfoot id='0lGxT'></tfoot><dl id='0lGxT'><fieldset id='0lGxT'></fieldset></dl></div>

                      <tfoot id='0lGxT'></tfoot>

                            <bdo id='0lGxT'></bdo><ul id='0lGxT'></ul>

                          • <small id='0lGxT'></small><noframes id='0lGxT'>