Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12663 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-12-07 06:37 +0000 |
| Last post | 2012-12-08 06:27 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: M9. Error messages when assign ContourPlot graphic to variable Bob Hanlon <hanlonr357@gmail.com> - 2012-12-07 06:37 +0000
Re: M9. Error messages when assign ContourPlot graphic to variable Grischika <Grischika@mail.ru> - 2012-12-08 06:27 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-12-07 06:37 +0000 |
| Subject | Re: M9. Error messages when assign ContourPlot graphic to variable |
| Message-ID | <k9s2qg$mob$1@smc.vnet.net> |
$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
On Thu, Dec 6, 2012 at 4:59 AM, Grischika <Grischika@mail.ru> wrote:
> 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
>
[toc] | [next] | [standalone]
| From | Grischika <Grischika@mail.ru> |
|---|---|
| Date | 2012-12-08 06:27 +0000 |
| Message-ID | <k9uml2$shd$1@smc.vnet.net> |
| In reply to | #12663 |
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
>
> >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web