Skip to content

cfl() doesn't clear gcf()._suptitle #2525

@brorfred

Description

@brorfred

Issue

suptitle doesn't replace the text if the figure is cleared with clf.

Work:

import pylab as plt
plt.figure()
plt.suptitle('KK')
plt.suptitle('HH')

Doesn't work:

import pylab as plt
plt.figure()
plt.suptitle('KK')
plt.clf()
plt.suptitle('KK')
plt.suptitle('HH')

Solution?

add self._suptitle = None to figure.clf()

Thanks!!!

/Bror Jonsson

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions