Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8804347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:34:49+00:00 2026-06-14T01:34:49+00:00

I am importing a plotting package in my file like this: import matplotlib.pyplot as

  • 0

I am importing a plotting package in my file like this:

import matplotlib.pyplot as plt

and am using this import later on in my code successfully(!)

fig = plt.figure(figsize=(16,10))

However, Eclipse is telling me this:
“Unused import: plt Found at: matplotlib.pyplot”

There might be a very simple solution for this, but I could not find it on the internet. I am new to Eclipse and PyDev, but there should be some way so that Eclipse recognized pyplot as plt?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:34:51+00:00Added an answer on June 14, 2026 at 1:34 am

    I feel embarrassed. The comments from Ignacio and Bakurio already pointed at the right direction. In fact, next to

    import matplotlib.pyplot as plt
    

    I am also importing

    from pylab import *
    

    These imports interfere with one another, since pylab is also importing pyplot. Remove the latter import results in no warning messages anymore in Eclipse. Next time I’ll paste the full source code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When importing the javax.servlet package in the java file, this package is found by
Importing zipped files in Mysql using CMD What is the right syntax to import
I have problem with importing jar file and running in Geany IDE . This
I tried importing a sql file using psql.exe -U postgres -d development d:\myprojects\ruby\HelloWorld\db\data.sql. I
I'm importing sales data from iTunes successfully using: FasterCSV.parse(uploaded_io, {:headers => true, :col_sep =>\t}).each
Im importing a csv to my sql server table using the following code SqlCommand
After importing content from a legacy website using the Feeds module, I'm left with
When importing or exporting Databases using Taps in heroku , is it necessary that
I'm importing a .CSV into an application with the following: if (($handle = fopen($file,
When importing a CSV file into Excel, it only strips the double-quotes from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.