pyvista.plotting.charts.BarPlot.orientation#

property BarPlot.orientation[ソース]#

このプロットのバーの向きを返すか設定します.

棒グラフを作成します.

>>> import pyvista as pv
>>> chart = pv.Chart2D()
>>> plot = chart.bar([1, 2, 3], [[2, 1, 3], [1, 3, 2]])
>>> chart.show()
../../../../_images/pyvista-plotting-charts-BarPlot-orientation-1_00_00.png

向きを水平に変更します.

>>> plot.orientation = "H"
>>> chart.show()
../../../../_images/pyvista-plotting-charts-BarPlot-orientation-1_01_00.png