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

Function PlotSquareField

deploy/scripts/aphros/plot.py:202–208  ·  view source on GitHub ↗
(ax, u, vmin=None, vmax=None, cmap="viridis")

Source from the content-addressed store, hash-verified

200
201
202def PlotSquareField(ax, u, vmin=None, vmax=None, cmap="viridis"):
203 ax.imshow(np.flipud(u),
204 vmin=vmin,
205 vmax=vmax,
206 extent=(0, 1, 0, 1),
207 interpolation='nearest',
208 cmap=cmap)
209
210def SaveFigure(fig, filename):
211 matplotlib.rcParams['svg.hashsalt'] = 123 # for reproducible svg

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected