0

Setting the color or a Circle patch directly is not supported through class methods as we might assume;

circle.set_color('b') 

^^ this is incorrect.

1
  • Because you need to set the facecolor or edgecolor. Commented May 27, 2014 at 16:24

1 Answer 1

7

Patches have two distinct colors, facecolor and edgecolor, which you can set by, respectively c.set_facecolor(...) (or set_fc) and c.set_edgecolor(...)(or set_ec).

The setp machinery is just a convince method for looking up these functions. setp(artist, key=val) does, more-or-less getattr(artist, "set_%s" % key)(val).

Sign up to request clarification or add additional context in comments.

1 Comment

Would you happen to have additional information for this problem..... stackoverflow.com/q/23915859/1602222

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.