@@ -80,7 +80,7 @@ def bullseye_plot(ax, data, seg_bold=None, cmap=None, norm=None):
80
80
# First segment start at 60 degrees
81
81
theta0 = theta [i * 128 :i * 128 + 128 ] + np .deg2rad (60 )
82
82
theta0 = np .repeat (theta0 [:, np .newaxis ], 2 , axis = 1 )
83
- z = np .ones ((128 , 2 )) * data [i ]
83
+ z = np .ones ((128 - 1 , 2 - 1 )) * data [i ]
84
84
ax .pcolormesh (theta0 , r0 , z , cmap = cmap , norm = norm , shading = 'auto' )
85
85
if i + 1 in seg_bold :
86
86
ax .plot (theta0 , r0 , '-k' , lw = linewidth + 2 )
@@ -94,7 +94,7 @@ def bullseye_plot(ax, data, seg_bold=None, cmap=None, norm=None):
94
94
# First segment start at 60 degrees
95
95
theta0 = theta [i * 128 :i * 128 + 128 ] + np .deg2rad (60 )
96
96
theta0 = np .repeat (theta0 [:, np .newaxis ], 2 , axis = 1 )
97
- z = np .ones ((128 , 2 )) * data [i + 6 ]
97
+ z = np .ones ((128 - 1 , 2 - 1 )) * data [i + 6 ]
98
98
ax .pcolormesh (theta0 , r0 , z , cmap = cmap , norm = norm , shading = 'auto' )
99
99
if i + 7 in seg_bold :
100
100
ax .plot (theta0 , r0 , '-k' , lw = linewidth + 2 )
@@ -108,7 +108,7 @@ def bullseye_plot(ax, data, seg_bold=None, cmap=None, norm=None):
108
108
# First segment start at 45 degrees
109
109
theta0 = theta [i * 192 :i * 192 + 192 ] + np .deg2rad (45 )
110
110
theta0 = np .repeat (theta0 [:, np .newaxis ], 2 , axis = 1 )
111
- z = np .ones ((192 , 2 )) * data [i + 12 ]
111
+ z = np .ones ((192 - 1 , 2 - 1 )) * data [i + 12 ]
112
112
ax .pcolormesh (theta0 , r0 , z , cmap = cmap , norm = norm , shading = 'auto' )
113
113
if i + 13 in seg_bold :
114
114
ax .plot (theta0 , r0 , '-k' , lw = linewidth + 2 )
@@ -120,7 +120,7 @@ def bullseye_plot(ax, data, seg_bold=None, cmap=None, norm=None):
120
120
r0 = np .array ([0 , r [0 ]])
121
121
r0 = np .repeat (r0 [:, np .newaxis ], theta .size , axis = 1 ).T
122
122
theta0 = np .repeat (theta [:, np .newaxis ], 2 , axis = 1 )
123
- z = np .ones ((theta .size , 2 )) * data [16 ]
123
+ z = np .ones ((theta .size - 1 , 2 - 1 )) * data [16 ]
124
124
ax .pcolormesh (theta0 , r0 , z , cmap = cmap , norm = norm , shading = 'auto' )
125
125
if 17 in seg_bold :
126
126
ax .plot (theta0 , r0 , '-k' , lw = linewidth + 2 )
0 commit comments