Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: A question concerning Show and PlotLegend

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65270] Re: [mg65255] A question concerning Show and PlotLegend
  • From: Ryan Bradley Norman <rbnorman at WPI.EDU>
  • Date: Thu, 23 Mar 2006 06:58:29 -0500 (EST)
  • References: <200603221113.GAA10204@smc.vnet.net> <000e01c64dce$4681ef00$4001a8c0@Aristophanes>
  • Sender: owner-wri-mathgroup at wolfram.com

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.

Thanks,
Ryan

***************************************
Ryan Norman
Physics Department
Worcester Polytechnic Institute
100 Institute Rd
Worcester, MA 01609
(508) 831-6761
***************************************

On Wed, 22 Mar 2006, Christopher Arthur wrote:

> The PlotRange should just be a 2x2 array of {{xmin,xmax},{ymin, ymax}},
> which tells Mathematica how much of the plot to draw.  I'm not sure what
> you're trying to do with this.
>
>
>
> ----- Original Message ----- From: "Ryan Norman" <rbnorman at wpi.edu>
To: mathgroup at smc.vnet.net
> Subject: [mg65270] [mg65255] A question concerning Show and PlotLegend
>
>
>> Hello,
>> 
>> I have searched the archive and have found some hints about PlotLegend
>> being a slight pain to deal with and I am having some trouble myself.  I
>> am trying to plot some theoretical curves along with some data.
>> 
>> My code looks like:
>> 
>> Show[Plot[{.389*10^3*dsigdtABC[x], .389*10^3*dsigdt[x]}, {x, xmin1,
>> xmax1}, PlotStyle -> {{Dashing[{0}]}, {Dashing[{.05, .02}]}}, Axes ->
>> False, Frame -> True, PlotLegend -> {"ABC", "OPE"}, LegendShadow -> None,
>> LegendSize -> {.35, .35}, LegendPosition -> {-.3, .05}, ImageSize -> {450,
>> 300}, PlotRange -> PlotRange[p2]], p2];
>> 
>> Where p2 is a plot of the data points.  Right now it is spitting out the
>> p2 plot below (and all jumbled) the plot of the curves. Can anyone offer
>> some advice?
>> Thanks,
>> Ryan
>> 
>> 
>
>
>


  • Prev by Date: Re: Grouping similar indices together in an expression
  • Next by Date: Re: sorting list of roots af a transcendental function
  • Previous by thread: Re: A question concerning Show and PlotLegend
  • Next by thread: Re: Re: A question concerning Show and PlotLegend