6

How do I make the tick labels bold? Here's a minimal example:

\documentclass[tikz,convert]{standalone}
\usetikzlibrary{datavisualization}
\begin{document}
\begin{tikzpicture}
  \datavisualization[scientific axes, 
                     x axis = {attribute=x,label,length=8.4cm},
                     y axis = {attribute = y, label},
                     visualize as scatter,
                     all axes = grid]
  data{x,y
    0, 3.655
    2.40, 13.64
    4 , 23.58
    5, 44};
\end{tikzpicture}
\end{document}

enter image description here

8

It looks like this is a not-so-much polished area of the CVS version but here is one possiblity. I also noticed that some node style options are not passed properly so keep in mind that it is still in a work-in-progress status.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{datavisualization}

\begin{document}
\begin{tikzpicture}
  \datavisualization[scientific axes,
                     all axes={grid,
                     ticks={tick typesetter/.code={%
                                   \pgfmathparse{####1}%
                                   $\mathbf{\pgfmathprintnumber{\pgfmathresult}}$%
                                   }
                            }
                     },
                     x axis = {attribute=x,label,length=4cm},
                     y axis = {attribute = y, label},
                     visualize as scatter
                     ]
  data{x,y
    0, 3.655
    2.40, 13.64
    4 , 23.58
    5, 44};
\end{tikzpicture}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.