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

  • SEARCH
  • Home
  • 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 6772667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:34:33+00:00 2026-05-26T15:34:33+00:00

In the following minimal example, I create 1-point scatter plot and later change color

  • 0

In the following minimal example, I create 1-point scatter plot and later change color of points in loop using Collection.set_color. If I set the color(s) the first time scatter is called, set_color will not change its face color (only edge color), whereas if I don’t specify it when the scatterplot is created, face color will change according to set_color.

from pylab import *
from numpy import *
coll=scatter([0],[0],s=500,c=[.1]) # omit c=[.1] here to have face color changing later
ion(); show()
for a in linspace(.1,.9):
    coll.set_color(coll.get_cmap()(a))
    draw()

Is that a bug, or am I missing something in the documentation?

  • 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-26T15:34:33+00:00Added an answer on May 26, 2026 at 3:34 pm

    I would say it is a bug/limitation of that matplotlib version.
    I tried the code with:

    matplotlib 1.0.1 (ActivePython 2.6.7, win7 64bit)           --> reproduced the behavior
    matplotlib 1.1.0.dev (ActivePython 3.2.2, winXP, 32bit)     --> works as expected
    

    There is also a comment from Avaris saying he gets expected behavior with mpl 1.1.0 (win7, 32bit)

    So I recommend you to upgrade your installation if this is possible

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

Sidebar

Related Questions

Consider the following minimal example: #include <iostream> using namespace std; class myostream : public
Take the following minimal example: import abc class FooClass(object): __metaclass__ = abc.ABCMeta @abc.abstractmethod def
Consider the minimal example below. It works perfectly until I uncomment the following lines:
I have the following minimal example code in R: data.time = c(1, 4, 8,
I am trying to comprehend Perl following the way describe in the book Minimal
This is a minimal example taken from the Reflection-0.5. {-# LANGUAGE Rank2Types, MultiParamTypeClasses, FunctionalDependencies,
I’m using Heather Solomon’s minimal publishing master page, I’ve got a simple feature with
I have following JS code (stripped to minimal size where problem still exists) <html>
What is the most minimal example of deploying a war to multiple tomcat servers
What is the pattern and/or how would you change the following code so that

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.