• <small id='oeDmf'></small><noframes id='oeDmf'>

    <tfoot id='oeDmf'></tfoot>

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

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

          <bdo id='oeDmf'></bdo><ul id='oeDmf'></ul>
      1. 1 页上的多个情节情节,没有子情节

        Multiple plotly plots on 1 page without subplot(1 页上的多个情节情节,没有子情节)

            <tbody id='7tvYQ'></tbody>
          <i id='7tvYQ'><tr id='7tvYQ'><dt id='7tvYQ'><q id='7tvYQ'><span id='7tvYQ'><b id='7tvYQ'><form id='7tvYQ'><ins id='7tvYQ'></ins><ul id='7tvYQ'></ul><sub id='7tvYQ'></sub></form><legend id='7tvYQ'></legend><bdo id='7tvYQ'><pre id='7tvYQ'><center id='7tvYQ'></center></pre></bdo></b><th id='7tvYQ'></th></span></q></dt></tr></i><div id='7tvYQ'><tfoot id='7tvYQ'></tfoot><dl id='7tvYQ'><fieldset id='7tvYQ'></fieldset></dl></div>
          • <small id='7tvYQ'></small><noframes id='7tvYQ'>

              1. <tfoot id='7tvYQ'></tfoot>
                <legend id='7tvYQ'><style id='7tvYQ'><dir id='7tvYQ'><q id='7tvYQ'></q></dir></style></legend>

                • <bdo id='7tvYQ'></bdo><ul id='7tvYQ'></ul>
                  本文介绍了1 页上的多个情节情节,没有子情节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I want to have multiple plotly plots on 1 html page without using the tools.make_subplots method. (I dont want to use that since I find that its not easy to read and I want a unique legend & layout in each of the subplot panels).

                  I want to define 2 figures with their own unique layouts, and arrange them arbitrarily on the page. I think I know how to do this with dash using the html.Div object, but I was wondering if there was an easy way to do this using only plotly?

                  解决方案

                  So, in conclusion, I have not found a way to do this purely with plotly. Below is my code for doing this with Dash, which has been working quite well:

                  Step 1: make a few plotly plots

                  import plotly.offline as pyo
                  import plotly.graph_objs as go
                  import plotly as py
                  fig1 = go.Scatter(y=[1,2,3])
                  fig2 = go.Scatter(y=[3,2,1])
                  plots = [fig1, fig2]
                  

                  Step 2: Make dash Div objects:

                  app = dash.Dash()
                  layout = html.Div(
                          [html.Div(plots[i]) for i in range(len(plots))],
                          style = {'margin-right': '0px'}
                      )
                  

                  Step 3: Run dash

                  app.layout = layout
                  app.run_server(port=8052)
                  

                  这篇关于1 页上的多个情节情节,没有子情节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

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

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

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

                        • <bdo id='JDd1j'></bdo><ul id='JDd1j'></ul>