Plot numpy array in seaborn 2023-10-21 Python Plotting Programming Numpy Seaborn Pandas Toolbelt Plot a numpy array as a seaborn xy plot. import numpy as np import pandas as pd import seaborn as sns data = np.hstack((x[:,np.newaxis], y[:,np.newaxis])) df = pd.DataFrame(data, columns=["x","y"]) sns.lineplot(df, x="x", y="y")