| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2030,7 +2030,14 @@ def release_mouse(self, ax): | |||
| 2030 | 2030 | self.mouse_grabber = None | |
| 2031 | 2031 | ||
| 2032 | 2032 | def draw(self, *args, **kwargs): | |
| 2033 | - """Render the `.Figure`.""" | ||
| 2033 | + """ | ||
| 2034 | + Render the `.Figure`. | ||
| 2035 | + | ||
| 2036 | + It is important that this method actually walk the artist tree | ||
| 2037 | + even if not output is produced because this will trigger | ||
| 2038 | + deferred work (like computing limits auto-limits and tick | ||
| 2039 | + values) that users may want access to before saving to disk. | ||
| 2040 | + """ | ||
| 2034 | 2041 | ||
| 2035 | 2042 | def draw_idle(self, *args, **kwargs): | |
| 2036 | 2043 | """ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2734,6 +2734,7 @@ def draw(self): | |||
| 2734 | 2734 | _no_output_draw(self.figure) | |
| 2735 | 2735 | return super().draw() | |
| 2736 | 2736 | ||
| 2737 | + | ||
| 2737 | 2738 | FigureManagerPdf = FigureManagerBase | |
| 2738 | 2739 | ||
| 2739 | 2740 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1367,6 +1367,7 @@ def draw(self): | |||
| 1367 | 1367 | _no_output_draw(self.figure) | |
| 1368 | 1368 | return super().draw() | |
| 1369 | 1369 | ||
| 1370 | + | ||
| 1370 | 1371 | FigureManagerSVG = FigureManagerBase | |
| 1371 | 1372 | ||
| 1372 | 1373 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -191,7 +191,14 @@ class methods button_press_event, button_release_event, | |||
| 191 | 191 | """ | |
| 192 | 192 | ||
| 193 | 193 | def draw(self): | |
| 194 | - """Draw the figure using the renderer.""" | ||
| 194 | + """ | ||
| 195 | + Draw the figure using the renderer. | ||
| 196 | + | ||
| 197 | + It is important that this method actually walk the artist tree | ||
| 198 | + even if not output is produced because this will trigger | ||
| 199 | + deferred work (like computing limits auto-limits and tick | ||
| 200 | + values) that users may want access to before saving to disk. | ||
| 201 | + """ | ||
| 195 | 202 | renderer = RendererTemplate(self.figure.dpi) | |
| 196 | 203 | self.figure.draw(renderer) | |
| 197 | 204 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments