Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: Plots with Variable Limits?

  • To: mathgroup at
  • Subject: [mg24135] Re: [mg24100] Plots with Variable Limits?
  • From: Matt.Johnson at
  • Date: Wed, 28 Jun 2000 02:11:52 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


Plot[ f[ x, 10 ], {x, -20, 20}];

This doesn't assign a value to a and will not give you an error message.  Also,
either r should be x, or x should be r in your example.

If your bounds are always -2 a and 2 a, then

Plot[ f[ x, a ], { x, -2 a , 2 a }];

will work.


"A. E. Siegman" <siegman at> on 06/26/2000 10:51:55 PM

Subject: [mg24135]  [mg24100] Plots with Variable Limits?

I want to make a test plot of a function  f[x,a]  versus  x  for some
trial value of the parameter  a  without fixing that parameter for
subsequent cells, e.g. something like

   Plot[ f[r,a], {x,-2a,2a} ]  /.  a->10

If I try this, Mathematica gives me a  "Plot::plln"  error -- but then
goes ahead and makes the correct plot anyway.

I can of course turn off the error -- but what's a better, but still
clean and simple, way to accomplish this.

Thanks   siegman at

  • Prev by Date: I'm lacking machine-sized real numbers again, help please.
  • Next by Date: Re: Plots with Variable Limits?
  • Previous by thread: Re: Plots with Variable Limits?
  • Next by thread: Re: Plots with Variable Limits?