seaborn

    1熱度

    1回答

    語境: 該雜誌我要提交我的論文只接受.tiff(不LaTeX的工作),.jpg(不適合圖表),以及.eps(其沒有按除非我對圖像進行光柵化處理,否則會導致巨大的文件大小)。我的許多地塊使用seaborn的regplot,繪製了透明置信區間。是否可以繪製不透明的配置項而不必手動完成所有圖形的重新配置(例如在背景中用虛線或純色)? 例子: import numpy as np import matp

    1熱度

    1回答

    有沒有方法在Seaborn或Matplotlib中指定熱圖顏色比例的顏色增量。例如,對於包含0-1之間的歸一化值的數據幀,要指定100,離散的顏色增量,以便將每個值與其他值區分開來? 預先感謝您

    0熱度

    1回答

    我遵循here的設置使matplotlib/seaborn可用於在Zeppelin中顯示。然而,用下面的代碼: %python import seaborn as sns import matplotlib import numpy as np matplotlib.use('Agg') import matplotlib.pyplot as plt plt.rcdefaults(

    -2熱度

    1回答

    我使用Spyder 3.1.2, Python 3.6.0 (Annaconda) 當我運行的代碼 - 所有這些圖形的顯示在同一個情節? 數據是數據表 import seaborn as sns #============================================================================== # Co-orelation text

    1熱度

    1回答

    鑑於下面的例子: A = [0, 1, 2] B = [3, 4, 5] C = [6, 7, 8, 9] df = pd.DataFrame(data = {'D': np.random.randn(3*3*4)}, index = pd.MultiIndex.from_product([A, B, C], names=['A', 'B', 'C'])) df.re

    2熱度

    1回答

    爲什麼seaborn圖表顏色與調色板指定的顏色不同? 以下兩個圖表顯示了它們在條形圖上顯示時的顏色與它們在調色板圖中出現的顏色之間的差異。你可以看看你是否仔細觀察,條形圖上的顏色稍微不明亮/飽和。 爲什麼這些不同,我怎樣才能讓條形圖具有與調色板中指定的完全相同的顏色? import seaborn as sns sns.set(style="white") titanic = sns.load

    0熱度

    1回答

    我有一個數據框,其中包含'A','B','C','D'列值......這只是一些種類的分組。我想生成列值與其計數的直方圖。 import seaborn as sns sns.distplot(dfGroupingWithoutNan['patient_group']) 這產生了一個錯誤: TypeError: unsupported operand type(s) for /: 'str'

    6熱度

    1回答

    我有一個數據幀看起來像這樣regplot: date score 2017-06-04 90 2017-06-03 80 2017-06-02 70 當我嘗試這樣做: sns.regplot(x=date, y=score, data=df) 我得到了一個錯誤: TypeError: reduction operation 'mean' not allowed for this

    -3熱度

    2回答

    sns.pairplot(iris, hue='class', palette='husl',kind='reg') plt.show() 這是我用來生成劇情的代碼(下圖)。 這裏還有一張我希望如何看的照片。 這是現在的樣子: 這是我希望它看起來:

    1熱度

    2回答

    我有上(年,月)多索引爲這裏看到的時間序列數據: print(df.index) print(df) MultiIndex(levels=[[2016, 2017], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]], labels=[[0, 0, 0, 0, 0, 0, 0, 0], [2, 3, 4, 5, 6, 7, 8, 9]],