LaTeX forum ⇒ Graphics, Figures & TablesFigures

Information and discussion about graphics, figures & tables in LaTeX documents.
Muhammad Tayyab
Posts: 1
Joined: Sun May 18, 2014 1:29 am

Figures

Postby Muhammad Tayyab » Sun May 18, 2014 1:34 am

Hello,
Now a days I am writing my Masters thesis, it includes some figure. I am facing the issue if I add some figure after subsection it gives a space between subsection and the figure. How can I get rid of this?
Code is below

  1. \subsection{Graphical Interpretation of Mittag-Leffler Function}
  2. \begin{figure}
  3. \centering
  4. \includegraphics[width=5in, height= 3.5in]{1parmgraph.eps}\\
  5. \caption{\large{Graph of $E_{\alpha}(-t^\alpha)$ for
  6. $0<\alpha\leq1$.}}
  7. \includegraphics[width=5in, height= 3.5in]{1parameter2.eps}\\
  8. \caption{\large{Graph of $E_{\alpha}(-t^\alpha)$ for
  9. $0<\alpha\leq2$.}}
  10. \end{figure}
  11. \begin{figure}[!htbp]
  12. \centering
  13. \includegraphics[width=5in, height= 3.5in]{2parameter.eps}\\
  14. \caption{\large{Graph of $E_{\alpha,\beta}(-t^\alpha)$ for
  15. $0<\alpha\leq\beta\leq1$.}}
  16. \end{figure}
Last edited by Stefan Kottwitz on Sun May 18, 2014 12:15 pm, edited 1 time in total.
Reason: code marked

Tags:

User avatar
tom
Posts: 73
Joined: Thu Apr 18, 2013 4:02 am

Postby tom » Thu Jun 12, 2014 7:51 am

Hi Muhammed,

Just use the optional argument [ht] to {figure}. If there is still too much space between the heading and the figure, use a negative \vspace to move the figure up. Also, consider the subfig package for a better alignment of multiple figures.

  1. \documentclass[a4paper,12pt]{article}
  2. \begin{document}
  3. \section{some section}\clearpage
  4. \subsection{Graphical Interpretation of Mittag-Leffler Function}
  5. \begin{figure}[ht]\vspace{-20pt}
  6. \centering
  7. \rule{0.5\textwidth}{0.5\textwidth}
  8. \caption{\large{Graph of $E_{\alpha}(-t^\alpha)$ for $0<\alpha\leq1$.}}
  9. \rule{0.5\textwidth}{0.5\textwidth}
  10. \caption{\large{Graph of $E_{\alpha}(-t^\alpha)$ for
  11. $0<\alpha\leq2$.}}
  12. \end{figure}
  13. \begin{figure}[ht]
  14. \centering
  15. \rule{0.5\textwidth}{0.5\textwidth}
  16. \caption{\large{Graph of $E_{\alpha,\beta}(-t^\alpha)$ for $0<\alpha\leq\beta\leq1$.}}
  17. \end{figure}
  18. \end{document}


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 1 guest