2

It seems to me figure() is the higher level controller according to the user manual http://matplotlib.org/api/figure_api.html

But any guru further enlighten the differences between figure() and plot()?

1 Answer 1

3
from matplotlib import pyplot as plt

This:

plt.plot(range(10))

is just a shortcut for:

fig = plt.figure()
sub = fig.add_subplot(111)
sub.plot(range(10))

The latter gives your more fine-grained control over many things.

Sign up to request clarification or add additional context in comments.

1 Comment

@Chubaka Does this answer your question?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.