ChartBox.loc

Contents

ChartBox.loc#

property ChartBox.loc[source]#

Return or set the chart position in normalized coordinates.

This denotes the location of the chart’s bottom left corner.

Examples

Create a half-sized boxplot chart centered in the middle of the renderer.

>>> import pyvista as pv
>>> chart = pv.ChartBox([[0, 1, 1, 2, 3, 3, 4]])
>>> chart.size = (0.5, 0.5)
>>> chart.loc = (0.25, 0.25)
>>> chart.show()
../../../../_images/pyvista-ChartBox-loc-64e64ac31fe32e14_00_00.png