Add detailed balance plot
This commit is contained in:
@@ -153,12 +153,18 @@
|
||||
anchor=near xticklabel,
|
||||
},
|
||||
grid,
|
||||
enlarge x limits=0.03,
|
||||
]
|
||||
% Dummy plot to set x axis labels
|
||||
% Dummy plot to set x axis ticks
|
||||
\addplot[draw=none]
|
||||
table[col sep=comma, x=t, y=value]
|
||||
{net_income.csv};
|
||||
|
||||
% Dummy plot to set x axis scale
|
||||
\addplot[draw=none]
|
||||
table[col sep=comma, x=t, y=value]
|
||||
{detailed_balance.csv};
|
||||
|
||||
\addplot[ybar, color=scol2, fill=scol2, line width=1pt]
|
||||
table[col sep=comma, x=t, y=value, discard if lt={value}{0}]
|
||||
{net_income.csv};
|
||||
@@ -176,20 +182,28 @@
|
||||
date coordinates in=x,
|
||||
width=\textwidth,
|
||||
height=0.375\textwidth,
|
||||
area style,
|
||||
ylabel={Total balance in €},
|
||||
y label style={at={(-0.1,0.5)},anchor=south},
|
||||
xticklabel=\month.\shortyear{\year},
|
||||
xtick=data,
|
||||
enlarge x limits=0.03,
|
||||
xticklabel style={
|
||||
rotate=60,
|
||||
anchor=near xticklabel,
|
||||
},
|
||||
grid,
|
||||
]
|
||||
\addplot+[mark=none, color=scol1, line width=1pt]
|
||||
% Dummy plot to set x axis ticks
|
||||
\addplot[draw=none]
|
||||
table[col sep=comma, x=t, y=value]
|
||||
{total_value.csv} \closedcycle;
|
||||
{total_value.csv};
|
||||
|
||||
\addplot[scol3, mark=none, line width=1pt]
|
||||
table[col sep=comma, x=t, y=value]
|
||||
{detailed_balance.csv};
|
||||
\addplot[scol1, mark=none, line width=1pt]
|
||||
table[col sep=comma, x=t, y=value]
|
||||
{total_value.csv};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{subfigure}
|
||||
@@ -197,5 +211,6 @@
|
||||
\caption{Development of account balance over time}
|
||||
\end{figure}
|
||||
|
||||
|
||||
\end{document}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user