|
174 | 174 | "cell_type": "markdown", |
175 | 175 | "metadata": {}, |
176 | 176 | "source": [ |
177 | | - "Note that this doesn't have a lot of contextual information. We can add annotations for the coastlines just as we would with matplotlib. Before the annotations are set, we need to call `p._setup_plots` to make the axes available for annotation. " |
| 177 | + "Note that this doesn't have a lot of contextual information. We can add annotations for the coastlines just as we would with matplotlib. Before the annotations are set, we need to call `p.render` to make the axes available for annotation. " |
178 | 178 | ] |
179 | 179 | }, |
180 | 180 | { |
|
184 | 184 | "outputs": [], |
185 | 185 | "source": [ |
186 | 186 | "p = yt.SlicePlot(ds, \"altitude\", \"AIRDENS\")\n", |
187 | | - "p._setup_plots()\n", |
| 187 | + "p.render()\n", |
188 | 188 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
189 | 189 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
190 | 190 | "p.show()" |
|
212 | 212 | "source": [ |
213 | 213 | "p = yt.SlicePlot(ds, \"altitude\", \"AIRDENS\")\n", |
214 | 214 | "p.set_mpl_projection(\"Robinson\")\n", |
215 | | - "p._setup_plots()\n", |
| 215 | + "p.render()\n", |
216 | 216 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
217 | 217 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
218 | 218 | "p.show()" |
|
233 | 233 | "source": [ |
234 | 234 | "p = yt.SlicePlot(ds, \"altitude\", \"AIRDENS\")\n", |
235 | 235 | "p.set_mpl_projection((\"Robinson\", (37.5,)))\n", |
236 | | - "p._setup_plots()\n", |
| 236 | + "p.render()\n", |
237 | 237 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
238 | 238 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
239 | 239 | "p.show()" |
|
253 | 253 | "outputs": [], |
254 | 254 | "source": [ |
255 | 255 | "p.set_mpl_projection(\"Orthographic\")\n", |
256 | | - "p._setup_plots()\n", |
| 256 | + "p.render()\n", |
257 | 257 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
258 | 258 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
259 | 259 | "p.show()" |
|
289 | 289 | "outputs": [], |
290 | 290 | "source": [ |
291 | 291 | "p.set_mpl_projection((\"Orthographic\", (90, 45)))\n", |
292 | | - "p._setup_plots()\n", |
| 292 | + "p.render()\n", |
293 | 293 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
294 | 294 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
295 | 295 | "p.show()" |
|
311 | 311 | "p.set_mpl_projection(\n", |
312 | 312 | " (\"Orthographic\", (), {\"central_latitude\": -45, \"central_longitude\": 275})\n", |
313 | 313 | ")\n", |
314 | | - "p._setup_plots()\n", |
| 314 | + "p.render()\n", |
315 | 315 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
316 | 316 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
317 | 317 | "p.show()" |
|
338 | 338 | "outputs": [], |
339 | 339 | "source": [ |
340 | 340 | "p.set_mpl_projection((\"RotatedPole\", (177.5, 37.5)))\n", |
341 | | - "p._setup_plots()\n", |
| 341 | + "p.redner()\n", |
342 | 342 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
343 | 343 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
344 | 344 | "p.show()" |
|
353 | 353 | "p.set_mpl_projection(\n", |
354 | 354 | " (\"RotatedPole\", (), {\"pole_latitude\": 37.5, \"pole_longitude\": 177.5})\n", |
355 | 355 | ")\n", |
356 | | - "p._setup_plots()\n", |
| 356 | + "p.render()\n", |
357 | 357 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
358 | 358 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
359 | 359 | "p.show()" |
|
366 | 366 | "outputs": [], |
367 | 367 | "source": [ |
368 | 368 | "p.set_mpl_projection(\"NorthPolarStereo\")\n", |
369 | | - "p._setup_plots()\n", |
| 369 | + "p.render()\n", |
370 | 370 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
371 | 371 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
372 | 372 | "p.show()" |
|
379 | 379 | "outputs": [], |
380 | 380 | "source": [ |
381 | 381 | "p.set_mpl_projection(\"AlbersEqualArea\")\n", |
382 | | - "p._setup_plots()\n", |
| 382 | + "p.render()\n", |
383 | 383 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
384 | 384 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
385 | 385 | "p.show()" |
|
392 | 392 | "outputs": [], |
393 | 393 | "source": [ |
394 | 394 | "p.set_mpl_projection(\"InterruptedGoodeHomolosine\")\n", |
395 | | - "p._setup_plots()\n", |
| 395 | + "p.render()\n", |
396 | 396 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
397 | 397 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
398 | 398 | "p.show()" |
|
405 | 405 | "outputs": [], |
406 | 406 | "source": [ |
407 | 407 | "p.set_mpl_projection(\"Robinson\")\n", |
408 | | - "p._setup_plots()\n", |
| 408 | + "p.render()\n", |
409 | 409 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
410 | 410 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
411 | 411 | "p.show()" |
|
418 | 418 | "outputs": [], |
419 | 419 | "source": [ |
420 | 420 | "p.set_mpl_projection(\"Gnomonic\")\n", |
421 | | - "p._setup_plots()\n", |
| 421 | + "p.render()\n", |
422 | 422 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
423 | 423 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
424 | 424 | "p.show()" |
|
465 | 465 | "outputs": [], |
466 | 466 | "source": [ |
467 | 467 | "p.set_mpl_projection(\"Robinson\")\n", |
468 | | - "p._setup_plots()\n", |
| 468 | + "p.render()\n", |
469 | 469 | "p.plots[\"AIRDENS\"].axes.set_global()\n", |
470 | 470 | "p.plots[\"AIRDENS\"].axes.coastlines()\n", |
471 | 471 | "p.show()" |
|
0 commit comments