(self, X, Y, Z, zdir, levels, had_data)
| 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, |
no test coverage detected