barh

matplotlib.axes.Axes.barh

Axes.fill_between(self, x, y1, y2=0, where=None, interpolate=False, step=None, *, data=None, **kwargs)[source]

グラフの間の領域に色を付ける

Parameters

  • x: x軸のデータ
  • y1: y軸のデータ1
  • y2: y軸のデータ2
  • where
  • interpolate
  • step

y1y2 のグラフの間の領域に色を付けることができます。デフォルトでは y2=0 なので、y2 に引数を指定しなければ x 軸と y1 の間の領域に色が付きます。