I have a graph that's out of scale, but I want to use it for a class I'm preparing. For me to use it, I'd need just to change the numbers in the axis. I'd like to make every x multiplied by 2. I tried this, but it doesn't work.
\foreach \x in {-6,-3,...,6}
\draw (\x,-6.25) node{2*\x};
The image just appears with "2*x" in the axis. Does anyone know how to operate inside a node?
\foreach[evaluate=\x as \nodeLabel using \x*1.2] \x in {-5,-3,...,5} \draw (\x,-5.5) node{(\nodeLabel)};
And it doesn't give me "6" to start with, it gives me 5.99999999
– Cora Sanroman Aug 16 '21 at 19:43