plopm.utils.write module

Utiliy functions to write the PNGs figures.

plopm.utils.write.find_min_max(dic)

Method to find the min and max for the colorbars

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

plopm.utils.write.handle_axis(dic, name, n, t, k, n_s, unit)

Method to handle the figure axis

Args:

dic (dict): Global dictionary

name (str): Property to plot

Returns:

dic (dict): Modified global dictionary

plopm.utils.write.handle_well_or_grid_or_fault(dic, imag, divider, vect, n, var)

Method to create the 2d maps using pcolormesh

Args:

dic (dict): Global dictionary

imag (class): Actual plot object

divider (class): Object for the color bar axis

vect (array): Floats for the labels in the color bar

Returns:

plt (class): Modified plotting object

plopm.utils.write.make_maps(dic)

Method to create the 2d maps using pcolormesh

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

plopm.utils.write.make_summary(dic)

Plot the summary variable

Args:

cmdargs (dict): Command arguments

Returns:

None

plopm.utils.write.mapit(t, dic, n)

Method to coordinate the gebneration of axis

Args:

t (int): Number of subplot

dic (dict): Global dictionary

n (int): Number of variable

Returns:

dic (dict): Modified global dictionary

plopm.utils.write.mapits(dic, t, n, k)

Generate the spatial maps

Args:

dic (dict): Global dictionary

t (int): Number of restart

n (int): Number of variable

k (int): Number of subplot

Returns:

dic (dict): Modified global dictionary

plopm.utils.write.prepare_maps(dic, n)

Get the spatial coordinates

Args:

dic (dict): Global dictionary

n (int): Number of deck

Returns:

dic (dict): Modified global dictionary