LinePlot2D.y#
- property LinePlot2D.y[source]#
Retrieve the Y coordinates of the points through which a line is drawn.
Examples#
Download Python source code | Download Jupyter notebook
Create a line plot and display the y coordinates.
>>> import pyvista as pv
>>> chart = pv.Chart2D()
>>> plot = chart.line([0, 1, 2], [2, 1, 3])
>>> plot.y
pyvista_ndarray([2, 1, 3])
>>> chart.show()