• <bdo id='dpV3H'></bdo><ul id='dpV3H'></ul>
    <tfoot id='dpV3H'></tfoot>

      <small id='dpV3H'></small><noframes id='dpV3H'>

    1. <legend id='dpV3H'><style id='dpV3H'><dir id='dpV3H'><q id='dpV3H'></q></dir></style></legend>

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

        带有 x 范围滑块的 Y 轴自动缩放

        Y-axis autoscaling with x-range sliders in plotly(带有 x 范围滑块的 Y 轴自动缩放)

            <bdo id='DzuF7'></bdo><ul id='DzuF7'></ul>

              • <tfoot id='DzuF7'></tfoot>
              • <small id='DzuF7'></small><noframes id='DzuF7'>

                  <tbody id='DzuF7'></tbody>

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

              • <legend id='DzuF7'><style id='DzuF7'><dir id='DzuF7'><q id='DzuF7'></q></dir></style></legend>
                • 本文介绍了带有 x 范围滑块的 Y 轴自动缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Afaik,使用 x 范围滑块时,y 轴无法自动缩放.Y 范围是相对于整个 x 范围的 y 值选择的,并且在放大后不会改变.这对于波动时期的烛台图尤其烦人.当您使用 x-range 滑块放大时,您基本上会得到扁平的烛台,因为它们的波动只覆盖了初始范围的很小一部分.在做了一些研究之后,这里似乎取得了一些进展:https://github.com/plotly/plotly.js/pull/2364.任何人都知道 plotly.py 是否有可行的解决方案?感谢您的宝贵时间.

                  Afaik, y-axis cant be made to auto scale when using x-range sliders. Y range is chosen with respect to the y values of the whole x range and does not change after zooming-in. This is especially annoying with candlestick charts in volatile periods. When you zoom-in using x-range slider, you essentially get flat candlesticks as their fluctuations only cover a very small part of the initial range. After doing some research it seems that some progress has been made here: https://github.com/plotly/plotly.js/pull/2364. Anyone knows if there is a working solution for plotly.py ? Thanks for your time.

                  推荐答案

                  如果有帮助,我在 yaxis 上使用 fixedrange = False,以便能够手动缩放并将窗口调整到合适的 y 范围:

                  If it can help, I am using fixedrange = False on yaxis, to be able to zoom manually and adapt the window to the suited y range:

                  yaxis = dict(
                       fixedrange = False
                  )
                  

                  这篇关于带有 x 范围滑块的 Y 轴自动缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 数据框制作线图?)
                  <i id='azuk0'><tr id='azuk0'><dt id='azuk0'><q id='azuk0'><span id='azuk0'><b id='azuk0'><form id='azuk0'><ins id='azuk0'></ins><ul id='azuk0'></ul><sub id='azuk0'></sub></form><legend id='azuk0'></legend><bdo id='azuk0'><pre id='azuk0'><center id='azuk0'></center></pre></bdo></b><th id='azuk0'></th></span></q></dt></tr></i><div id='azuk0'><tfoot id='azuk0'></tfoot><dl id='azuk0'><fieldset id='azuk0'></fieldset></dl></div>
                • <small id='azuk0'></small><noframes id='azuk0'>

                    <bdo id='azuk0'></bdo><ul id='azuk0'></ul>

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

                          <tfoot id='azuk0'></tfoot>
                            <tbody id='azuk0'></tbody>