Initial configuration commit
This commit is contained in:
commit
31c8abea59
266 changed files with 780274 additions and 0 deletions
27
typings/matplotlib/_tight_bbox.pyi
Normal file
27
typings/matplotlib/_tight_bbox.pyi
Normal file
|
@ -0,0 +1,27 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
"""
|
||||
Helper module for the *bbox_inches* parameter in `.Figure.savefig`.
|
||||
"""
|
||||
def adjust_bbox(fig, bbox_inches, fixed_dpi=...): # -> () -> None:
|
||||
"""
|
||||
Temporarily adjust the figure so that only the specified area
|
||||
(bbox_inches) is saved.
|
||||
|
||||
It modifies fig.bbox, fig.bbox_inches,
|
||||
fig.transFigure._boxout, and fig.patch. While the figure size
|
||||
changes, the scale of the original figure is conserved. A
|
||||
function which restores the original values are returned.
|
||||
"""
|
||||
...
|
||||
|
||||
def process_figure_for_rasterizing(fig, bbox_inches_restore, fixed_dpi=...): # -> tuple[Unknown, () -> None]:
|
||||
"""
|
||||
A function that needs to be called when figure dpi changes during the
|
||||
drawing (e.g., rasterizing). It recovers the bbox and re-adjust it with
|
||||
the new dpi.
|
||||
"""
|
||||
...
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue