Skip to content

Commit f90819a

Browse files
tacaswelltimhoffm
andauthored
DOC: re-word whats new
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent bf44b0a commit f90819a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Figure now has ``draw_without_rendering`` method
22
------------------------------------------------
33

4-
Rarely, the user will want to trigger a draw without rendering to either the
5-
screen or a file. This is useful for determining the final position of artists
6-
on the figure that require a draw, like text artists, or resolve deferred
7-
computation like automatic data limits. This can be done by
8-
``fig.canvas.draw()``, which forces a full draw and rendering, however this has
9-
side effects, sometimes requires an open file, and is doing more work than is
10-
needed. The `.Figure.draw_without_rendering` method is provided to run the
11-
code in Matplotlib that updates values that are computed at draw-time and get
12-
accurate dimensions of the Artists more efficiently.
4+
Some aspects of a figure are only determined at draw-time, such as the exact
5+
position of text artists or deferred computation like automatic data limits.
6+
If you need these values, you can use ``figure.canvas.draw()`` to force a full
7+
draw. However, this has side effects, sometimes requires an open file, and is
8+
doing more work than is needed.
9+
10+
The new `.Figure.draw_without_rendering` method runs all the updates that
11+
``draw()`` does, but skips rendering the figure. It's thus more efficient if you
12+
need the updated values to configure further aspects of the figure.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy