8000 Add whats new · matplotlib/matplotlib@1f02dba · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f02dba

Browse files
committed
Add whats new
1 parent 91f5b44 commit 1f02dba

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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.

0 commit comments

Comments
 (0)
0