5cc17e87542da0ec1b41d3c159caeb22ac493cd2,GPy/plotting/matplot_dep/visualize.py,mocap_data_show,finalize_axes,#mocap_data_show#,472
Before Change
def finalize_axes(self):
self.axes.set_xlim(self.x_lim)
self.axes.set_ylim(self.y_lim)
self.axes.set_zlim(self.z_lim)
self.axes.auto_scale_xyz([-1., 1.], [-1., 1.], [-1., 1.])
// self.axes.set_aspect("equal")
After Change
// self.axes.set_zlim(self.z_lim)
// self.axes.auto_scale_xyz([-1., 1.], [-1., 1.], [-1., 1.])
extents = np.array([getattr(self.axes, "get_{}lim".format(dim))() for dim in "xyz"])
sz = extents[:,1] - extents[:,0]
centers = np.mean(extents, axis=1)
maxsize = max(abs(sz))
r = maxsize/2
for ctr, dim in zip(centers, "xyz"):
getattr(self.axes, "set_{}lim".format(dim))(ctr - r, ctr + r)
// self.axes.set_aspect("equal")
// self.axes.autoscale(enable=False)
def finalize_axes_modify(self):
self.axes.set_xlim(self.x_lim)
self.axes.set_ylim(self.y_lim)
self.axes.set_zlim(self.z_lim)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: SheffieldML/GPy
Commit Name: 5cc17e87542da0ec1b41d3c159caeb22ac493cd2
Time: 2015-06-28
Author: z.dai@sheffield.ac.uk
File Name: GPy/plotting/matplot_dep/visualize.py
Class Name: mocap_data_show
Method Name: finalize_axes
Project Name: arviz-devs/arviz
Commit Name: aee37a2471694eba60816541671c1f892ce2feeb
Time: 2020-08-27
Author: agustinaarroyuelo@gmail.com
File Name: arviz/plots/backends/matplotlib/traceplot.py
Class Name:
Method Name: plot_trace
Project Name: mne-tools/mne-python
Commit Name: fa91217b895957c4106d6175e27d72a48f4f05dc
Time: 2019-01-12
Author: jnu@iki.fi
File Name: mne/viz/topo.py
Class Name:
Method Name: _plot_evoked_topo
Project Name: arviz-devs/arviz
Commit Name: 1b2ecdd33090c5a9c726d6d3b3c365d5db56f272
Time: 2020-04-05
Author: oriol.abril.pla@gmail.com
File Name: arviz/plots/backends/matplotlib/pairplot.py
Class Name:
Method Name: plot_pair