MathGroup Archive 2006

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

Search the Archive

Re: Re: A question concerning Show and PlotLegend


Hi Ryan,

> What I was hoping was that the command PlotRange -> 
> PlotRange[p2]] does is set the PlotRange for the Show to that 
> of p2- which is the plot of the data points.  If you remove 
> the variables for the legend, the plot does what it is 
> supposed to do- shows the theoretical curves and the data on 
> one plot.  Well, it actually outputs two plots.  One with 
> just the curves and below it one with the curves and the data 
> plotted together.  But when the variables used to set the 
> legend are included it messes everything up.
> 
> Just to be clear, p2 is a plot of some data points using 
> MultipleListPlot and I am trying to add two theoretical 
> curves to the plot.

I think you should be using ShowLegend[] rather than Show[] for this.  In
other words, get Plot[] sorted, get your MultipleListPlot[] sorted, then use
ShowLegend[] to add a Legend.

Regards,

Dave.


  • Prev by Date: Sum problem
  • Next by Date: Re: How to sample a 2-dim. r.v. with known density function?
  • Previous by thread: Re: A question concerning Show and PlotLegend
  • Next by thread: Re: A question concerning Show and PlotLegend