Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cdef69 commit 98acc4fCopy full SHA for 98acc4f
doc/api/api_changes/2017-03-11_TAC.rst
@@ -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