nom-mon-ir
nom-mon-ir

Reputation: 3918

Error executing matplotlib.pyplot.subplots()

I have a script that creates png images from log data. It works fine on a production machine, but now spits errors on a new box while processing this line:

    fig, ax = plt.subplots(1,1, figsize=(20,14))


AttributeError: 'module' object has no attribute 'subplots'

I suspect issues in version differences in various modules. Any insights?

Upvotes: 6

Views: 12316

Answers (2)

Riekezoe
Riekezoe

Reputation: 11

See the comment by nom-mon-ir:

import matplotlib.pyplot as plt

instead of import matplotlib.pyplot as plt or using a new ipython version

Upvotes: 0

nom-mon-ir
nom-mon-ir

Reputation: 3918

Latest version of Ipython does not have this issue. Putting it as answer as suggested by @Jay Bosamiya to make this question closed.

Upvotes: 1

Related Questions