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

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

  1. <legend id='dqsqh'><style id='dqsqh'><dir id='dqsqh'><q id='dqsqh'></q></dir></style></legend>

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

      如何在海运中填划线下面积

      How to fill area under line plot in seaborn(如何在海运中填划线下面积)

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

          <legend id='zWHza'><style id='zWHza'><dir id='zWHza'><q id='zWHza'></q></dir></style></legend>

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

          • <bdo id='zWHza'></bdo><ul id='zWHza'></ul>
                  <tbody id='zWHza'></tbody>
              • 本文介绍了如何在海运中填划线下面积的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我要填充线条图下面的区域,使其看起来如下图所示:

                而不是

                基于以下.csv文件生成:

                01-01-97    1
                01-02-97    2
                01-03-97    3
                     ...
                01-11-17    251
                01-12-17    252
                01-01-18    253
                

                我应该在此代码中更改哪些内容才能生成所需的图形?

                import pandas as pd
                import seaborn as sns
                from matplotlib import pyplot as plt
                
                # load csv
                df=pd.read_csv("test.csv")
                # generate graph
                g = sns.lineplot(x="Date", y="Data", data=df)
                
                plt.show()
                

                推荐答案

                plt.fill_between(df.Date.values, df.Data.values)
                

                这篇关于如何在海运中填划线下面积的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 数据帧进行分组)
                  <i id='UUKLR'><tr id='UUKLR'><dt id='UUKLR'><q id='UUKLR'><span id='UUKLR'><b id='UUKLR'><form id='UUKLR'><ins id='UUKLR'></ins><ul id='UUKLR'></ul><sub id='UUKLR'></sub></form><legend id='UUKLR'></legend><bdo id='UUKLR'><pre id='UUKLR'><center id='UUKLR'></center></pre></bdo></b><th id='UUKLR'></th></span></q></dt></tr></i><div id='UUKLR'><tfoot id='UUKLR'></tfoot><dl id='UUKLR'><fieldset id='UUKLR'></fieldset></dl></div>
                1. <legend id='UUKLR'><style id='UUKLR'><dir id='UUKLR'><q id='UUKLR'></q></dir></style></legend>
                      <tbody id='UUKLR'></tbody>

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

                    <tfoot id='UUKLR'></tfoot>
                          <bdo id='UUKLR'></bdo><ul id='UUKLR'></ul>