af6f52cd3cee8ade0c4a78d6ef254279c0af111a,scipy/spatial/_plotutils.py,,_adjust_bounds,#Any#Any#,25

Before Change


    ptp_bound = points.ptp(axis=0)
    ax.set_xlim(points[:,0].min() - 0.1*ptp_bound[0],
                points[:,0].max() + 0.1*ptp_bound[0])
    ax.set_ylim(points[:,1].min() - 0.1*ptp_bound[1],
                points[:,1].max() + 0.1*ptp_bound[1])


@_held_figure
def delaunay_plot_2d(tri, ax=None):

After Change



def _adjust_bounds(ax, points):
    margin = 0.1 * points.ptp(axis=0)
    xy_min = points.min(axis=0) - margin 
    xy_max = points.max(axis=0) + margin 
    ax.set_xlim(xy_min[0], xy_max[0])
    ax.set_ylim(xy_min[1], xy_max[1])


@_held_figure
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: af6f52cd3cee8ade0c4a78d6ef254279c0af111a
Time: 2017-01-31
Author: perimosocordiae@gmail.com
File Name: scipy/spatial/_plotutils.py
Class Name:
Method Name: _adjust_bounds


Project Name: librosa/librosa
Commit Name: 8e4250ba8221d956c282067d11e2df8a4c3299ab
Time: 2015-01-28
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: __axis_log


Project Name: biotite-dev/biotite
Commit Name: c9c407951adfd5c101a1875e2761db98eb1f8fa8
Time: 2020-08-18
Author: patrick.kunzm@gmail.com
File Name: doc/examples/scripts/sequence/quality_control.py
Class Name:
Method Name: