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

  1. <legend id='nfq4W'><style id='nfq4W'><dir id='nfq4W'><q id='nfq4W'></q></dir></style></legend>
  2. <tfoot id='nfq4W'></tfoot>

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

    1. matplotlib 标题中的乳胶和文本

      Latex and text in matplotlib title(matplotlib 标题中的乳胶和文本)
        <tbody id='lmbGy'></tbody>

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

      1. <tfoot id='lmbGy'></tfoot>
        • <bdo id='lmbGy'></bdo><ul id='lmbGy'></ul>

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

                本文介绍了matplotlib 标题中的乳胶和文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在尝试显示带有将普通文本与几个 Latex 命令组合在一起的标题的图像:

                I'm trying to show an image with a title that combines normal text with a couple of Latex commands:

                plt.imshow(w1subtracted2, origin='lower',
                          extent=[l_max, -l_max, -b_max, b_max],
                          cmap = color_map)
                plt.title('W1 disk and central $pm2	extdegree$ subtracted', fontsize = 'small')
                plt.xlabel(xlabel, fontsize = 'small')
                plt.ylabel(ylabel, fontsize = 'small')
                plt.savefig('w1subtracted2.png')
                

                但我无法让标题显示 pm extdegree 以乳胶样式显示.我怎样才能做到这一点?

                but I can't get the title showing the pm and extdegree to show in Latex style. How can I achieve that?

                推荐答案

                看来你使用的不是latex (usetex = True) 而是简单的MathText.MathText 中没有 extdegree.

                It seems you are not using latex (usetex = True) but simple MathText. There is no extdegree in MathText.

                使用

                plt.title(r'W1 disk and central $pm2^circ$ subtracted', fontsize='small')
                

                应该给你

                这篇关于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 数据帧进行分组)
                      <tfoot id='Zl6nu'></tfoot>

                      1. <small id='Zl6nu'></small><noframes id='Zl6nu'>

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

                            <tbody id='Zl6nu'></tbody>

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