[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Erroroccur: NameError: name 'ax' is not defined

From: chandra shekhar maurya
Subject: Erroroccur: NameError: name 'ax' is not defined
Date: Sat, 26 Sep 2020 10:21:25 +0530

Dear all,
When i am running 11-ferrofluid-part1 by saving a python file in my system using mpirun -np 4 pypresso an error is coming.

Error is                                                                 
   quilibration done
Traceback (most recent call last):
  File "", line 160, in <module>
    part, = ax.plot([],[], 'o')
NameError: name 'ax' is not defined

The code is
   fig, ax = plt.subplots(figsize=(10,10))
part, = ax.plot([],[], 'o')

animation.FuncAnimation(fig, run, frames=loops, blit=True, interval=0, repeat=False, init_func=init)

Thanks & Regards
Chandra Shekhar Maurya
Mechanical Eng. Dept.
Indian Institute of Technology Patna
Contact No:9793572837

reply via email to

[Prev in Thread] Current Thread [Next in Thread]