MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Legend

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81128] Legend
  • From: "Cetin Haftaoglu" <cetin.haftaoglu at bam.de>
  • Date: Thu, 13 Sep 2007 06:29:13 -0400 (EDT)

Hello,

 

I want combine a Plot and a ListPlot - Graphics and I want also use a Legend
to name the both curves.

 

plta=ListPlot[{0,1,4,9,16,9,4,1,0},PlotStyle->Red]

pltb=Plot[x,{x,0,9},PlotStyleRBlue]

 

Show[plta,pltb]

 

How can I insert a Legend with points for the Listplot and lines for the
function-plot?

 

Thanks in advance.

 

Regards,

Cetin




  • Prev by Date: Distinguishing Strings from Symbols
  • Next by Date: Optimization with symbolic paramters
  • Previous by thread: Re: Distinguishing Strings from Symbols
  • Next by thread: Optimization with symbolic paramters