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

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

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

    1. 删除matplotlib中乳胶下标中的斜体

      remove italics in latex subscript in matplotlib(删除matplotlib中乳胶下标中的斜体)
      1. <tfoot id='RW3fv'></tfoot>

        <legend id='RW3fv'><style id='RW3fv'><dir id='RW3fv'><q id='RW3fv'></q></dir></style></legend>
        • <bdo id='RW3fv'></bdo><ul id='RW3fv'></ul>

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

            <tbody id='RW3fv'></tbody>

              • <i id='RW3fv'><tr id='RW3fv'><dt id='RW3fv'><q id='RW3fv'><span id='RW3fv'><b id='RW3fv'><form id='RW3fv'><ins id='RW3fv'></ins><ul id='RW3fv'></ul><sub id='RW3fv'></sub></form><legend id='RW3fv'></legend><bdo id='RW3fv'><pre id='RW3fv'><center id='RW3fv'></center></pre></bdo></b><th id='RW3fv'></th></span></q></dt></tr></i><div id='RW3fv'><tfoot id='RW3fv'></tfoot><dl id='RW3fv'><fieldset id='RW3fv'></fieldset></dl></div>
                本文介绍了删除matplotlib中乳胶下标中的斜体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想删除在标签中使用下标时出现的斜体字体.例如,x 标签中的Teff"以斜体显示eff".我希望乳胶不要以这种方式渲染它.通常,在乳胶中,这可以通过 m{} 命令来实现.但是,这在 matplotlib 中不起作用.请帮忙.

                I would like to remove the italics font that appears when I use subscripts in labels. For example, the "Teff" in the x-label has "eff" in italics. I would like latex not render it in such a way. Generally, in latex this can be achieved with the m{} command. However, that does not work in matplotlib. Please help.

                import numpy as np
                import matplotlib.pyplot as plt
                
                x = np.arange(10)
                y = x
                
                plt.plot(x,y,'ro')
                plt.xlabel('Primary T$_{eff}$')
                

                推荐答案

                这个问题我遇到过很多次了,用这个技巧就可以解决

                I have encountered this problem many times and it can be solved with this trick

                plt.xlabel(r'Primary T$_{
                m eff}$')
                

                这篇关于删除matplotlib中乳胶下标中的斜体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)
                • <legend id='1siCX'><style id='1siCX'><dir id='1siCX'><q id='1siCX'></q></dir></style></legend>
                    <bdo id='1siCX'></bdo><ul id='1siCX'></ul>

                  • <tfoot id='1siCX'></tfoot>

                        <tbody id='1siCX'></tbody>

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