fixes a longstanding bug introduced 3 years ago, in #99. This is mostly an issue when running the unittests - the mpl canvas doesn't get cleared in some cases, which causes all kinds of downstream errors when trying to do things like set axis labels, etc.
fixes a longstanding bug introduced 3 years ago, in #99. This is mostly an issue when running the unittests - the mpl canvas doesn't get cleared in some cases, which causes all kinds of downstream errors when trying to do things like set axis labels, etc.