I have the following Latex code to plot a spider cart. However, I need the Scale increasing by 5, in other words; 0,5,10,... and so on, instead of being increased by 1.



\tkzKiviatDiagram[radial  style/.style={gray!50}, scale=0.2, gap=1, lattice=35]{A,B,C,D,E,F}

\tkzKiviatLine[ ultra thick, color=red,   mark=ball,  ball color=red,mark size=12pt](5,5,5,5,5,5)
\tkzKiviatLine[ ultra thick, color=blue,  mark=ball,  ball color=red,mark size=12pt](10,10,10,10,10,10)   
\tkzKiviatLine[ ultra thick, color=gray,  mark=ball,  ball color=red,mark size=12pt](15,15,15,15,15,15) 
\tkzKiviatLine[ ultra thick, color=green, mark=ball,  ball color=red,mark size=12pt](20,20,20,20,20,20)   
\tkzKiviatLine[ ultra thick, color=yellow,mark=ball,  ball color=red,mark size=12pt](25,25,25,25,25,25)   
\tkzKiviatLine[ ultra thick, color=pink  ,mark=ball,  ball color=red,mark size=12pt](30,30,30,30,30,30)   




The following work



    /kiviatgrad/simplify label/.code={
            \ifdim\pgfmathresult pt>0pt

    \tkzKiviatDiagram[radial style/.style={gray!50}, scale=0.2, gap=1,, lattice=35]{A,B,C,D,E,F}
    \tkzKiviatGrad[simplify label=5](6)  



As @percusse suggests, you should add % at the end of each line. Otherwise there might be extra space in the final result. I do not know particularly which line feed causes the extra space. So the best way is to keep % on all lines.

  • you might need a few % signs though ;) – percusse Mar 11 '17 at 19:35
  • 1
    @percusse at which part? I thought spaces do not harm in tikzpicture! – Symbol 1 Mar 11 '17 at 20:12
  • I might have misjudged it but i think if you check the result on the article class the picture should be shifted to the right a few whitespaces since the code has newlines. independent from the TikZ parser. – percusse Mar 12 '17 at 9:12

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.