Graphics, Figures & Tablesscaling in tikz

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

scaling in tikz

Post by kent »

The use of scaling in the tikzpicture environment, one question:
Given two points A and B which has the |AB| = n (the length of the line between A and B) before scaling (i.e. scale=1), then I thought that with scale = 0.5, we should have that |AB| = n/2. But, I have generated picturers where this seem not to be the case. Any comments?

Kent Holing
NORWAY

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10329
Joined: Mon Mar 10, 2008 9:44 pm

scaling in tikz

Post by Stefan Kottwitz »

Hi Kent!

Can you show us an example, where it is not the case, so we can check that?

By the way, for proper and complete scaling you may have to add another option: [..., scale=0.5, transform shape].

Stefan
LaTeX.org admin
kent
Posts: 57
Joined: Thu Oct 20, 2016 3:41 pm

scaling in tikz

Post by kent »

The option transform shape created some surprising results. (At least for me.)
However, after looking into the matter more closely, I realized that the problem is not PGF/Tikz, but rather the \includegraphics options used.
Kent
Post Reply