|
12 | 12 | # name: python3 |
13 | 13 | # --- |
14 | 14 |
|
15 | | -# %% [raw] |
| 15 | +# %% [raw] raw_mimetype="text/restructuredtext" |
16 | 16 | # .. _pandas: https://pandas.pydata.org |
17 | 17 | # |
18 | 18 | # .. _xarray: http://xarray.pydata.org/en/stable/ |
|
30 | 30 | # `~proplot.axes.PlotAxes.contour`, `~proplot.axes.PlotAxes.pcolor`, |
31 | 31 | # and `~proplot.axes.PlotAxes.quiver`. |
32 | 32 |
|
33 | | -# %% [raw] |
| 33 | +# %% [raw] raw_mimetype="text/restructuredtext" |
34 | 34 | # .. _ug_2dstd: |
35 | 35 | # |
36 | 36 | # Standardized arguments |
|
91 | 91 | axs[2].contourf(x, y, data) |
92 | 92 | axs[3].contourf(xedges, yedges, data) |
93 | 93 |
|
94 | | -# %% [raw] |
| 94 | +# %% [raw] raw_mimetype="text/restructuredtext" |
95 | 95 | # .. _ug_2dintegration: |
96 | 96 | # |
97 | 97 | # Pandas and xarray integration |
|
174 | 174 | ax.contourf(df, cmap='YlOrRd', colorbar='r', lw=0.7, ec='k') |
175 | 175 | ax.format(xtickminor=False, yreverse=True) |
176 | 176 |
|
177 | | -# %% [raw] |
| 177 | +# %% [raw] raw_mimetype="text/restructuredtext" |
178 | 178 | # .. _ug_apply_cmap: |
179 | 179 | # |
180 | 180 | # Colormaps and normalizers |
|
244 | 244 | fig.format(suptitle='On-the-fly colormap normalizers') |
245 | 245 | pplt.rc.reset() |
246 | 246 |
|
247 | | -# %% [raw] |
| 247 | +# %% [raw] raw_mimetype="text/restructuredtext" |
248 | 248 | # .. _ug_discrete: |
249 | 249 | # |
250 | 250 | # Distinct colormap levels |
|
340 | 340 | ) |
341 | 341 | ax.format(title=f'extend={extend!r}') |
342 | 342 |
|
343 | | -# %% [raw] |
| 343 | +# %% [raw] raw_mimetype="text/restructuredtext" |
344 | 344 | # .. _ug_norm: |
345 | 345 | # |
346 | 346 | # Special colormap normalizers |
|
425 | 425 | ax.format(title=f'{mode.title()}-skewed + {fair} scaling') |
426 | 426 | i += 1 |
427 | 427 |
|
428 | | -# %% [raw] |
| 428 | +# %% [raw] raw_mimetype="text/restructuredtext" |
429 | 429 | # .. _ug_labels: |
430 | 430 | # |
431 | 431 | # Contour and gridbox labels |
|
484 | 484 | ) |
485 | 485 | ax.format(title='Line contours with labels') |
486 | 486 |
|
487 | | -# %% [raw] |
| 487 | +# %% [raw] raw_mimetype="text/restructuredtext" |
488 | 488 | # .. _ug_heatmap: |
489 | 489 | # |
490 | 490 | # Heatmap plots |
|
0 commit comments