New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_facecolors() reports incorrect colors #7312
Comments
This is a similar problem to one that has been found in mplot3d. The issue On Thu, Oct 20, 2016 at 9:00 AM, Nico Schlömer notifications@github.com
|
Mhm. Any other ways of retrieving the colors from the figure then? |
Why are you trying to do this? To expand on what @WeatherGod said, the reason that the colors are not set until late is to avoid extra computation as you can change the underlying data, norm and colormap of the |
This is for matplotlib2tikz, in particular nschloe/tikzplotlib#120. Perhaps there's an mpl function then that returns the color data from the figure? |
Actually this issue is solved as of 2.0b4 (I did check that I could reproduce it with 1.5.3). |
@anntzer Tried this with 2.0b4 and got
This is still one entry for 20 circles. Do you get the same? If yes, I guess a reopen is in order. |
Oh, I see. I saw that the color was not 0, 0, 1, .5 anymore and thought that was enough, sorry about the premature closing. |
You can (should?) call |
Indeed, when inserting [[ 0.9553 0.901065 0.118128 0.5 ]
[ 0.120092 0.600104 0.54253 0.5 ]
# ...
[ 0.945636 0.899815 0.112838 0.5 ]] which are the actual sizes after colormap matching. Better would be to get the values of the |
Ah. For that, you have |
Just what I was looking for. Thanks! |
MWE:
Output:
The text was updated successfully, but these errors were encountered: