9c7f926d6d70a994c3710ce570bb9807519ef090,lib/matplotlib/backends/backend_agg.py,FigureCanvasAgg,print_png,#FigureCanvasAgg#Any#,456
Before Change
"matplotlib version " + __version__ + ", http://matplotlib.org/")
metadata = OrderedDict({"Software": version_str})
user_metadata = kwargs.pop("metadata", None)
if user_metadata is not None:
metadata.update(user_metadata)
with cbook._setattr_cm(renderer, dpi=self.figure.dpi), \
cbook.open_file_cm(filename_or_obj, "wb") as fh:
_png.write_png(renderer._renderer, fh,
self.figure.dpi, metadata=metadata)
After Change
for k, v in metadata.items():
pnginfo.add_text(k, v)
pil_kwargs["pnginfo"] = pnginfo
pil_kwargs.setdefault("dpi", (self.figure.dpi, self.figure.dpi))
(Image.frombuffer("RGBA", size, buf, "raw", "RGBA", 0, 1)
.save(filename_or_obj, format="png", **pil_kwargs))
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: matplotlib/matplotlib
Commit Name: 9c7f926d6d70a994c3710ce570bb9807519ef090
Time: 2019-01-17
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_agg.py
Class Name: FigureCanvasAgg
Method Name: print_png
Project Name: mne-tools/mne-python
Commit Name: 8fa427b8a5496115d9587fa6eaa82349c42bff69
Time: 2019-10-05
Author: dan.mccloy@gmail.com
File Name: mne/preprocessing/ica.py
Class Name: ICA
Method Name: __init__
Project Name: pymc-devs/pymc3
Commit Name: 4633209328d1ad208c117bcb00ee1b5567981264
Time: 2015-12-26
Author: superbobry@gmail.com
File Name: pymc3/distributions/multivariate.py
Class Name: Dirichlet
Method Name: __init__