6

Does anybody know how to set line-width of plotted data using command data[]{} in the command \tikz \datavisualization?

1

1 Answer 1

4

Slightly modifying an example from section 78.2.3 Styling a Visualizer in the manual:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{datavisualization,datavisualization.formats.functions}
\begin{document}
\tikz \datavisualization
[scientific axes=clean,
visualize as smooth line/.list={sin},
sin={style={red,line width=4pt}} %%% <--- style of lines in sin set defined here
]

data [set=sin, format=function] {
var x : interval[0:3*pi];
func y = sin(\value x r);
};
\end{document}

enter image description here

2
  • It is possible to set width in e.g. points. Like style={thickness=4pt}?
    – Joseph
    Feb 24, 2017 at 16:21
  • @Joseph Same as usual with TikZ: line width=4pt Feb 24, 2017 at 16:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .