Created
June 23, 2021 08:15
-
-
Save GenevieveBuckley/3528ca9e02e5f77c0809a277bf3b0b4b to your computer and use it in GitHub Desktop.
Simple matplotlib line plot with error bars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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