@@ -1861,27 +1861,36 @@ def _parse_linestyle(style_name, allow_false=False):
1861
1861
1862
1862
# Mark the -1 point
1863
1863
plt .plot ([- 1 ], [0 ], 'r+' )
1864
-
1864
+
1865
1865
theta = np .linspace (0 , 2 * np .pi , 100 )
1866
1866
cos = np .cos (theta )
1867
1867
sin = np .sin (theta )
1868
+ label_pos = 15
1868
1869
1869
1870
if unit_circle :
1870
1871
plt .plot (cos , sin , color = "black" , linestyle = 'dashed' , linewidth = 1 )
1871
1872
1872
1873
if ms_circles is not None :
1873
1874
for ms in ms_circles :
1874
- plt .plot (- 1 + (1 / ms )* cos , (1 / ms )* sin , color = "black" , linestyle = "dashed" , linewidth = 1 )
1875
-
1875
+ pos_x = - 1 + (1 / ms )* cos
1876
+ pos_y = (1 / ms )* sin
1877
+ plt .plot (pos_x , pos_y , color = "black" , linestyle = "dashed" , linewidth = 1 )
1878
+ plt .text (pos_x [label_pos ], pos_y [label_pos ], ms )
1879
+
1876
1880
if mt_circles is not None :
1877
1881
for mt in mt_circles :
1878
1882
if mt != 1 :
1879
1883
ct = - mt ** 2 / (mt ** 2 - 1 ) # Mt center
1880
1884
rt = mt / (mt ** 2 - 1 ) # Mt radius
1881
- plt .plot (ct + rt * cos , rt * sin , color = "black" , linestyle = "dashed" , linewidth = 1 )
1885
+ pos_x = ct + rt * cos
1886
+ pos_y = rt * sin
1887
+ plt .plot (pos_x , pos_y , color = "black" , linestyle = "dashed" , linewidth = 1 )
1888
+ plt .text (pos_x [label_pos ], pos_y [label_pos ], mt )
1882
1889
else :
1883
1890
_ , _ , ymin , ymax = plt .axis ()
1891
+ pos_y = np .linspace (ymin , ymax , 100 )
1884
1892
plt .vlines (- 0.5 , ymin = ymin , ymax = ymax , colors = "black" , linestyles = "dashed" , linewidth = 1 )
1893
+ plt .text (- 0.5 , pos_y [label_pos ], 1 )
1885
1894
1886
1895
# Label the frequencies of the points
1887
1896
if label_freq :
0 commit comments