From 7e58440b95225ac1921d9ed2659bed33cb78f64e Mon Sep 17 00:00:00 2001 From: Anno Knierim Date: Wed, 18 Sep 2024 11:43:11 +0200 Subject: [PATCH 1/2] Fix comma handling in programming skills, axis extent list -> tuple --- intro/script/answers.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/intro/script/answers.py b/intro/script/answers.py index e0337738..7f51da6b 100644 --- a/intro/script/answers.py +++ b/intro/script/answers.py @@ -15,7 +15,7 @@ def study(answers): study /= study.sum() fig = plt.figure(figsize=(5.0, 3.3), layout="none") - ax = fig.add_axes([0, 0, 1, 1], aspect=1) + ax = fig.add_axes((0, 0, 1, 1), aspect=1) ax.pie( study.values, labels=study.keys(), @@ -35,7 +35,7 @@ def operating_system(answers): os /= os.sum() fig = plt.figure(figsize=(5.5, 3.3), layout="none") - ax = fig.add_axes([0, 0, 1, 1], aspect=1) + ax = fig.add_axes((0, 0, 1, 1), aspect=1) ax.pie( os.values, labels=os.keys(), @@ -51,12 +51,18 @@ def programming(answers): for participant in answers: if participant["toolbox"] is True: liste.append(participant["skill"]) + programming = pd.Series(liste) - programming = programming.str.replace(",", ",\n") + + mask = programming.str.contains("Datenverarbeitungskurs") + programming.loc[mask] = programming.loc[mask].str.replace(",", "\n") + programming.loc[~mask] = programming.loc[~mask].str.replace(",", ",\n") + programming = programming.value_counts() programming /= programming.sum() + fig = plt.figure(figsize=(6.2, 3.3), layout="none") - ax = fig.add_axes([0, 0, 1, 1], aspect=1) + ax = fig.add_axes((0, 0, 1, 1), aspect=1) ax.pie( programming.values, labels=programming.keys(), From 57ddf9a50c7f2ca85a2bc3c67d8d697ef9197f2d Mon Sep 17 00:00:00 2001 From: Anno Knierim Date: Wed, 18 Sep 2024 11:48:49 +0200 Subject: [PATCH 2/2] Fix missing space after LaTeX in terminal cheat sheet --- terminal-cheat-sheet/content/cheat-sheet.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal-cheat-sheet/content/cheat-sheet.tex b/terminal-cheat-sheet/content/cheat-sheet.tex index e472289d..0398e74c 100644 --- a/terminal-cheat-sheet/content/cheat-sheet.tex +++ b/terminal-cheat-sheet/content/cheat-sheet.tex @@ -11,6 +11,6 @@ codium . & öffnet VSCodium im aktuellen Verzeichnis (Linux/Mac)\\ code . & öffnet VSCode im aktuellen Verzeichnis (Windows) \\ python vorlage.py & führt \enquote{vorlage.py} mit python aus \\ - lualatex main.tex & führt \enquote{main.tex} mit \LaTeX aus \\ + lualatex main.tex & führt \enquote{main.tex} mit \LaTeX{} aus \\ \end{tblr} \end{frame}