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


1 Answer 1


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

\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);

enter image description here

  • It is possible to set width in e.g. points. Like style={thickness=4pt}?
    – Joseph
    Commented Feb 24, 2017 at 16:21
  • @Joseph Same as usual with TikZ: line width=4pt Commented 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 .