I would like to "bend" a part of a tikzpicture, so that say the y axis is positioned at 45 degree.

I wonder if I can use the scope environment, someting like

\begin{scope}[yscale={(1,1)}] bla bla bla \end{scope}

(by the way, the above does not work.)

  • 1
    Do you want to simply rotate it? – user36296 Jan 2 '18 at 11:29
  • not just rotate, I woul like to have the picture in a "diagonal" shape, with the x axis horizontal and the y axis at 45 degree. As a Pisa tower... – user126154 Jan 2 '18 at 11:31
  • 1
    Are you looking for yslant as for example in tex.stackexchange.com/questions/12689/… ? – user36296 Jan 2 '18 at 11:37
  • yes, (so "slant" is the right word!) – user126154 Jan 2 '18 at 11:41
  • maybe I should remove the question? – user126154 Jan 2 '18 at 11:41

The right word is SLANT.

In the answer to that question [Visualize connection between two slanted TikZ scopes ] a good example of how to use it.

I succesfully used

\begin{scope}[yslant=.5] bla bla bla \end{scope}

applied to a single node

\node[style={yslant=.5}] at (0,0) {bla ba bla};

or with scope, applied to all nodes

\begin{scope}[yslant=.5, every node/.append style={yslant=.5}] 
bla bla bla \end{scope}

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.