Skip to content

Latest commit

 

History

History
executable file
·
67 lines (31 loc) · 1.06 KB

plot_sns_line.rst

File metadata and controls

executable file
·
67 lines (31 loc) · 1.06 KB

Line Plot

Example line plot

image

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)

html