I am trying to use suptitle
to print a title, and I want to occationally replace this title. Currently I am using:
self.ui.canvas1.figure.suptitle(title)
where figure is a matplotlib figure (canvas1 is an mplCanvas, but that is not relevant) and title is a python string.
Currently, this works, except for the fact that when I run this code again later, it just prints the new text on top of the old, resulting in a gargeled, unreadable title.
How do you replace the old suptitle
of a figure, instead of just printing over?
Thanks,
Tyler