0
$\begingroup$

I am learning by myself to use Mathematica. I am quite new actually. I'd like to plot something that resembles the picture below, but here's the thing, I want to know if there is a possibility to creat a chart where I can add X and Y values, allowing it to plot the graphic but if I change the values, the graphic would change. I hope I make myself clear, English is not my first language. Thanks in advance

enter image description here

New contributor
MasterLD is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
$\endgroup$
  • 1
    $\begingroup$ Welcome to MSE. There are several Wolfram Demonstration projects on ellipses that might be close to what you are looking for. e.g. this. $\endgroup$ – Rohit Namjoshi Dec 3 at 1:00
  • $\begingroup$ What is the relationship between the ellipse and the X and Y values? $\endgroup$ – C. E. Dec 3 at 8:55
  • $\begingroup$ X is tension, larger values than Y; Y is differential pressure $\endgroup$ – MasterLD Dec 3 at 20:06
  • $\begingroup$ Take a look at the help for Manipulate, which facilitates interaction. $\endgroup$ – Yves Klett 17 hours ago
1
$\begingroup$

I'm not sure exactly what you want, but the following creates an ellipse whose size and orientation can be controlled interactively

Manipulate[
 Graphics[{EdgeForm[Black], FaceForm[], 
   Ellipsoid[{0, 0}, 
    Transpose[
      RotationMatrix[θ]].DiagonalMatrix[{r^2, 
       R^2}].RotationMatrix[θ]]}, 
  PlotRange -> {{-2, 2}, {-2, 2}}, Axes -> True, 
  GridLines -> Automatic], {r, 1, 2}, {R, 1, 2}, {θ, 0, π}]
$\endgroup$

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