SEU
SEU

Reputation: 1390

matplotlib: unknown property hold

I am using python/matplotlib and I am trying to hold the figure and plt.hold(True) seems to be deprecated.

The below command gives me "AttributeError: Unknown property hold"

ax.plot(x, y, z, hold=True, c='r', marker='.')

What's the alternative, or what am I doing wrong.

Upvotes: 0

Views: 831

Answers (1)

Scott Hunter
Scott Hunter

Reputation: 49848

Since hold was deprecated, plot behaves as if hold=True, so you can leave out specifying it explicitly.

Upvotes: 1

Related Questions