Skip to content

mesh_plotter

MeshPlotter(mesh_json, figscale=10)

Object for plotting mesh json files using matplotlib and cartopy.

plot_bool(value_name, colour)

Plots boolean values from the mesh json file. Args: value_name (str): The name of the boolean value to plot. colour (str): The colour to plot the value in.

plot_cmap(value_name, colourmap)

Plots colourmap values from the mesh json file. Args: value_name (str): The name of the colourmap value to plot. colourmap (str): The colourmap to plot the value in.

save(filename)

Saves the plot to a file. Args: filename (str): The name of the file to save the plot to.