• <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 页上的多个情节情节,没有子情节

        时间:2023-09-28

            <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 页上的多个情节情节,没有子情节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Plotly:如何仅将垂直和水平线(十字准线)显示为 hoverinfo? 下一篇:Plotly 域变量解释(多图)

                  相关文章

                • <tfoot id='JDd1j'></tfoot>
                  <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>