1

I am very new to LyX or LaTeX, so I do not want to complicate the process. So what I currently do, is saving the figure as a PDF and then attaching it. But I don't think this is a good method as the output I am getting looks like this:

enter image description here

Is there any easy way to do this? The settings are as follow: Placement: Here Definitely Alignment: Center

Aashu10
  • 59
  • 1
  • 9

1 Answers1

2

I think what you mean is that you want the figure to be located neatly with the caption "Figure 1 My lovely MATLAB plot" under it, right ?

In that case you need to insert->float->figure

This will create a floating environment for the figure, with a caption. You should add "My MATLAB plot" there.adding float

Then you'd want to add your figure, go to before the caption and do Insert->graphics

in the file menu add the pdf image you createdplot GUI

You can also scale the image by setting its width or height. After you add the plot you'll see something like this in Lyxin lyx

and when previewing you'll get the following in the pdf enter image description here

Also - you should consider using eps files instead of pdf, matlab exports them just as easily and they tend to scale better

Elad Den
  • 3,941