[texhax] How to create legend in Latex
Reinhard Kotucha
reinhard.kotucha at web.de
Mon Nov 1 19:39:06 CET 2010
On 1 November 2010 Mostafa ali wrote:
> Hi
>
> I have some figures which were generated in Matlab and it has
> six diffrent curves. I want to create legends in Latex. I can do
> that in MatLab, but then the legends become so big that it covers
> the whole graph. So I am wondering, if there is any way to create
> legends in latex and put it under the figure. Any help would be
> appreciable.
Hi,
the easiest way to plot curves is to use the pgfplots package. You
can instruct Matlab to write the data to an ASCII file. pgfplots can
read such files.
You can tell pgfplots where to put the legend, and much more.
Please look at the pgfplots manual for examples.
Regards,
Reinhard
--
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------
More information about the texhax
mailing list