Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grafical problem - need advice!!!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
c707176
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 215

PostPosted: Thu Apr 10, 2008 2:42 pm    Post subject: Grafical problem - need advice!!! Reply with quote

Hi,

I have problem related to figures:
I have 4 figures (all avvailable as either eps or pdf) and I want to combine those figures into a single figure and into one file (lets say a pdf).
They should be aligned in the following way

a | b
c | d

with a, b, c, d the 4 initial figures. So, each two figures side by side and then above each other.
Does anybody know a tool which can do this? Any hints and suggestions for me?

Cheers.
Back to top
View user's profile Send private message
pathfinder
l33t
l33t


Joined: 19 Jan 2006
Posts: 731
Location: Barcelona, Spain

PostPosted: Thu Apr 10, 2008 3:01 pm    Post subject: Reply with quote

well, latex coud do it.
\begin{minipage}
\end{minipage}


example:
\begin{figure}[h]
\begin{minipage}{7.7cm}
\includegraphics[width=7.5cm]{./pathtoyourfigure/figure1}
\end{minipage}
\begin{minipage}{7.9cm}
\includegraphics[width=7.9cm]{./same/figure2}
\end{minipage}
\caption{YOUR TITLE} \label{fig:errordlg}
\end{figure}

there is also another tool, I don t remember its name, but it is great for various pics...
Back to top
View user's profile Send private message
pathfinder
l33t
l33t


Joined: 19 Jan 2006
Posts: 731
Location: Barcelona, Spain

PostPosted: Thu Apr 10, 2008 3:05 pm    Post subject: Reply with quote

Quote:
\begin{figure}[h]
\centering
\subfigure[Temperature distribution in a diffusion case.]{
\label{contourJUSTDIFF}
\includegraphics[width=.4\textwidth]{figs/contourJUSTDIFF.eps}}
\subfigure[Temperature profile along the diagonal.]{
\label{cutJUSTDIFF}
\includegraphics[width=.4\textwidth]{figs/cutJUSTDIFF.eps}}
\caption{Temperature distribution and temperature profile along the diagonal of the domain. Isotropic diffusion. Quadrilateral mesh.}
\label{justDIFFcase}
\end{figure}


Quote:

\begin{figure}[h]
\centering
\subfigure[Temperature Distribution. Pe = 1/4.]{
\label{PECLETcontoursA}
\includegraphics[width=.4\textwidth]{figs/contourPe1QUART.eps}}
\subfigure[Temperature Distribution. Pe = 1/2.]{
% % \label{fig:er2858}
\includegraphics[width=.4\textwidth]{figs/contourPe1DEMI.eps}}\\
\subfigure[Temperature Distribution. Pe = 1.]{
% \label{fig:cminusscalar2858}
\includegraphics[width=.4\textwidth]{figs/contourPe1.eps}}
\subfigure[Temperature Distribution. Pe = 3.]{
% \label{fig:2glue2858}
\includegraphics[width=.4\textwidth]{figs/contourPe3.eps}}
\caption{Temperature Distributions for different Peclet numbers. $Pe = 1/4, 1/2, 1, 3$.}
\label{PECLETcontours}
\end{figure}

i remember this was a 2x2 box.

you may need \usepackage{subfigure}
but there s something else!!!


Last edited by pathfinder on Thu Apr 10, 2008 3:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
c707176
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 215

PostPosted: Thu Apr 10, 2008 3:05 pm    Post subject: Reply with quote

o.k. I should say I know how to do it in latex but I want to have a solution that works without latex....
So that I can use the single figure file in latex instead of the 4 files before....
Any other ideas?
Back to top
View user's profile Send private message
pathfinder
l33t
l33t


Joined: 19 Jan 2006
Posts: 731
Location: Barcelona, Spain

PostPosted: Thu Apr 10, 2008 3:09 pm    Post subject: Reply with quote

