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

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

      3. 在海运显示图/直方图函数中绘制适合直方图的高斯曲线(而不是DISPLOT)

        Plotting a gaussian fit to histgram in seaborn displot/histplot function (NOT distplot)(在海运显示图/直方图函数中绘制适合直方图的高斯曲线(而不是DISPLOT))
        • <bdo id='nE2YN'></bdo><ul id='nE2YN'></ul>

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

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

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

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

                • 本文介绍了在海运显示图/直方图函数中绘制适合直方图的高斯曲线(而不是DISPLOT)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我决定尝试一下海运版本0.11.0!按照我的理解,玩弄dislot函数将取代dislot。我只是想弄清楚如何将高斯拟合绘制到直方图上。以下是一些示例代码。

                  import seaborn as sns
                  import numpy as np
                  x = np.random.normal(size=500) * 0.1
                  

                  使用dislot我可以执行以下操作:

                  sns.distplot(x, kde=False, fit=norm)
                  

                  但是如何在Disploy或Organization Plot中进行呢?

                  推荐答案

                  抱歉,我参加聚会迟到了。只需检查这是否符合您的要求。

                  import numpy as np
                  import matplotlib.pyplot as plt
                  from scipy.stats import norm
                  
                  data = np.random.normal(size=500) * 0.1
                  mu, std = norm.fit(data)
                  
                  # Plot the histogram.
                  plt.hist(data, bins=25, density=True, alpha=0.6, color='g')
                  
                  # Plot the PDF.
                  xmin, xmax = plt.xlim()
                  x = np.linspace(xmin, xmax, 100)
                  p = norm.pdf(x, mu, std)
                  plt.plot(x, p, 'k', linewidth=2)
                  plt.show()
                  

                  这篇关于在海运显示图/直方图函数中绘制适合直方图的高斯曲线(而不是DISPLOT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='TEuxr'></tfoot>
                      <tbody id='TEuxr'></tbody>

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

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