
¿Cómo cambiar el eje x con etiquetas en el plano xy? Lo intenté con este código, pero fallé. mueve la línea x pero sus etiquetas correspondientes no están en el lugar correcto.
\documentclass[]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{fullpage,amsmath,tkz-base}
\begin{document}
\begin{tikzpicture}
\tkzInit[xmin=0, ymin=0, xmax=10,ymax=10,xstep=1,ystep=1]
\tkzAxeX[label=,xshift=2cm]
\tkzAxeY[label=]
\end{tikzpicture}
\end{document}
Necesito cambiar las líneas xey con sus etiquetas.
Respuesta1
¿Qué tal eso? "eliminar" los ejes originales y volver a dibujarlos.
\documentclass[]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{fullpage,amsmath,tkz-base}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[myaxis/.style={thin, ->, >=stealth, shorten >=-15pt}]
\tkzInit[xmin=0, ymin=0, xmax=10, ymax=10, xstep=1, ystep=1]
\tkzAxeY[label=,style={very thin,opacity=0}]
\tkzAxeX[label=,xshift=2cm, style={very thin,opacity=0}]
\draw [myaxis] (2,0) -- (12, 0);
\draw [myaxis] (0,0) -- (0,10);
\end{tikzpicture}
\end{document}