MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _auto_scale_contourf

Method _auto_scale_contourf

lib/mpl_toolkits/mplot3d/axes3d.py:2971–2979  ·  view source on GitHub ↗
(self, X, Y, Z, zdir, levels, had_data)

Source from the content-addressed store, hash-verified

2969 return cset
2970
2971 def _auto_scale_contourf(self, X, Y, Z, zdir, levels, had_data):
2972 # Autoscale in the zdir based on the levels added, which are
2973 # different from data range if any contour extensions are present
2974 dim_vals = {'x': X, 'y': Y, 'z': Z, zdir: levels}
2975 # Input data and levels have different sizes, but auto_scale_xyz
2976 # expected same-size input, so manually take min/max limits
2977 limits = [(np.nanmin(dim_vals[dim]), np.nanmax(dim_vals[dim]))
2978 for dim in ['x', 'y', 'z']]
2979 self.auto_scale_xyz(*limits, had_data)
2980
2981 @_preprocess_data()
2982 def contourf(self, X, Y, Z, *args,

Callers 2

contourfMethod · 0.95
tricontourfMethod · 0.95

Calls 1

auto_scale_xyzMethod · 0.95

Tested by

no test coverage detected