summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/pyluatex/example/data-visualization.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-04 03:02:24 +0000
committerNorbert Preining <norbert@preining.info>2023-01-04 03:02:24 +0000
commitb2ede2da5ece936a9be421f2b6fbdb6c65cb225a (patch)
tree52e56df44d458efa71d7de971f576d61dbdb2123 /macros/luatex/latex/pyluatex/example/data-visualization.tex
parent660cf44d2a0aee74bd6e69615fedfc57c966a260 (diff)
CTAN sync 202301040302
Diffstat (limited to 'macros/luatex/latex/pyluatex/example/data-visualization.tex')
-rw-r--r--macros/luatex/latex/pyluatex/example/data-visualization.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/macros/luatex/latex/pyluatex/example/data-visualization.tex b/macros/luatex/latex/pyluatex/example/data-visualization.tex
index 3a2d20a2bd..2d43cb946b 100644
--- a/macros/luatex/latex/pyluatex/example/data-visualization.tex
+++ b/macros/luatex/latex/pyluatex/example/data-visualization.tex
@@ -1,4 +1,4 @@
-%% Copyright 2021-2022 Tobias Enderle
+%% Copyright 2021-2023 Tobias Enderle
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -72,8 +72,8 @@ and \py{df.Time.iloc[-1]}. The red lines mark the current year and population.
xticklabel style={/pgf/number format/1000 sep=},
grid=both,
]
-\addplot[no marks,black,thick] coordinates {%
- \py{pgf_coords(world_data.index, world_data.PopTotal / 1e6)}%
+\addplot[no marks,black,thick] coordinates {
+ \py{pgf_coords(world_data.index, world_data.PopTotal / 1e6)}
};
\draw[red,thick] (axis cs:\py{year},0) |- (axis cs:0,\py{current_pop / 1e6});
\end{axis}
@@ -123,9 +123,9 @@ plots = [
xticklabel style={/pgf/number format/1000 sep=},
grid=both,
]
-\pgfplotsinvokeforeach{0,1}{%
- \addplot[no marks,black,thick] coordinates {%
- \py{pgf_coords(plots[#1][1].index, plots[#1][1])}%
+\pgfplotsinvokeforeach{0,1}{
+ \addplot[no marks,black,thick] coordinates {
+ \py{pgf_coords(plots[#1][1].index, plots[#1][1])}
};
\node[below] at (axis cs:\py{marker_year},\py{plots[#1][1].loc[marker_year]})
{\py{plots[#1][0]}};