Mesh Plotting¶
As well as the interactive plotting functionality provided by GeoPlot,
Meshiphi also contains a built-in plotting class mesh_plotter that allows the user to produce static plots of a
given environmental mesh.
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.