@@ -137,25 +137,25 @@ def main():
137
137
# kwarg for something else.
138
138
ds_region .isel (
139
139
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 )
141
141
142
142
# plot radial grid lines
143
143
plt .plot (
144
- ds_region ["Rxy_corners " ].isel (
144
+ ds_region ["Rxy_lower_left_corners " ].isel (
145
145
x = slice (xin , xout_corner_rad ), theta = slice (ylow , yup_corner )
146
146
),
147
- ds_region ["Zxy_corners " ].isel (
147
+ ds_region ["Zxy_lower_left_corners " ].isel (
148
148
x = slice (xin , xout_corner_rad ), theta = slice (ylow , yup_corner )
149
149
),
150
150
color = "k" ,
151
151
)
152
152
153
153
# plot poloidal grid lines
154
154
plt .plot (
155
- ds_region ["Rxy_corners " ]
155
+ ds_region ["Rxy_lower_left_corners " ]
156
156
.isel (x = slice (xin_pol , xout_corner_pol ), theta = slice (ylow , yup_corner ))
157
157
.T ,
158
- ds_region ["Zxy_corners " ]
158
+ ds_region ["Zxy_lower_left_corners " ]
159
159
.isel (x = slice (xin_pol , xout_corner_pol ), theta = slice (ylow , yup_corner ))
160
160
.T ,
161
161
color = "k" ,
@@ -175,8 +175,12 @@ def main():
175
175
# neighbouring in the global grid, because if they are the boundary between
176
176
# regions is not (or 'not really') a branch cut.
177
177
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
+ ),
180
184
color = "r" ,
181
185
linewidth = 3 ,
182
186
zorder = 1000 ,
@@ -187,8 +191,12 @@ def main():
187
191
# By arbitrary choice, plot from the region(s) inside the separatrix, so
188
192
# highlight the outer edge.
189
193
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
+ ),
192
200
color = "b" ,
193
201
linewidth = 3 ,
194
202
zorder = 999 ,
@@ -197,10 +205,10 @@ def main():
197
205
if targets :
198
206
if ds_region .regions [r ].connection_lower_y is None :
199
207
plt .plot (
200
- ds_region ["Rxy_corners " ].isel (
208
+ ds_region ["Rxy_lower_left_corners " ].isel (
201
209
x = slice (xin , xout_corner_rad ), theta = ylow
202
210
),
203
- ds_region ["Zxy_corners " ].isel (
211
+ ds_region ["Zxy_lower_left_corners " ].isel (
204
212
x = slice (xin , xout_corner_rad ), theta = ylow
205
213
),
206
214
color = "k" ,
@@ -210,10 +218,10 @@ def main():
210
218
if ds_region .regions [r ].connection_upper_y is None :
211
219
yval = - 1 if yup_corner is None else yup_corner
212
220
plt .plot (
213
- ds_region ["Rxy_corners " ].isel (
221
+ ds_region ["Rxy_lower_left_corners " ].isel (
214
222
x = slice (xin , xout_corner_rad ), theta = yval
215
223
),
216
- ds_region ["Zxy_corners " ].isel (
224
+ ds_region ["Zxy_lower_left_corners " ].isel (
217
225
x = slice (xin , xout_corner_rad ), theta = yval
218
226
),
219
227
color = "k" ,
0 commit comments