def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def __draw_ellipses(figure, visualizer, clusters, covariances, means):
        ax = figure.get_axes()[0]