Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Milestone
Description
Bug summary
When running a test doc build for 3.7.0rc1, I build the PDF, which runs everything with the PDF backend. So either the PDF backend does not correctly mark itself as not supporting blitting, or the blitting is not turned off correctly in the button widgets.
Code for reproduction
make-Cdoclatexpdf
Actual outcome
/home/elliott/code/matplotlib-3.7.x/doc/users/next_whats_new/widget_button_styling.rst:8: WARNING: Exception occurred in plotting widget_button_styling-1 from /home/elliott/code/matplotlib-3.7.x/doc/users/next_whats_new/widget_button_styling.rst:Traceback (most recent call last): File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/sphinxext/plot_directive.py", line615, inrender_figures figman.canvas.figure.savefig(img.filename(fmt),dpi=dpi) File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/figure.py", line3328, insavefigself.canvas.print_figure(fname,**kwargs) File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/backend_bases.py", line2362, inprint_figure result= print_method(^^^^^^^^^^^^^ File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/backend_bases.py", line2228, in<lambda> print_method= functools.wraps(meth)(lambda*args,**kwargs: meth(^^^^^ File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/backends/backend_pdf.py", line2815, inprint_pdfself.figure.draw(renderer) File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/artist.py", line95, indraw_wrapper result= draw(artist, renderer,*args,**kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/artist.py", line72, indraw_wrapperreturn draw(artist, renderer)^^^^^^^^^^^^^^^^^^^^^^ File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/figure.py", line3135, indraw DrawEvent("draw_event",self.canvas, renderer)._process() File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/backend_bases.py", line1259, in_processself.canvas.callbacks.process(self.name,self) File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/cbook/__init__.py", line309, inprocessself.exception_handler(exc) File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/cbook/__init__.py", line96, in_exception_printerraise exc File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/cbook/__init__.py", line304, inprocess func(*args,**kwargs) File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/widgets.py", line1706, in_clearself.ax.draw_artist(self._buttons) File"/home/elliott/code/matplotlib-3.7.x/lib/matplotlib/axes/_base.py", line3076, indraw_artist a.draw(self.figure.canvas.get_renderer())^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AttributeError:'FigureCanvasPdf' object has no attribute 'get_renderer'
Expected outcome
Docs build without warning.
Additional information
No response
Operating system
Fedora 37
Matplotlib Version
v3.7.x
Matplotlib Backend
Python version
3.11.1
Jupyter version
No response
Installation
git checkout