Skip to content

Instantly share code, notes, and snippets.

@talesa
Last active May 22, 2018 17:04
Show Gist options
  • Save talesa/45426dc564d751f40f47ddab5d26f1e8 to your computer and use it in GitHub Desktop.
Save talesa/45426dc564d751f40f47ddab5d26f1e8 to your computer and use it in GitHub Desktop.
Plot with vertical uncertainties using Seaborn
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