GeneralFigure Scales

General information and discussion about TeXnicCenter
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

I hope this is the attachment you need
Attachments
buthesis.cls
(8.25 KiB) Downloaded 376 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

Yes, that's the one (I don't know why I confused sty and cls -- must be the heat).

However, I don't see any problems when I compile your code (with a replaced image). Every figure has the same height and width... (see attachment)
Attachments
test.pdf
(29.86 KiB) Downloaded 319 times
test.tex
(744 Bytes) Downloaded 350 times
site moderator & package author
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

Sorry I am unable to find it. Thanks for the help anyway.
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

Do you know any website I can find a solution?
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Figure Scales

Post by rainz »

Does the below code work ok when you compile too?

Code: Select all

begin{table}[ht]
        \centering
                \begin{tabular}{l|l|l}
                \hline
Variable & VIF & 1/VIF \\ \hline
CI & 1.42 & 0.705277\\ 
GM & 1.30 & 0.767683 \\ 
ln(PV) & 1.17 & 0.855562\\ \hline
\textbf{Mean VIF }& \textbf{1.30}\\
\hline
\end{tabular}
\caption{Test for multicollinearity for model 4}
\label{mullcon 4}
\end{table}
\\
\begin{figure}
\centering
\scalebox{0.40}
        {\includegraphics{C:/histogram of residuals for model 4.png}}
\caption{Histogram of residuals for model 4}
\label{fig:histogram of residuals for model 4}
\end{figure}
\\
\begin{table}[ht]
        \centering
                \begin{tabular}{l|l|l|l|l|l}
                \hline
Variable & Obs & W & V & z & Prob $>$ z \\ \hline
Residuals & 126 & 0.99308 & 0.694 & -0.821 & 0.79409\\
\hline
\end{tabular}
\caption{Shapiro-Wilk W test for normal data for model 4}
\label{SW 4}
\end{table}
\\
\begin{figure}
\scalebox{0.40}
        {\includegraphics{C:/rvfplot for model 4.png}}
\caption{Residuals against fitted values for model 4}
\label{fig:Residuals against fitted values for model 4}
\end{figure}
\\
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Figure Scales

Post by Stefan Kottwitz »

You are at the right website. ;-)

I'm sure, the problem can be solved, if the information would be sufficient. For example, if you would post a small example with two such images as attachments which shows the effect when compiled. Having a test case leads usually to a solution.

Without further information, I just think you could use a fixed value for all pictures, such as

Code: Select all

\includegraphics[width=8cm]{name}
Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figure Scales

Post by cgnieder »

On every other site they're going to ask you the same questions as I did. What you could do (and as I have suggested two times before) is attaching your images. They seem to be the source (provided your MWE still shows the undesired behaviour).

If I insert the code into the MWE, remove all the \\ (they're unnecessary and even raise errors) and replace the images with dummy ones,, then yes.

Regards
site moderator & package author
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Figure Scales

Post by Stefan Kottwitz »

rainz wrote:

Code: Select all

\scalebox{0.40}
        {\includegraphics{C:/histogram of residuals for model 4.png}}
Spaces in file names can be a problem. If the image won't be displayed, load grffile or rename it.

Instead of \scalebox, you could use \resizebox to get a fixed width or height.

Stefan
LaTeX.org admin
rainz
Posts: 25
Joined: Sun Apr 22, 2012 1:21 pm

Re: Figure Scales

Post by rainz »

2 images are attached they have the same dormat as I previously mentioned but different sizes. Also, the name of the file is displayed near the image. How can I remove that?

Thanks guys for helping. Sorry for any trouble you have been through.
Attachments
image 2.jpg
image 2.jpg (37.54 KiB) Viewed 5853 times
image 1.jpg
image 1.jpg (13.21 KiB) Viewed 5853 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Figure Scales

Post by Stefan Kottwitz »

rainz wrote:the name of the file is displayed near the image. How can I remove that?
That's because of the spaces in the file name. As I suggested before, load grffile or rename it.

Stefan
LaTeX.org admin
Post Reply