File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -766,23 +766,21 @@ def set_dpi(self, val):
766
766
self .dpi = val
767
767
self .stale = True
768
768
769
- def set_figwidth (self , val ):
769
+ def set_figwidth (self , val , ** kwargs ):
770
770
"""
771
771
Set the width of the figure in inches
772
772
773
773
ACCEPTS: float
774
774
"""
775
- self .bbox_inches .x1 = val
776
- self .stale = True
775
+ self .set_size_inches (val , self .get_figheight (), ** kwargs )
777
776
778
- def set_figheight (self , val ):
777
+ def set_figheight (self , val , ** kwargs ):
779
778
"""
780
779
Set the height of the figure in inches
781
780
782
781
ACCEPTS: float
783
782
"""
784
- self .bbox_inches .y1 = val
785
- self .stale = True
783
+ self .set_size_inches (self .get_figwidth (), val , ** kwargs )
786
784
787
785
def set_frameon (self , b ):
788
786
"""
You can’t perform that action at this time.
0 commit comments