Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: M9. Error messages when assign ContourPlot graphic to variable
Replies: 2   Last Post: Dec 8, 2012 1:27 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Grischika@mail.ru

Posts: 23
Registered: 2/5/08
Re: M9. Error messages when assign ContourPlot graphic to variable
Posted: Dec 8, 2012 1:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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
>
> >




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.