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

  • <tfoot id='Z0tiH'></tfoot>

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

        Plotly/如何更改 Plotly 中的默认调色板?

        时间:2023-09-28
          <bdo id='d2Ngt'></bdo><ul id='d2Ngt'></ul>
            <tbody id='d2Ngt'></tbody>

        • <legend id='d2Ngt'><style id='d2Ngt'><dir id='d2Ngt'><q id='d2Ngt'></q></dir></style></legend>

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

                <tfoot id='d2Ngt'></tfoot>

                • <i id='d2Ngt'><tr id='d2Ngt'><dt id='d2Ngt'><q id='d2Ngt'><span id='d2Ngt'><b id='d2Ngt'><form id='d2Ngt'><ins id='d2Ngt'></ins><ul id='d2Ngt'></ul><sub id='d2Ngt'></sub></form><legend id='d2Ngt'></legend><bdo id='d2Ngt'><pre id='d2Ngt'><center id='d2Ngt'></center></pre></bdo></b><th id='d2Ngt'></th></span></q></dt></tr></i><div id='d2Ngt'><tfoot id='d2Ngt'></tfoot><dl id='d2Ngt'><fieldset id='d2Ngt'></fieldset></dl></div>
                  本文介绍了Plotly/如何更改 Plotly 中的默认调色板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I was able to force the default theme using

                  import plotly.io as pio
                  pio.templates.default = 'plotly_white'
                  

                  But I am struggling to set a default color palette.

                  Any ideas how to change this?

                  Thanks

                  解决方案

                  You can add new items to pio.templates.

                  import plotly.io as pio
                  import plotly.graph_objects as go
                  pio.templates["myname"] = go.layout.Template(
                      layout=go.Layout(
                          colorway=['#ff0000', '#00ff00', '#0000ff']
                      )
                  )
                  pio.templates.default = 'myname'
                  

                  See more here: https://plotly.com/python/templates/#saving-and-distributing-custom-themes

                  EDIT: You can combine themes if you add "+":

                  pio.templates.default = 'plotly_white+myname'
                  

                  这篇关于Plotly/如何更改 Plotly 中的默认调色板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Plotly 域变量解释(多图) 下一篇:plotly 基本示例显示 jupyter 实验室中没有绘图

                  相关文章

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

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

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