File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ `Figure.set_figwidth ` and `Figure.set_figheight ` default forward to True
2
+ ------------------------------------------------------------------------
3
+
4
+ `matplotlib.Figure.set_figwidth ` and `matplotlib.Figure.set_figheight `
5
+ had the kwarg `forward=False `
6
+ by default, but `Figure.set_size_inches ` now defaults to `forward=True `.
7
+ This makes these functions conistent.
Original file line number Diff line number Diff line change @@ -836,15 +836,15 @@ def set_dpi(self, val):
836
836
self .dpi = val
837
837
self .stale = True
838
838
839
- def set_figwidth (self , val , forward = False ):
839
+ def set_figwidth (self , val , forward = True ):
840
840
"""
841
841
Set the width of the figure in inches
842
842
843
843
ACCEPTS: float
844
844
"""
845
845
self .set_size_inches (val , self .get_figheight (), forward = forward )
846
846
847
- def set_figheight (self , val , forward = False ):
847
+ def set_figheight (self , val , forward = True ):
848
848
"""
849
849
Set the height of the figure in inches
850
850
You can’t perform that action at this time.
0 commit comments