Consider this example:

  \draw (0.0, 0.0) rectangle (1.0, 2.0);

How can I have the generated image actually range from (0.0, 0.0) to (4.0, 8.0) (filled with void where there is nothing drawn)?

  • \begin{tikzpicture}[scale=4]? – campa Oct 23 at 10:28
  • @campa the rectangle should remain strictly from (0.0, 0.0) to (1.0, 2.0) – Viesturs Oct 23 at 10:29
  • 3
    Do you mean a border around the rectangle? I'm having troubles in understanding what the question is... – campa Oct 23 at 10:31
  • 1
    What do you mean by "filled with void where there is nothing drawn"? – Alenanno Oct 23 at 10:46
  • @Viesturs Please give an explample wich makes more clear what you want to create. – cis Oct 23 at 11:47
  \draw (0.0, 0.0) rectangle (1.0, 2.0);
  \node [] at (4.0,8.0) {};

The canvas is now the rectangle from (0,0) to (4,8) with just the (0,0) - (1,2) rectangle drew in it.

| improve this answer | |
  • With your suggestion the rectangle will be placed at bottom left side of canvas? I suspect, that OP would like to have rectangle in the middle, but who know what OP like to achieve with this unusual demand ... – Zarko Oct 23 at 10:46
  • OP did not specify more than "image in range from (0,0) to (4,8)" which is not so specific, so I have interpreted the question in its most literal meaning – Á. Iborra Oct 23 at 10:52
  • my question is motivated by a series of tikz images of equal size independent what is drawn on them (like equal sheets of paper). From your answer I get the idea. – Viesturs Oct 23 at 13:14
  • I now checked your answer. It appears that drawing an empty node \node [] at (4.0,8.0) {}; adds a margin to the image. – Viesturs Oct 23 at 16:30
  • 1
    In my humble opinion, people in this community would be able to help you more accurately if you expose your problem including every single detail of your requirement @Viesturs – Á. Iborra Oct 23 at 16:54

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.