Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: M9. Error messages when assign ContourPlot graphic to variable

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129001] Re: M9. Error messages when assign ContourPlot graphic to variable
  • From: Grischika <Grischika at mail.ru>
  • Date: Sat, 8 Dec 2012 01:27:36 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20121206095953.6A0DF6910@smc.vnet.net> <k9s2qg$mob$1@smc.vnet.net>

Thanks for the response!
Your code works as it should. 
But if You select an image that ContourPlot generates and then copy and paste it to new input cell and evaluate this cell, then you, probably, will see the error message.


On Friday, December 7, 2012 8:37:04 AM UTC+2, Bob Hanlon wrote:
> $Version
> 
> 
> 
> "9.0 for Mac OS X x86 (64-bit) (November 20, 2012)"
> 
> 
> 
> pf[a_, b_] = ParametricNDSolveValue[
> 
>     {y''[x] == -a y[x], y[0] == a, y'[0] == b},
> 
>     y, {x, 0, 20}, {a, b}][a, b];
> 
> 
> 
> ContourPlot[pf[a, b][5] == 0,
> 
>  {a, 0, 5}, {b, 0, 5},
> 
>  ContourStyle -> {Red, Thick}]
> 
> 
> 
> ContourPlot[pf[a, b][5],
> 
>  {a, 0, 5}, {b, 0, 5},
> 
>  ContourStyle -> {Automatic, Automatic,
> 
>    {Red, Thick}, Automatic, Automatic}]
> 
> 
> 
> cp = ContourPlot[pf[a, b][5],
> 
>    {a, 0, 5}, {b, 0, 5}];
> 
> 
> 
> Manipulate[
> 
>  Show[
> 
>   cp,
> 
>   ContourPlot[
> 
>    pf[a, b][5] == value,
> 
>    {a, 0, 5}, {b, 0, 5},
> 
>    ContourStyle -> Red]],
> 
>  {{value, 0, "Value"}, Range[-4, 8, 2]}]
> 
> 
> 
> 
> 
> Bob Hanlon
> 
> 
> 
> 
> 
> 
> > Running this code
> 
> > pf = ParametricNDSolveValue[{y''[x] == -a y[x], y[0] == a,
> 
> >    y'[0] == b}, y, {x, 0, 20}, {a, b}];
> 
> > ContourPlot[{pf[a, b][5] == 0}, {a, 0, 5}, {b, 0, 5}]
> 
> >
> 
> > then copy and past this image to input cell. Execute the cell. The following message appears:
> 
> >
> 
> > ParametricFunction::argrx: ParametricFunction called with 0 arguments; 6 arguments are expected. >>
> 
> >
> 
> > Windows XP 32 bit
> 
> > Mathematica 9.0.0
> 
> >
> 
> > Grigory
> 
> >



  • Prev by Date: Re: Default font in Mathematica 9
  • Next by Date: Re: Modifying Default Stylesheet
  • Previous by thread: Re: M9. Error messages when assign ContourPlot graphic to variable
  • Next by thread: Phantom Error Messages in v9