Function
PlotFieldGray
(ax, u, vmin=None, vmax=None)
Source from the content-addressed store, hash-verified
| 280 | # u: 2d numpy array |
| 281 | # po: output path |
| 282 | def PlotFieldGray(ax, u, vmin=None, vmax=None): |
| 283 | cmap = LinearSegmentedColormap.from_list('mycmap', ['#c8c5bd', '#787672']) |
| 284 | ax.imshow(GetImg(u), |
| 285 | extent=(0, 1, 0, 1), |
| 286 | interpolation='nearest', |
| 287 | vmin=vmin, |
| 288 | vmax=vmax, |
| 289 | cmap=cmap) |
| 290 | |
| 291 | |
| 292 | def PlotField(ax, field, meta, alpha=1, vmin=None, vmax=None, cmap=None): |
Tested by
no test coverage detected