1
$\begingroup$

I'm trying to get the plot below only I want the ratio y:x to be 1:1 instead of 2:1. I want the ellipse to look tall and slim instead of short and fat.

Here's the code line if you want to copy and paste.

Plot[{-2*Sqrt[1-x^2],2*Sqrt[1-x^2],2*x-2*Sqrt[2]}, {x,-2,2}, PlotStyle->{Blue, Blue, Red}]

plot

What I want as an answer is the code to generate the plot as I decribed above.

$\endgroup$
7
  • 2
    $\begingroup$ Mathematica has its own site. $\endgroup$ Nov 19, 2014 at 13:13
  • 1
    $\begingroup$ Thank you @DavidMitra I know about it, but such basic questions are off-topic there :( $\endgroup$ Nov 19, 2014 at 13:17
  • 1
    $\begingroup$ @ICan'tPlotThis: If a question about Mathematica is off-topic on Mathematica.SE, you can bet it's off-topic here as well. $\endgroup$
    – user139000
    Nov 19, 2014 at 13:19
  • 2
    $\begingroup$ @pew the tags suggest otherwise and if that is true, the same goes for Cross Validated/Statistics and Physics SE/Physics. These SE sites are known for not accepting basic questions. $\endgroup$ Nov 19, 2014 at 13:23
  • $\begingroup$ @ICan'tPlotThis: If that is true, it's a sad state indeed. $\endgroup$
    – user139000
    Nov 19, 2014 at 13:27

1 Answer 1

2
$\begingroup$

Try using Aspect Ratio,

 Plot[{-2*Sqrt[1 - x^2], 2*Sqrt[1 - x^2], 2*x - 2*Sqrt[2]}, {x, -2, 2},
   PlotStyle -> {Blue, Blue, Red}, AspectRatio -> Automatic]

enter image description here

$\endgroup$
1
  • $\begingroup$ Thank you. Exactly what I wanted. $\endgroup$ Nov 19, 2014 at 15:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .