mpl.py AttributeError for cases where data_source=None

When running the local example, mpl.py kicks out an error in the plot method when data_source is None and it tries to call data_source.typename