Graphics, Figures & TablesScalling drawing pictures in latex

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dim
Posts: 3
Joined: Thu Aug 26, 2010 1:21 pm

Scalling drawing pictures in latex

Post by dim »

Hello,

I draw pictures using picture and pspicture enviroment. In pictures there is lines, cicles, text and formulas. I need to scale whole picture to adjust in my presentation. I try with \unitlength but this not scale whole image.

Is there a way to scale everything on picture?

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

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Scalling drawing pictures in latex

Post by CrazyHorse »

dim wrote:Hello,

I draw pictures using picture and pspicture enviroment. In pictures there is lines, cicles, text and formulas. I need to scale whole picture to adjust in my presentation. I try with \unitlength but this not scale whole image.

Is there a way to scale everything on picture?
use \psscalebox{<factor>}{....} or
\resizebox{<lenght>}{<height>}{...}% needs graphicx

Herbert
dim
Posts: 3
Joined: Thu Aug 26, 2010 1:21 pm

Re: Scalling drawing pictures in latex

Post by dim »

It's works fine.

Thank you very much.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Scalling drawing pictures in latex

Post by localghost »

Now that the problem is solved, please mark the topic exactly as described in Section 3 of the Board Rules (to be read before posting).

According to Section 4 (Dimensions, coordinates and angles; p. 5ff) of the pstricks manual, you can also set the unit dimension to scale the content of a pspicture environment.

Code: Select all

\psset{unit=0.75cm}

Best regards and welcome to the board
Thorsten
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Scalling drawing pictures in latex

Post by CrazyHorse »

localghost wrote:Now that the problem is solved, please mark the topic exactly as described in Section 3 of the Board Rules (to be read before posting).

According to Section 4 (Dimensions, coordinates and angles; p. 5ff) of the pstricks manual, you can also set the unit dimension to scale the content of a pspicture environment.

Code: Select all

\psset{unit=0.75cm}
This makes only sense, when you want to scale only
graphical elements, because it does not work for
text labels ...

Herbert
Post Reply