@@ -137,25 +137,25 @@ def main():
137137 # kwarg for something else.
138138 ds_region .isel (
139139 x = slice (xin , xout_centre ), theta = slice (ylow , yup_centre )
140- ).plot .scatter ("R" , "Z" , marker = "." , color = "k" , s = 1 )
140+ ).plot .scatter (x = "R" , y = "Z" , marker = "." , color = "k" , s = 1 )
141141
142142 # plot radial grid lines
143143 plt .plot (
144- ds_region ["Rxy_corners " ].isel (
144+ ds_region ["Rxy_lower_left_corners " ].isel (
145145 x = slice (xin , xout_corner_rad ), theta = slice (ylow , yup_corner )
146146 ),
147- ds_region ["Zxy_corners " ].isel (
147+ ds_region ["Zxy_lower_left_corners " ].isel (
148148 x = slice (xin , xout_corner_rad ), theta = slice (ylow , yup_corner )
149149 ),
150150 color = "k" ,
151151 )
152152
153153 # plot poloidal grid lines
154154 plt .plot (
155- ds_region ["Rxy_corners " ]
155+ ds_region ["Rxy_lower_left_corners " ]
156156 .isel (x = slice (xin_pol , xout_corner_pol ), theta = slice (ylow , yup_corner ))
157157 .T ,
158- ds_region ["Zxy_corners " ]
158+ ds_region ["Zxy_lower_left_corners " ]
159159 .isel (x = slice (xin_pol , xout_corner_pol ), theta = slice (ylow , yup_corner ))
160160 .T ,
161161 color = "k" ,
@@ -175,8 +175,12 @@ def main():
175175 # neighbouring in the global grid, because if they are the boundary between
176176 # regions is not (or 'not really') a branch cut.
177177 plt .plot (
178- ds_region ["Rxy_corners" ].isel (x = slice (xin , xout_corner_rad ), theta = - 1 ),
179- ds_region ["Zxy_corners" ].isel (x = slice (xin , xout_corner_rad ), theta = - 1 ),
178+ ds_region ["Rxy_lower_left_corners" ].isel (
179+ x = slice (xin , xout_corner_rad ), theta = - 1
180+ ),
181+ ds_region ["Zxy_lower_left_corners" ].isel (
182+ x = slice (xin , xout_corner_rad ), theta = - 1
183+ ),
180184 color = "r" ,
181185 linewidth = 3 ,
182186 zorder = 1000 ,
@@ -187,8 +191,12 @@ def main():
187191 # By arbitrary choice, plot from the region(s) inside the separatrix, so
188192 # highlight the outer edge.
189193 plt .plot (
190- ds_region ["Rxy_corners" ].isel (x = - 1 , theta = slice (ylow , yup_corner )),
191- ds_region ["Zxy_corners" ].isel (x = - 1 , theta = slice (ylow , yup_corner )),
194+ ds_region ["Rxy_lower_left_corners" ].isel (
195+ x = - 1 , theta = slice (ylow , yup_corner )
196+ ),
197+ ds_region ["Zxy_lower_left_corners" ].isel (
198+ x = - 1 , theta = slice (ylow , yup_corner )
199+ ),
192200 color = "b" ,
193201 linewidth = 3 ,
194202 zorder = 999 ,
@@ -197,10 +205,10 @@ def main():
197205 if targets :
198206 if ds_region .regions [r ].connection_lower_y is None :
199207 plt .plot (
200- ds_region ["Rxy_corners " ].isel (
208+ ds_region ["Rxy_lower_left_corners " ].isel (
201209 x = slice (xin , xout_corner_rad ), theta = ylow
202210 ),
203- ds_region ["Zxy_corners " ].isel (
211+ ds_region ["Zxy_lower_left_corners " ].isel (
204212 x = slice (xin , xout_corner_rad ), theta = ylow
205213 ),
206214 color = "k" ,
@@ -210,10 +218,10 @@ def main():
210218 if ds_region .regions [r ].connection_upper_y is None :
211219 yval = - 1 if yup_corner is None else yup_corner
212220 plt .plot (
213- ds_region ["Rxy_corners " ].isel (
221+ ds_region ["Rxy_lower_left_corners " ].isel (
214222 x = slice (xin , xout_corner_rad ), theta = yval
215223 ),
216- ds_region ["Zxy_corners " ].isel (
224+ ds_region ["Zxy_lower_left_corners " ].isel (
217225 x = slice (xin , xout_corner_rad ), theta = yval
218226 ),
219227 color = "k" ,
0 commit comments