Is there someway I can find out if the module matplotlib.pyplot is available to me while running a Python2.7 script. I have imported matplotlib successfully but I don't know if it includes matplotlib.pyplot. If not, how can I transfer it from my Python3 environment or download and import it to python2.7?
Try import matplotlib.pyplot
. If the statement succeeds, the library is available. That said, why use Python 2.7 which support ended 2 years ago?
This is a script written in the past by someone now lost and I am trying to debug it. I'm a user of the output and have no real programming skills (I'm working blind here). I tried to shift it over to Python3 but it was causing me more headaches.