matplotlib - removing text from a figure - a bug?

R

Raphael Mameghani

Does anyone know if the following error message is a matplotlib bug?
Is there an correct/alternative way to remove (or replace) text? Thank
you, Raphael

from matplotlib.figure import Figure
fig = Figure()
caption = fig.suptitle("test")
caption.remove()

Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
caption.remove()
File "C:\Programme\Python27\lib\site-packages\matplotlib\artist.py",
line 134, in remove
raise NotImplementedError('cannot remove artist')
NotImplementedError: cannot remove artist
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top