Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is Matplotlib.pyplot Loaded
#1
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?
Reply
#2
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?
Reply
#3
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python 3.10 not happy with Pandas and PyPlot? Danno 1 1,568 Feb-26-2022, 05:35 AM
Last Post: Danno
  Package cannot be loaded into PBS queue file emersonpl 1 1,822 Sep-09-2021, 08:06 PM
Last Post: emersonpl
  PyQt5 MySQL Drivers Not Loaded AdeS 7 5,057 Aug-06-2021, 08:34 AM
Last Post: AdeS
  Matplotlib: How do I convert Dates from Excel to use in Matplotlib JaneTan 1 3,220 Mar-11-2021, 10:52 AM
Last Post: buran
  MacOS BigSur Python3 - dyld: Library not loaded: trillionanswers 1 4,195 Mar-02-2021, 11:00 PM
Last Post: nilamo
  matplotlib.pyplot.show Alienspecimen 2 2,232 Feb-27-2021, 02:32 AM
Last Post: snippsat
  Why is mpl_toolkits loaded? Gribouillis 1 1,595 Jan-30-2021, 08:39 PM
Last Post: Serafim
  Pyplot graph size TammyP 1 1,756 Jan-26-2021, 02:15 PM
Last Post: TammyP
  Understanding The Arguments for matplotlib.pyplot.plot JoeDainton123 0 1,922 Aug-19-2020, 01:19 AM
Last Post: JoeDainton123
  start interactive pyhton shell with pre-loaded custom modules Viktor 2 2,189 Apr-09-2020, 08:25 AM
Last Post: Viktor

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020