MCPcopy Create free account
hub / github.com/cselab/aphros / PlotFieldGray

Function PlotFieldGray

deploy/scripts/aphros/plot.py:282–289  ·  view source on GitHub ↗
(ax, u, vmin=None, vmax=None)

Source from the content-addressed store, hash-verified

280# u: 2d numpy array
281# po: output path
282def 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
292def PlotField(ax, field, meta, alpha=1, vmin=None, vmax=None, cmap=None):

Callers 1

FigVfFunction · 0.70

Calls 1

GetImgFunction · 0.85

Tested by

no test coverage detected