I want to plot multiple figures under a same caption but the code doesn't work. This code doesn't appeared in plot:

        \caption{Temporal outlier detection reults with respect to the MF in $2007-09-30$}
  • What is the error you got? Did you remove [demo] from \usepackage[demo]{graphicx}? Please give some more details on your problem. – user11232 Jan 16 '13 at 3:34
  • Did you try putting the images in the same folder as your main .tex file? – user11232 Jan 16 '13 at 3:45
  • Note that you can use \graphicspath{{C:/Thesis/Latex/thesis_1(1)/Figures/}{c:/other/dir/}{..}} in the preamble to set a list of image directories. Then you only need to use the file (base)name of the image. You can even drop the .jpg extension (as long there are no other image types with the same basename). Also, maybe the (1) in the path causes an issue? – Martin Scharrer Jan 16 '13 at 8:04
  • Is this the same issue as you posted as Multiple Plot query under a same caption with different labales problem? If so, please tell use so we can merge the questions. Please never double post issues, but rather edit you original question to improve it. This will also push it up to the front page again. – Martin Scharrer Jan 16 '13 at 8:07
  • @HarishKumar, Yes I have removed it. – user1885733 Jan 16 '13 at 9:35

You need \par or a blank line before \rule, but otherwise your code is correct. Note that this code need two packages in the preamble:


In this way only black boxes are showed because the option [demo] but this the evidence that the LaTeX code is correct. Just delete [demo] to load really your images. In then there are still some error, the problem is a wrong path and/or filename. If you set both width an height options, use alsokeepaspectratio.

To debug put the images in the same directory that the .tex file and check for example that h25.jpg is loaded simply with h25 (extension .jpg is not needed) in this minimal document (of the same directory):


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.