タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

Pythonとpythonとpcolorに関するU1and0のブックマーク (2)

  • Remove border from matplotlib pcolor

    How can I remove the white border round the top and right of this plot? this is the code I'm using to plot my pandas DataFrame: plt.pcolor(diff,clip_on=False) # diff is a DataFrame plt.yticks(np.arange(0.5, len(diff.index), 1), diff.index) plt.xticks(np.arange(0.5, len(diff.columns), 1), diff.columns, rotation=90) plt.colorbar()

    Remove border from matplotlib pcolor
    U1and0
    U1and0 2016/12/09
    pcolor 余白  plt.ylim(0, len(diff.index)) plt.xlim(0, len(diff.columns)) but if you save the return value from pcolor then you can also set the limits. h = plt.pcolor(diff,clip_on=False) # diff is a DataFrame h.axes.set_ylim(0, len(diff.index))
  • Difference between pcolor and contourf

    contourf uses isolines and has uniform colors in between the iso lines. pcolor doesn't do that at all. pcolor, in my opinion is deceptive because it throws away the last row and column and shows you an array (rows-1) by (columns-1). I see virtually no advantage of pcolor over image() or imshow().

    Difference between pcolor and contourf
    U1and0
    U1and0 2016/11/15
    contourf uses isolines and has uniform colors in between the iso lines. pcolor doesn't do that at all. pcolor, in my opinion is deceptive because it throws away the last row and column and shows you an array (rows-1) by (columns-1). I see virtually no advantage of pcolor over image() or imshow().
  • 1