-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
BboxConnectorPatch does not show facecolor #8059
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
Comments
Did this use to work with 1.5? |
I confirmed that this is a regression from 1.5 |
Something is setting the alpha on the face color to 0 when you go through This is....odd. |
I can confirm as well that this is a regression from 1.5. I also noted another thing. The trapezoid is shifted a pixel to the left: Is this just me using a wrong input for the boundaries and the difference is just in the line thickness or is this another small bug? If so, should I open another issue for this or should I just leave that here? |
Ah this makes sense now, the init methods of There just needs to be some logic in In the mean time, the work around is to do p.set_fill(True)
p.set_facecolor('b') |
Sorry clicked the wrong button, I did not mean to close this... |
Good to know. Thanks @tacaswell! |
And the pixel overflow is likely due to pixel snapping / anti-aliasing / edgewidth / dpi changes. |
Ok. Looking at a zoom of the original picture I posted, it seems that the trapezoid's borders are to the left of both axes but that might just be because the line thickness is exactly a pixel in that case. |
If anyone is interested in fixing this, #8075 (comment) has a proposed solution. |
* master: (107 commits) Remove incorrect warning in gca(). Re-add of changes for flake8 and __cmp__ updates Py3fy backend_pgf. Fix tk icon loading. Add upstream link for PYOSINPUTHOOK_REPETITIVE. Remove outdated Py_TPFLAGS_HAVE_NEWBUFFER flag. Remove C checks for old PY_*VERSION*. Remove C checks for PY3K macro. Remove back-compat defined for old NumPy. Rename #include guards without using reserved names. Py3fy font_manager. Enable enter/leave notify for tk bump warnings backend gtk3, qt5/qt4 and wx pass in coordinates when entering figure. figure_enter_event uses now LocationEvent instead of Event. This is now consistent with the documentation: https://matplotlib.org/users/event_handling.html Some py3fication for matplotlib/__init__, setupext. Move API change Add API changes Remove old nose testing code Filter out invalid value warnings in log scaling ...
Closed by #10686 |
Bug report
Bug summary
When adding a BboxConnectorPatch, the edges are displayed correctly but the facecolor is not shown. The face is empty.
Code for reproduction
Actual outcome
Expected outcome
I would expect the trapezoid to be filled in blue rather than to be empty.
Matplotlib version
Matplotlib version: 2.0.0
Python version: 3.4.2
Platform: Linux
Python was installed from the debian repositories and matplotlib was installed via pip.
The text was updated successfully, but these errors were encountered: