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 6801185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:04:08+00:00 2026-05-26T19:04:08+00:00

I am learning to draw scatter using matplotlib. However, there is a bug and

  • 0

I am learning to draw scatter using matplotlib. However, there is a bug and it seems related with the color argument. Could anyone explain me the mistake? I googled but no answer found. Thanks in advance.

xActA = range(10)
yActA = np.random.randn(10)
xActQ = range(10)
yActQ = np.random.randn(10)
xRa = np.random.randn(10)
yRa = np.random.randn(10)

f1 = figure(1)
scatter(xActA, yActA, c ='b', marker = 'o', facecolors = True, label = 'Answers')
scatter(xActQ, yActQ,   c ='r', marker = 'o', facecolors = True, label = 'Questions')
xscale('log')
yscale('log')
title('User activity')
xlabel('Number of posts')
ylabel('Number of users')
legend()
f1.show()
f1.savefig('figure7_test.png')
  • 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-05-26T19:04:08+00:00Added an answer on May 26, 2026 at 7:04 pm

    You are giving facecolors a boolean.
    The parameter is defined as:

    facecolor or facecolors: matplotlib color arg or sequence of rgba tuples  
    

    Just make facecolor = None and it will work. You probably dont want this because you get the same color for the two plots. If you eliminate the parameter you will get automatic colors. If still you need custom colors the easiest way is to indicate them as matplotlib colors (‘yellow, ‘red’, etc)

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

Sidebar

Related Questions

I am learning PyQt and wonder if one can create custom/owner draw control like
I'm learning OpenGL and SDL and so far I've been able to properly draw
I'm learning to draw stuff in C# and I keep seeing recommendations to use
I am busy climbing the learning curve for OpenGL, using Delphi (pascal); I am
I have learned a Machine Learning course using Matlab as a prototyping tool. Since
I am in learning stage in android and my application requirement is to draw
I am learning Qt, and I want to draw lines randomly on a widget
I'm learning F#, and decided to try making simple XNA games for windows using
I've been learning OpenGL, and I decided to code a function to draw a
Hey there guys, I'm learning processing.js, and I've come across a mathematical problem, which

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.