# Examples from pyvista.plotting.charts.ScatterPlot2D
# ===================================================

# Plot a simple sine wave as a scatter plot.
import pyvista as pv
import numpy as np
x = np.linspace(0, 2 * np.pi, 20)
y = np.sin(x)
chart = pv.Chart2D()
_ = chart.scatter(x, y)
chart.show()

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

