'Removes all axes from the plot'

def remove_all_axes(self, user_only=True):

    ids = []
    for (id, item) in self.axes.items():
        if ((not user_only) or (id >= UserAxis)):
            ids.append(id)
            self.scene().removeItem(item)
    for id in ids:
        del self.axes[id]
