@@ -59,20 +59,20 @@ def bullseye_plot(ax, data, segBold=None, cmap=None, norm=None):
5959
6060 # Create the bounds for the segments 1-12
6161 for i in range (6 ):
62- theta_i = i * 60 * np . pi / 180
62+ theta_i = np . deg2rad ( i * 60 )
6363 ax .plot ([theta_i , theta_i ], [r [1 ], 1 ], '-k' , lw = linewidth )
6464
6565 # Create the bounds for the segmentss 13-16
6666 for i in range (4 ):
67- theta_i = i * 90 * np . pi / 180 - 45 * np . pi / 180
67+ theta_i = np . deg2rad ( i * 90 - 45 )
6868 ax .plot ([theta_i , theta_i ], [r [0 ], r [1 ]], '-k' , lw = linewidth )
6969
7070 # Fill the segments 1-6
7171 r0 = r [2 :4 ]
7272 r0 = np .repeat (r0 [:, np .newaxis ], 128 , axis = 1 ).T
7373 for i in range (6 ):
7474 # First segment start at 60 degrees
75- theta0 = theta [i * 128 :i * 128 + 128 ] + 60 * np .pi / 180
75+ theta0 = theta [i * 128 :i * 128 + 128 ] + np .deg2rad ( 60 )
7676 theta0 = np .repeat (theta0 [:, np .newaxis ], 2 , axis = 1 )
7777 z = np .ones ((128 , 2 ))* data [i ]
7878 ax .pcolormesh (theta0 , r0 , z , cmap = cmap , norm = norm )
@@ -86,7 +86,7 @@ def bullseye_plot(ax, data, segBold=None, cmap=None, norm=None):
8686 r0 = np .repeat (r0 [:, np .newaxis ], 128 , axis = 1 ).T
8787 for i in range (6 ):
8888 # First segment start at 60 degrees
89- theta0 = theta [i * 128 :i * 128 + 128 ] + 60 * np .pi / 180
89+ theta0 = theta [i * 128 :i * 128 + 128 ] + np .deg2rad ( 60 )
9090 theta0 = np .repeat (theta0 [:, np .newaxis ], 2 , axis = 1 )
9191 z = np .ones ((128 , 2 ))* data [i + 6 ]
9292 ax .pcolormesh (theta0 , r0 , z , cmap = cmap , norm = norm )
@@ -100,7 +100,7 @@ def bullseye_plot(ax, data, segBold=None, cmap=None, norm=None):
100100 r0 = np .repeat (r0 [:, np .newaxis ], 192 , axis = 1 ).T
101101 for i in range (4 ):
102102 # First segment start at 45 degrees
103- theta0 = theta [i * 192 :i * 192 + 192 ] + 45 * np .pi / 180
103+ theta0 = theta [i * 192 :i * 192 + 192 ] + np .deg2rad ( 45 )
104104 theta0 = np .repeat (theta0 [:, np .newaxis ], 2 , axis = 1 )
105105 z = np .ones ((192 , 2 ))* data [i + 12 ]
106106 ax .pcolormesh (theta0 , r0 , z , cmap = cmap , norm = norm )
0 commit comments