Message Boards Message Boards

0
|
6766 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Create a parametric plot, with only positive axes - stability diagram?

Posted 7 years ago

Hello everyone!

I started using Mathematica today (have only a little bit OF Matlab experience).

I got the following code:

r[x_]= 2x / (x^2+1)^2;
s[x_] = (x^2 (-1+x^2))/(1+x^2)^2;
ParametricPlot[{r[x],-s[x]}, {x,0,10}, PlotStyle -> {Blue}, 
AxesLabel->{Style[r,Large],Style[s,Large]},LabelStyle->Directive[Bold]]

My task seems to be quite easy, but I fail: I want to get this plot, but only with positive s-axis - no negative s-values needed.

Can anybody help me, please?

Thank you so much!

POSTED BY: m s
3 Replies
Posted 7 years ago

I allready looked up PlotRange and tried out a lot, but I was not able to get it working.

I now tried some things and fixed the Problem with

...  ParametricPlot[{r[x],-s[x]}, {x,0,**1**},...

even though I mathematically don't understand what I did... how would ich have to arrange the "PlotRange"?

POSTED BY: m s

(Click "Reply" to reply to a specific comment to have comments structured). Something like this?

r[x_] = 2 x/(x^2 + 1)^2;
s[x_] = (x^2 (-1 + x^2))/(1 + x^2)^2;
ParametricPlot[{r[x], -s[x]}, {x, 0, 10}, PlotStyle -> {Blue}, 
 FrameLabel -> {Style[r, Large], Style[s, Large]},
 LabelStyle -> Directive[Bold],
 PlotRange -> {Automatic, {0, .13}},
 AspectRatio -> 1,
 PlotTheme -> "Detailed"]

enter image description here

POSTED BY: Kapio Letto

Look up PlotRange in docs: http://reference.wolfram.com/language/ref/PlotRange.html

Make it a habit to read docs carefully. If you would carefully read ParametricPlot docs you would find examples there that solves your problem.

POSTED BY: Kapio Letto
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract