#StackBounty: #tikz-datavisualization TikZ datavisualization: Is it possible to change fontsize globally?

Bounty: 100

Here my MWE:

documentclass{scrartcl}
usepackage{tikz}
usetikzlibrary{datavisualization.formats.functions}

begin{document}

Text
begin{figure}
  centering
  begin{tikzpicture}
    datavisualization[
                       scientific axes = clean,
                       x axis = {
                                 label = {$varepsilon$, einheitenlos}
                                },
                       y axis = {
                                 label = {$epsilon$, in V}
                                },
                       visualize as smooth line = func,
                       func = {
                               label in legend = {text = $epsilon(varepsilon)$}
                              }
                      ]
    data[format = function] {
                             var x : interval[0 : .9];
                             func y = 1 / (1 - value x) ^ 2;
                            };
    end{tikzpicture}
  end{figure}

end{document}

And the result:

result

Can one have the default fontsize of the documentclass (11pt in case of scrartcl, see the KOMA-Script manual on page 59) for both the figure (tics labels, legend and axis labels) and document text. The best solution for me would be to set up it with TikZ datavisualization options in the document preamble, but I didn’t found anything about it in the TikZ manual. So is it possible? If not, than other solutions are welcome too.

Thank you for your help and effort in advance!


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.