src.poem.plotUtils¶
Attributes¶
Functions¶
|
|
|
Plots a 2D function as a colormap. Returns parameters suitable to plotting in a pcolormesh call. |
|
|
|
|
|
Module Contents¶
- src.poem.plotUtils.plotFunction(fig, title, method, constraint, xscale, yscale, cscale=None, log=False, samps=500, xp=None, yp=None)[source]¶
Plots a 2D function as a colormap. Returns parameters suitable to plotting in a pcolormesh call. @ In, title, string, title name for figure @ In, method, function, method to call with x,y to get z result @ In, constraint, function, boolean method that determines acceptability @ In, xscale, tuple(float), low/hi value for x @ In, yscale, tuple(float), low/hi value for y @ In, cscale, tuple(float), optional, low and high values for the color map @ In, log, bool, optional, if False will not lognormalize the color map @ In, samps, int @ In, extData, pandas.Dataframe @ Out, X, np.array(np.array(float)), mesh grid of X values @ Out, Y, np.array(np.array(float)), mesh grid of Y values @ Out, Z, np.array(np.array(float)), mesh grid of Z (response) values