# Plot issue with the astronomical I choose?

**URL:** <https://community.wolfram.com/t/plot-issue-with-the-astronomical-i-choose/17617>\
**Category:** Questions\
**Tags:** astronomy, graphics-and-visualization\
**Created:** [February 13, 2021, 6:33pm UTC](https://community.wolfram.com/t/plot-issue-with-the-astronomical-i-choose/17617 "2021-02-13T18:33:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [February 13, 2021, 6:33pm UTC](https://community.wolfram.com/t/plot-issue-with-the-astronomical-i-choose/17617/1 "2021-02-13T18:33:14Z")

</div>

In the attached figure, I am plotting the angle used in a book exactly with the same parameters with same units, but I am getting a totally different graph values. I am unable to solve it, kindly sort it out.

 ![8586Capture.PNG](https://global.discourse-cdn.com/wolfram/original/3X/f/6/f69f5f4d535a212d72937b622362185e1e9dfec1.png)

The codes I am using are stated as below

```
Double angle theta:

rm = 1/2 (3 M + Sqrt[9 M^2 - 8 Q^2]);
bc = rm^2/Sqrt[rm M - Q^2];

\!\(\*OverscriptBox[\(a\), \(_\)]\) = rm/Sqrt[-4 Q^2 + 3 M rm];

\!\(\*OverscriptBox[\(b\), \(_\)]\) = 
  rm/Sqrt[-4 Q^2 + 3 M rm] ( 
     Log[(8 (-4 Q^2 + 3 M rm)^3)/(
       M^2 rm ^2 (-Q^2 + M rm)^2) (2 Sqrt[-Q^2 + M rm] - 
         Sqrt[-4 Q^2 + 3 M rm])^2]) - \[Pi];

\[Beta] = 0; DOL = 0.01; M = 10; Theta = 2 bc/DOL (1 + E^((
\!\(\*OverscriptBox[\(b\), \(_\)]\) - \[Pi] + \[Beta])/
\!\(\*OverscriptBox[
StyleBox["a",
FontSize->12], \(_\)]\)));

\[Beta] = 0; DOL = 0.01; M = 30; Theta1 = 2 bc/DOL (1 + E^((
\!\(\*OverscriptBox[\(b\), \(_\)]\) - \[Pi] + \[Beta])/
\!\(\*OverscriptBox[
StyleBox["a",
FontSize->12], \(_\)]\)));

\[Beta] = 0; DOL = 0.01; M = 60; Theta2 = 2 bc/DOL (1 + E^((
\!\(\*OverscriptBox[\(b\), \(_\)]\) - \[Pi] + \[Beta])/
\!\(\*OverscriptBox[
StyleBox["a",
FontSize->12], \(_\)]\)));

Plot[{Theta, Theta1, Theta2}, {Q , 0, 1}, PlotRange -> All, 
 PlotStyle -> {{Black}, {Red, Dotted}, {Blue, Dashed}, {Green, DotDashed}}, 
 FrameLabel -> {"\!\(\*
   StyleBox[\"Q\",\nFontSize->16]\)", "\!\(\*
   StyleBox[\" \!\(\*SubscriptBox[\(\[Theta]\), \
\(+\)]\)-\!\(\*SubscriptBox[\(\[Theta]\), \(-\)]\)[\[Mu] arcsecond]\",\n\
FontSize->16]\)"}, Frame -> True, Axes -> False]

```

Kindly help me.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [February 14, 2021, 5:24pm UTC](https://community.wolfram.com/t/plot-issue-with-the-astronomical-i-choose/17617/2 "2021-02-14T17:24:24Z")

</div>

I get something vaguely similar this way:

```
rm = 1/2 (3 M + Sqrt[9 M^2 - 8 Q^2]);
bc = rm^2/Sqrt[rm M - Q^2];
abar = rm/Sqrt[-4 Q^2 + 3 M rm];
bbar = rm/Sqrt[-4 Q^2 + 3 M rm] ( 
          Log[(8 (-4 Q^2 + 3 M rm)^3)/(
                M^2 rm ^2 (-Q^2 + M rm)^2) (2 Sqrt[-Q^2 + M rm] - 
                   Sqrt[-4 Q^2 + 3 M rm])^2]) - \[Pi];
Theta[Q_, M_] = 2 bc/DOL (1 + E^((bbar - \[Pi] + \[Beta])/abar));
\[Beta] = 0; DOL = 0.01; M0 = 10; M1 = 30; M2 = 60;

With[{u = 1.63}, 
 Plot[{u*M0*Theta[M0*QoverM]/10^4, u* M1*Theta[M1*QoverM]/10^4, 
   u*M2*Theta[M2*QoverM]/10^4}, {QoverM , 0, 1}, PlotRange -> All, 
   PlotStyle -> {{Blue, Dashed}, {Green}, {Red, Dotted}}, 
  Frame -> True]]

```

---

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [February 15, 2021, 6:20am UTC](https://community.wolfram.com/t/plot-issue-with-the-astronomical-i-choose/17617/3 "2021-02-15T06:20:18Z")

</div>

Thank you so much for your valuable time and help.

---

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [February 16, 2021, 5:00am UTC](https://community.wolfram.com/t/plot-issue-with-the-astronomical-i-choose/17617/4 "2021-02-16T05:00:03Z")

</div>

Dear Sir, Whenever I run your program the plot appears to be empty. Are there any extra codes to run it? Kindly help me with it.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [February 16, 2021, 9:14am UTC](https://community.wolfram.com/t/plot-issue-with-the-astronomical-i-choose/17617/5 "2021-02-16T09:14:12Z")

</div>

Sorry, try this:

```
With[{u = 1.63}, 
 Plot[{u*M0*Theta[QoverM*M0, M0]/10^4, u*M1*Theta[QoverM*M1, M1]/10^4,
    u*M2*Theta[QoverM*M2, M2]/10^4}, {QoverM, 0, 1}, PlotRange -> All,
   PlotStyle -> {{Blue, Dashed}, {Green}, {Red, Dotted}}, 
  Frame -> True]]

```

---

<div class="post-metadata">

**Author:** ![nanialikhan77](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nanialikhan77](https://community.wolfram.com/u/nanialikhan77)\
**Post date:** [February 16, 2021, 10:06am UTC](https://community.wolfram.com/t/plot-issue-with-the-astronomical-i-choose/17617/6 "2021-02-16T10:06:00Z")

</div>

Thank you for reconsidering my request.
