2-D histogram plotting of raw survey data, using a function similar to:

def plot_hist(
        data=None,
        bins=25,
        dataset_title=None,
        plot_title=None,
        savefig=False,
        ):
    if type(plot_title) == type(None):
        plot_title = "{} bins = \'{}\'".format(data.name, bins)
    if type(dataset_title) == type(""):
        plot_title = dataset_title + " " + plot_title
    series = pd.Series(data.values)
    print(min(series))
    if bins in ['auto', 'fd', 'doane', 'scott', 'rice', 'sturges', 'sqrt']:
        print(bins, " ",)
        count, bins = np.histogram(series, bins=bins)
        print(len(bins))
    ax = series.plot.hist(bins=bins,alpha=0.7)
    ax.set_title(plot_title)
    return ax

0_1568216892033_Mowing Survey - 2 x 2 NaI, Phone GPS 20190709_1642 map resample.png