add_field_from_data#

ModelPlotter.add_field_from_data(coordinates, fields_data, log_scale: bool = True, coordinate_units: str = 'meter', opacity: int = 1, color_map: str = 'jet', label_name: str = 'Field', surface_mapping_tolerance: float = 0.001, show_edges: bool = True) None#

Add field data to the scenario.

Parameters:
coordinateslist of list

List of list [x,y,z] coordinates.

fields_datalist

List of list Fields Value.

log_scalebool

Either if the field has to be plotted log or not.

coordinate_unitsstr

Fields coordinates units.

opacityfloat

Value between 0 to 1 of opacity.

color_mapstr

Color map of field plot. Default rainbow.

label_namestr, optional

Name of the field.

surface_mapping_tolerancefloat, optional

Delauny tolerance value used for interpolating points.

Returns:
bool