431bd8e37469c6e6e0e26fff6a6575982865904a,lib/matplotlib/figure.py,Figure,set_size_inches,#Figure#Any#Any#Any#,875
Before Change
// argument, so unpack them
if h is None:
w, h = w
size = w, h
if not np.isfinite(size).all() or (np.array(size) <= 0).any():
raise ValueError(f"figure size must be positive finite not {size}")
self.bbox_inches.p1 = w, h
After Change
dpi_ratio = getattr(canvas, "_dpi_ratio", 1)
manager = getattr(canvas, "manager", None)
if manager is not None:
manager.resize(*(size * self.dpi / dpi_ratio).astype(int))
self.stale = True
def get_size_inches(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: matplotlib/matplotlib
Commit Name: 431bd8e37469c6e6e0e26fff6a6575982865904a
Time: 2019-04-04
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/figure.py
Class Name: Figure
Method Name: set_size_inches
Project Name: nipy/dipy
Commit Name: 72edd97299bd73f2f4541de39aded37e543b5e22
Time: 2017-10-07
Author: garyfallidis@gmail.com
File Name: dipy/io/dpy.py
Class Name: Dpy
Method Name: write_tracks
Project Name: ilastik/ilastik
Commit Name: 8a7c79adfd36ce229b846669412c52e69ec2e674
Time: 2013-02-12
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: lazyflow/operators/classifierOperators.py
Class Name: OpSegmentation
Method Name: execute