• <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 中的默认调色板?

        Plotly / How to change the default color pallete in Plotly?(Plotly/如何更改 Plotly 中的默认调色板?)
          <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 中的默认调色板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 数据框制作线图?)

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

                        <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'>