Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98acc4f

Browse files
committed
API: add API change note
1 parent 3cdef69 commit 98acc4f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Round instead of truncating pixel number when using Agg
2+
```````````````````````````````````````````````````````
3+
4+
When rasterizing a figure the allowed figure sizes are effectively
5+
discretized by the finite dpi. Previously, we simply truncated when
6+
computing the number of pixels to use, now we use `numpy.round` which
7+
will avoid floating point issues when setting the size of the figure
8+
in inches to get a specific size of in pixels.
9+
10+
Additionally, the Agg based backends will adjust the size of the
11+
figure to match the actual size (given by the number of pixels and the
12+
dpi) during the draw process.

0 commit comments

Comments
 (0)