Graphics, Figures & TablesHelp with figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
squidgy_wiji
Posts: 8
Joined: Sun Aug 09, 2009 3:29 am

Help with figures

Post by squidgy_wiji »

Hey when I try insert this figure into my latex report file it appears very pixalated. This is my latex input

Code: Select all

\begin{figure}
  \centering
  \includegraphics{Tree}
  \caption{The Probability Structure of Trade}\label{fig:Tree}
\end{figure}
but when I open the jpg file it appears fine. I drew the picture using Word and Paint and saved it as a .jpg. Does anyone know why this is happening? Thanks appreciate any help.
Attachments
Tree.jpg
Tree.jpg (22.57 KiB) Viewed 6195 times

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Help with figures

Post by josephwright »

Please post a full example, including perhaps your log file (so we can see how you compile your document).
Joseph Wright
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Help with figures

Post by localghost »

Scale down the image to three quarters of its original size.

Code: Select all

\begin{figure}[!ht]
  \centering
  \includegraphics[scale=0.75]{Tree}
  \caption{The Probability Structure of Trade}\label{fig:Tree}
\end{figure}
The reason for that is the relation between the measure used for the JPG files (pixel, px) and the measure used in (La)TeX documents (big point, bp).

If you need this in the future, you can use a website to calculate the values [1]. The website offers many more conversion options.

For this kind of graphics you may use powerful packages like pgf/tikZ or PSTricks in the future.

[1] UnitConversion.org - PostScript Point Conversion


Best regards
Thorsten
squidgy_wiji
Posts: 8
Joined: Sun Aug 09, 2009 3:29 am

Re: Help with figures

Post by squidgy_wiji »

Thanks for that localghost. Do you know if it is difficult to actually draw tree diagram on latex? I did a quick google search and all the tree diagrams were vertical ones. I couldn't find out how to do a horizontal one like the one I have drawn. Thats why I just drew it using word and Paint.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Help with figures

Post by localghost »

I already suggested suitable packages in my last reply. Please refer to the according manuals. For some inspiration you may look at the example galleries [1]. I'm sure you will find some usable stuff.

[1] TikZ and PGF examples
[2] /PSTricks/examples
User avatar
Stefan Kottwitz
Site Admin
Posts: 10341
Joined: Mon Mar 10, 2008 9:44 pm

Help with figures

Post by Stefan Kottwitz »

squidgy_wiji wrote:I couldn't find out how to do a horizontal one like the one I have drawn.
Have a look at this TikZ-made horizontal tree example. It's from the site mentioned by Thorsten.

Stefan
LaTeX.org admin
squidgy_wiji
Posts: 8
Joined: Sun Aug 09, 2009 3:29 am

Re: Help with figures

Post by squidgy_wiji »

Thanks for that guys. Sorry about the questions i;m a bit of latex noob. Thanks again and have a good weekend:)
Post Reply