I'm trying to rotate a Tikz-UML sequence diagram by 90 degrees, but the lay-out is completely screwed up when I do. At the moment, I use following code:

    \umlobject[no ddots]{Application}
    \umlcreatecall[no ddots, x=4]{Application}{ProfilePageGUI}
    \umlcreatecall[no ddots, x=7]{ProfilePageGUI}{RemoveUserDialog}
    \umlcreatecall[no ddots, x=10]{ProfilePageGUI}{ConfirmUserDeletionDialog}
    \umlobject[no ddots, x=13]{User}
    \begin{umlcall}[op={openProfilePage()}, return=""]{Application}{ProfilePageGUI}

The horizontal (original, without rotation) version looks like this: enter image description here

But, when I rotate it, it looks like this: enter image description here

Is there a different way to rotate this image? I want to do this, because I don't have enough horizontal space for the full diagram.

EDIT: I updated the code to make it compile.

  • Can you give an MWE? – Steven B. Segletes Apr 18 '16 at 17:17
  • @StevenB.Segletes The code in my post, should work. I can give you another diagram that's complete if you want. – Pieter Verschaffelt Apr 18 '16 at 17:31
  • 1
    The code as it is given at the moment is not compilable. @StevenB.Segletes was asking for a minimal working example, which means a fully and without errors compileable code illustrating your problem, starting with \documentclass... and ending with \end{document}. – JMP Apr 18 '16 at 17:35
  • Do I understand correct, that you like to have rotated image that it can be fit in a page? if this is the case, than try to insert image in for example sidewaysfigure environment or encapsulate it in \rotatebox{90}{\begin{tikzpicture} ...\end{tikzpicture}}. – Zarko Apr 18 '16 at 18:07
  • Yes indeed, I want to rotate it to make it fit. I will try your solution! Thank you very much :) – Pieter Verschaffelt Apr 18 '16 at 18:26

As far as I understand, you looking for rotating complete image as such. This you can achieve on the two ways:

  • use \rotatebox{<angle>}{ ... } from package graphicx
  • use sidewaysfigure environmnent from package rotating

I'm sorry, but I can't provide MWE with your code since some used package are not available in my MikTeX repository.

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.