File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ Pcolor and Pcolormesh now have *dropdata * kwarg and rcParam
2
+ -----------------------------------------------------------
3
+
4
+ Previously `.axes.Axes.pcolor ` and `.axes.Axes.pcolormesh ` handled
5
+ the situation where *x * and *y * have the same (respective) size as *Z * by
6
+ dropping the last row and column of *Z *, and *x * and *y * are regarded as the
7
+ edges of the remaining rows and columns in *Z *. However, most users probably
8
+ really want *x * and *y * centered on the rows and columns of *Z *, so if
9
+ they specify *dropdata * as True, both methods will now linearly interpolate to
10
+ get the edges of the bins, and *x * and *y * will specify the (linear) center of
11
+ each gridcell in the pseudocolor plot.
12
+
13
+ Users can also specify this by the new :rc: `pcolor.dropdata ` in their
14
+ ``.matplotlibrc `` or via `.rcParams `.
15
+
16
+ See :doc: `pcolormesh </gallery/images_contours_and_fields/pcolormesh_levels >`
17
+ for an example.
You can’t perform that action at this time.
0 commit comments