ocssw
V2022
|
MDN.plot_utils Namespace Reference
Functions | |
def | add_identity (ax, *line_args, **line_kwargs) |
def | add_stats_box (ax, y_true, y_est, metrics=[mdsa, sspb, slope], bottom_right=False, bottom=False, right=False, x=0.025, y=0.97, fontsize=16, label=None) |
def | draw_map (*lonlats, scale=0.2, world=False, us=True, eu=False, labels=[], ax=None, gray=False, res='i', **scatter_kws) |
def | default_dd (d={}, f=lambda k:k) |
def | plot_scatter (y_test, benchmarks, bands, labels, products, sensor, title=None, methods=None, n_col=3, img_outlbl='') |
Function Documentation
◆ add_identity()
def MDN.plot_utils.add_identity | ( | ax, | |
* | line_args, | ||
** | line_kwargs | ||
) |
Add 1 to 1 diagonal line to a plot. https://stackoverflow.com/questions/22104256/does-matplotlib-have-a-function-for-drawing-diagonal-lines-in-axis-coordinates Usage: add_identity(plt.gca(), color='k', ls='--')
Definition at line 9 of file plot_utils.py.
◆ add_stats_box()
def MDN.plot_utils.add_stats_box | ( | ax, | |
y_true, | |||
y_est, | |||
metrics = [mdsa, sspb, slope] , |
|||
bottom_right = False , |
|||
bottom = False , |
|||
right = False , |
|||
x = 0.025 , |
|||
y = 0.97 , |
|||
fontsize = 16 , |
|||
label = None |
|||
) |
Add a text box containing a variety of performance statistics, to the given axis
Definition at line 80 of file plot_utils.py.
◆ default_dd()
Helper function to allow defaultdicts whose default value returned is the queried key
Definition at line 269 of file plot_utils.py.
◆ draw_map()
def MDN.plot_utils.draw_map | ( | * | lonlats, |
scale = 0.2 , |
|||
world = False , |
|||
us = True , |
|||
eu = False , |
|||
labels = [] , |
|||
ax = None , |
|||
gray = False , |
|||
res = 'i' , |
|||
** | scatter_kws | ||
) |
Helper function to plot locations on a global map
Definition at line 128 of file plot_utils.py.
◆ plot_scatter()
def MDN.plot_utils.plot_scatter | ( | y_test, | |
benchmarks, | |||
bands, | |||
labels, | |||
products, | |||
sensor, | |||
title = None , |
|||
methods = None , |
|||
n_col = 3 , |
|||
img_outlbl = '' |
|||
) |
Definition at line 283 of file plot_utils.py.