Skip to content

Instantly share code, notes, and snippets.

@GenevieveBuckley
Created June 23, 2021 08:15
Show Gist options
  • Save GenevieveBuckley/3528ca9e02e5f77c0809a277bf3b0b4b to your computer and use it in GitHub Desktop.
Save GenevieveBuckley/3528ca9e02e5f77c0809a277bf3b0b4b to your computer and use it in GitHub Desktop.
Simple matplotlib line plot with error bars
import matplotlib.pyplot as plt
%matplotlib inline
plt.errorbar(
[1,2,3],
[1,2,3],
yerr=[.1, .2, .3],
color='blue', marker='o', linestyle='dashed',
)
plt.title("Example")
plt.xlabel("x title")
plt.ylabel("y title")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment