Hi touqra,
welcome to the board!
Good to see, that your problem is solved. Thanks for posting your solution!
Regarding the alignment: you could use
\parbox
or a
{minipage}
environment with an optional vertical alignment argument, or
\raisebox
. I would not use
\put
and a
picture
environment. Such placement with absolute values is possible, but somehow static, not optimal for a LaTeX document.
Some further small remarks: in a
figure
environment, I would use
\centering
instead of
\begin{center} ... \end{center}
, see
center vs. \centering for an explanation.
And
!h
as the only positioning arguments are too few. You don't even allow floating to the top of the next page, which can result in a bad page break if the figure doesn't fit completely to the page.
ht
or
!ht
would be the minimum for me. Most flexible placement is
!htbp
. The parameters are explained here:
Order of appearance of tables and figures.
As I see you use the
picture
environment: if you produce graphics using
picture
, perhaps have a look at
TikZ, which is very capable, see the
TikZ example gallery. Alignment and even absolute positioning are easy with TikZ.
I hope some of the remarks are useful for you. If you have a follow-up question, for example if you start using TikZ, feel free to open a new topic.
Stefan