def plot_trend_map(vals, title, cblabel, filename="tmp.png", **kwargs): '''Takes dates and values (e.g. bc or oc values) in a dict, performs trend analysis on each unique k/v pair (matching it with a lon/lat from the database) and plots the results on a pretty little map.''' data = {k: relative_trend(v) for k,v in vals.iteritems()} data = {k: (val, _markersize(err)) for k,(val, err) in data.iteritems()} h.imprv_plot(data, title, cblabel, filename, **kwargs)
def plot(data, title, filename, **kwargs): h.imprv_plot(data, title, "ug/m^3",filename=filename, vmin=0, **kwargs)