Aasma Gupta
Aasma Gupta
hey! if the issue is still open and available to work on id like to contibute.
Hey, I'd like to work on this issue. Can you assign me this?
@drammock I tested this as suggested: Plain Matplotlib plotting and saving (SVG/PDF) works fine. MNE plotting with evoked.plot() fails on fig.savefig() with: AttributeError: 'FigureCanvasSVG' object has no attribute 'copy_from_bbox' AttributeError:...
@larsoner Got it, thanks for clarifying. I initially only tested with a vanilla matplotlib plot, but I’ll now follow your advice — copy the MNE plotting code from evoked.plot(), and...
Hi @larsoner , After testing, I can confirm this issue is not caused by Matplotlib itself. Plain Matplotlib plots save as SVG and PDF without any errors. The error message:...
Hi @larsoner, I trimmed down from the MNE plotting code itself and ended up with this reproducible snippet (all directly from the codebase, no external dataset needed): ``` import mne,...
Hey @larsoner I followed all the steps mentioned and I came up with the smallest snippet of code possible that still produces the following error: > AttributeError: 'FigureCanvasSVG' object has...
I did further changes and this is what I have come up with: ``` import numpy as np import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt from matplotlib.widgets import SpanSelector def...
I was simplifying the code further and came up with a smaller snippet. Thanks for reporting this issue as a bug further. Yes, this was a pure matplotlib issue! Thanks...
Hi @guitargeek, I'm interested in working on this as a first contribution. Can I work on this codebase under your guidance?