Fix error bars in hello_world.py

As the argument names suggest, Plotly Express uses relative values
for error_y and error_y_minus.

Change-Id: Iabfc017eb6f97b4f0329d47f7f8f0851756154a2
diff --git a/Readme.md b/Readme.md
index e299d80..3e57b5e 100644
--- a/Readme.md
+++ b/Readme.md
@@ -65,13 +65,16 @@
 
 kcon = KorAPConnection(verbose=True)
 
-vcs = ["textType=/Zeit.*/ & pubPlaceKey=" + c + " & pubDate in " + str(y) for c in COUNTRIES for y in YEARS]
+vcs = [f"textType=/Zeit.*/ & pubPlaceKey={c} & pubDate in {y}" for c in COUNTRIES for y in YEARS]
 df = KorAPClient.ipm(kcon.frequencyQuery(QUERY, vcs))
+
 df['Year'] = [y for c in COUNTRIES for y in YEARS]
 df['Country'] = [c for c in COUNTRIES for y in YEARS]
+df['error_y'] = df["conf.high"] - df["ipm"]
+df['error_y_minus'] = df["ipm"] - df["conf.low"]
 
 fig = px.line(df, title=QUERY, x="Year", y="ipm", color="Country",
-              error_y="conf.high", error_y_minus="conf.low")
+              error_y="error_y", error_y_minus="error_y_minus")
 fig.show()
 ```
 ![Frequency per million words of “Hello World“ in DE vs. AT from 2010 to 2018 in newspapers and magazines](figures/hello-world.png)
diff --git a/examples/hello_world.py b/examples/hello_world.py
index 6ac91cc..22af0b9 100755
--- a/examples/hello_world.py
+++ b/examples/hello_world.py
@@ -14,7 +14,9 @@
 
 df['Year'] = [y for c in COUNTRIES for y in YEARS]
 df['Country'] = [c for c in COUNTRIES for y in YEARS]
+df['error_y'] = df["conf.high"] - df["ipm"]
+df['error_y_minus'] = df["ipm"] - df["conf.low"]
 
 fig = px.line(df, title=QUERY, x="Year", y="ipm", color="Country",
-              error_y="conf.high", error_y_minus="conf.low")
+              error_y="error_y", error_y_minus="error_y_minus")
 fig.show()