pyvista.plotting.charts.ScatterPlot2D.marker_size#

property ScatterPlot2D.marker_size[source]#

Return or set the plot’s marker size.

Examples

Create a 2D scatter plot.

>>> import pyvista
>>> chart = pyvista.Chart2D()
>>> plot = chart.scatter([0, 1, 2, 3, 4], [2, 1, 3, 4, 2])
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/311dfea36405ce6cdc07606a326b69552d6668f1/cd79a/_images/pyvista-plotting-charts-scatterplot2d-marker_size-1_00_00.png

Increase the marker size.

>>> plot.marker_size = 30
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/a173b9611a8b25b704c9f02ff6318796f0938589/2ad7a/_images/pyvista-plotting-charts-scatterplot2d-marker_size-1_01_00.png