Line PlotΒΆ

Example line plot

../_images/sphx_glr_plot_sns_line_001.png
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns

sns.set()

# Initialize a figure and axes object
fig, ax = plt.subplots(figsize=(3,3))

# Data
x = np.linspace(0,100,100)
y = np.linspace(0,100,100)

# Add data a scatter points onto axes
ax.plot(x, y)

# Name axes
ax.set_xlabel('x');
ax.set_ylabel('y');

Total running time of the script: ( 0 minutes 0.049 seconds)

Gallery generated by Sphinx-Gallery