pyvista.plotting.charts.LinePlot2D.x#

property LinePlot2D.x[source]#

Retrieve the X coordinates of the points through which a line is drawn.

Examples

Create a line plot and display the x coordinates.

>>> import pyvista
>>> chart = pyvista.Chart2D()
>>> plot = chart.line([0, 1, 2], [2, 1, 3])
>>> plot.x
pyvista_ndarray([0, 1, 2])
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/f46aa1528fc88fbfbde123eb6aa648cfb8c52a8b/aa733/_images/pyvista-plotting-charts-lineplot2d-x-1_00_00.png