2
$\begingroup$

I'm currently trying to see the impact of one parameter on an equation.

To do so, I plot the results of my equation following against a range of values for this parameter by using ParametricPlot.

The plot is really skewed and practically impossible to read. All other plots that I do are working on my Mathematica, and even if I reset my workspace, the problem persists. I guess this come from something pretty dumb, but I can't see what. Any idea ?

Here is my code:

Umax = 10000000; 
i2 = 0.0000001; 
ParametricPlot[{((i2*Umax)/u2), u2}, {u2, 0.01, 1}]

And here is the resulting plot (I enlarged it to the max):

enter image description here

Isn't the plot supposed to have its x-axis and y-axis automatically balanced ?

Thanks a lot !

$\endgroup$

closed as off-topic by Bob Hanlon, MarcoB, José Antonio Díaz Navas, Carl Lange, Alex Trounev Mar 25 at 22:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Bob Hanlon, MarcoB, José Antonio Díaz Navas, Carl Lange, Alex Trounev
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ I feel a little dumb asking this question. If the answer is obvious and relative to a pretty dumb human error, please tell me if I should delete this question. Thanks again. $\endgroup$ – Jerobou Mar 21 at 17:16
  • 2
    $\begingroup$ I believe you are looking for AspectRatio. Try, for instance, ParametricPlot[{i2*Umax/u2, u2}, {u2, 0.01, 1}, PlotRange -> All, AspectRatio -> 1/GoldenRatio], which is the default aspect ratio utilized e.g. by Plot. Adding PlotRange -> All is also a good idea to avoid truncation in your horizontal axis. $\endgroup$ – MarcoB Mar 21 at 17:17
  • $\begingroup$ This is working perfectly. Thanks a lot. Could you please write it as an answer (if you feel this question should be answered) so I can accept it as a valid one? thanks again. $\endgroup$ – Jerobou Mar 21 at 17:20
  • 1
    $\begingroup$ Sure, I've added it. This question is still likely to be closed as "off topic" because the solution is in the docs. Indeed, I have voted to close as well. I just wanted to make sure that you know that it is not a judgment on the quality of the question, which I have voted up because it was well written and it contained all info to answer it, but simply a "housekeeping" move. $\endgroup$ – MarcoB Mar 21 at 17:25
  • 1
    $\begingroup$ @MarcoB Anyhow, almost everything is in the docs somewhere, but this counterintuitive behavior isn't mentioned in the logical place (ParametricPlot - Possible Issues), so there's no need for OP to feel bad for asking! $\endgroup$ – Chris K Mar 21 at 19:15
3
$\begingroup$

As requested, I believe you are looking for AspectRatio.

Try, for instance,

ParametricPlot[
  {i2*Umax/u2, u2}, {u2, 0.01, 1}, 
  PlotRange -> All, 
  AspectRatio -> 1/GoldenRatio
]

Mathematica graphics

1/GoldenRatio happens to be the default aspect ratio utilized e.g. by Plot. Adding PlotRange -> All is also a good idea here to avoid truncation in your horizontal axis.

$\endgroup$
  • $\begingroup$ Perfect, thanks a lot ! $\endgroup$ – Jerobou Mar 21 at 17:30
  • $\begingroup$ @Jerobou No problem, glad to help! $\endgroup$ – MarcoB Mar 21 at 17:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.