Last active
May 22, 2018 17:04
-
-
Save talesa/45426dc564d751f40f47ddab5d26f1e8 to your computer and use it in GitHub Desktop.
Plot with vertical uncertainties using Seaborn
This file contains hidden or 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 seaborn as sns | |
import pandas as pd | |
data = pd.DataFrame(columns=["tolerance", "baseline", "run_no", "value"]) | |
for baseline_true, table in zip([True, False], [baseline, no_baseline]): | |
for tol, row in zip(x, table): | |
for run_no, val in zip(range(len(row)), row): | |
data.loc[len(data)] = [tol, baseline_true, run_no, val] | |
sns.tsplot(data=data, time="tolerance", unit="run_no", condition="baseline", value="value") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment