Skip to content
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

figure.facecolor is not respected by backend_kivyagg #36

Open
janssen opened this issue Apr 7, 2016 · 0 comments
Open

figure.facecolor is not respected by backend_kivyagg #36

janssen opened this issue Apr 7, 2016 · 0 comments

Comments

@janssen
Copy link
Contributor

janssen commented Apr 7, 2016

Looks like another omission here. Facecolor is always white.

*** original/backend_kivyagg.py Thu Apr  7 11:26:32 2016
--- fixed/backend_kivyagg.py    Thu Apr  7 09:06:29 2016
***************
*** 196,202 ****
--- 196,205 ----
              buf_rgba = reg.to_string()
          texture = Texture.create(size=(w, h))
          texture.flip_vertical()
+         color = self.figure.get_facecolor()
          with self.canvas:
+             Color(*color)
+             Rectangle(pos=self.pos, size=(w, h))
              Color(1.0, 1.0, 1.0, 1.0)
              self.img_rect = Rectangle(texture=texture, pos=self.pos,
                                        size=(w, h))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant