Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e44d0e5

Browse files
committed
fixed frameon bug
svn path=/trunk/matplotlib/; revision=2536
1 parent 5f37b42 commit e44d0e5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/figure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def __init__(self,
133133
self.ur = Point( self.figwidth*self.dpi,
134134
self.figheight*self.dpi )
135135
self.bbox = Bbox(self.ll, self.ur)
136+
136137
self.frameon = frameon
137138

138139
self.transFigure = get_bbox_transform( unit_bbox(), self.bbox)

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N
871871
if figManager is None:
872872
if get_backend()=='PS': dpi = 72
873873

874-
figManager = new_figure_manager(num, figsize, dpi, facecolor, edgecolor, frameon, FigureClass=FigureClass, **kwargs)
874+
figManager = new_figure_manager(num, figsize=figsize, dpi=dpi, facecolor=facecolor, edgecolor=edgecolor, frameon=frameon, FigureClass=FigureClass, **kwargs)
875875
_pylab_helpers.Gcf.set_active(figManager)
876876
figManager.canvas.figure.number = num
877877

0 commit comments

Comments
 (0)