welll....
if you have the final figure in pdf, use IMPORT lastone.eps from the command line and select the area you want to keep, and use this one.


crappy but quick.
Back to top
View user's profile Send private message
pathfinder
l33t
l33t


Joined: 19 Jan 2006
Posts: 731
Location: Barcelona, Spain

PostPosted: Thu Apr 10, 2008 3:12 pm    Post subject: Reply with quote

gimp?
powerpoint?
a copy paste with gimp?!!!
_________________
Cuando un tonto coge un camino, el camino se acaba, pero el tonto sigue
Back to top
View user's profile Send private message
c707176
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 215

PostPosted: Thu Apr 10, 2008 3:13 pm    Post subject: Reply with quote

I never used gimp before... :-( Is it hard to handle?
Back to top
View user's profile Send private message
pathfinder
l33t
l33t


Joined: 19 Jan 2006
Posts: 731
Location: Barcelona, Spain

PostPosted: Thu Apr 10, 2008 3:19 pm    Post subject: Reply with quote

well... i scarcely used it.
it s a really powerful tool.
you may like it and find it easy.


personnaly, I know how to do this quicker with latex... but i m definitely not used with the gimp...
try it, this is not really difficult: it s select rectangle/whatever copy, paste, NEW, paste, save as instructions.
i mean: you could do it with paint... photoshop... gimp... even maybe pdf distiller...
tried openoffice?
Back to top
View user's profile Send private message
doctork
Guru
Guru


Joined: 25 Apr 2004
Posts: 370
Location: Cleveland, OH

PostPosted: Thu Apr 10, 2008 3:57 pm    Post subject: Reply with quote

The "convert" program from the ImageMagick package may provide what you need. It works on PNG files, but I've not used it on PDFs.
See the -/+ append options.

jlk
Back to top
View user's profile Send private message
c707176
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 215

PostPosted: Thu Apr 10, 2008 4:36 pm    Post subject: Reply with quote

do you know how the specific options are for convert?
Back to top
View user's profile Send private message
c707176
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 215

PostPosted: Thu Apr 10, 2008 5:39 pm    Post subject: Reply with quote

o.k., I managed to put 2 figures side by side using
the command: convert + append fig1.pdf fig2.pdf result.pdf

But I dont know how to put them above each other...?!
Back to top
View user's profile Send private message
c707176
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 215

PostPosted: Thu Apr 10, 2008 6:16 pm    Post subject: Reply with quote

o.k. I got it now.
Thanks very much....
Back to top
View user's profile Send private message
pathfinder
l33t
l33t


Joined: 19 Jan 2006
Posts: 731
Location: Barcelona, Spain

PostPosted: Fri Apr 11, 2008 7:06 am    Post subject: Reply with quote

c707176 wrote:
o.k. I got it now.
Thanks very much....


great...
so please
1/ tell us how :)
2/ mark (SOLVED) your initial message. :)
Back to top
View user's profile Send private message
c707176
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 215

PostPosted: Fri Apr 11, 2008 7:17 am    Post subject: Reply with quote

convert +append fig1.pdf fig2.pdf tmp1.pdf
convert +append fig3.pdf fig4.pdf tmp2.pdf
convert -append tmp1.pdf tmp2.pdf fig3.pdf

I did a epstopdf to all my eps files before. This removed the extraneous frame around the original eps images. I don't know how to to this with convert...
The problem is then if I use eps files instead of the pdf then they don't fit on a page anymore due to this stupid and senseless white frame....
For some reason the epstopdf function seems to correct for this extra frame but I dont know why and how to mimic this behavior with convert.
Does anybody know?
Back to top
View user's profile Send private message
pathfinder
l33t
l33t


Joined: 19 Jan 2006
Posts: 731
Location: Barcelona, Spain

PostPosted: Wed Apr 16, 2008 2:26 pm    Post subject: Reply with quote

sorry, no idea.
but good to know the -append and -append thing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum