8000 fix pep8 problems · matplotlib/matplotlib@2bffa69 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bffa69

Browse files
committed
fix pep8 problems
1 parent bf5dfcd commit 2bffa69

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

lib/matplotlib/backends/backend_qt4.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,8 @@ def __init__(self, targetfig, parent):
720720
self.parent = parent
721721
self.connect(self.doneButton, QtCore.SIGNAL("clicked()"), self.close)
722722
self.connect(self.resetButton, QtCore.SIGNAL("clicked()"), self.reset)
723-
self.connect(self.tightLayout, QtCore.SIGNAL("clicked()"), self.functight)
723+
self.connect(self.tightLayout, QtCore.SIGNAL("clicked()"),
724+
self.functight)
724725

725726
sliders = (self.sliderleft, self.sliderbottom, self.sliderright,
726727
self.slidertop, self.sliderwspace, self.sliderhspace,)
@@ -770,10 +771,9 @@ def _read_defaults(self):
770771
self.defaults = {'left': self.targetfig.subplotpars.left,
771772
'bottom': self.targetfig.subplotpars.bottom,
772773
'right': self.targetfig.subplotpars.right,
773-
'top':self.targetfig.subplotpars.top,
774+
'top': self.targetfig.subplotpars.top,
774775
'wspace': self.targetfig.subplotpars.wspace,
775-
'hspace': self.targetfig.subplotpars.hspace
776-
}
776+
'hspace': self.targetfig.subplotpars.hspace}
777777

778778
def _setSliderPositions(self):
779779
self.sliderleft.setSliderPosition(
@@ -794,7 +794,7 @@ def funcleft(self, val):
794794
val -= 1
795795
val /= 1000.
796796
self.targetfig.subplots_adjust(left=val)
797-
self.leftvalue.setText("%.2f" %val)
797+
self.leftvalue.setText("%.2f" % val)
798798
if self.drawon:
799799
self.targetfig.canvas.draw()
800800

@@ -803,7 +803,7 @@ def funcright(self, val):
803803
val += 1
804804
val /= 1000.
805805
self.targetfig.subplots_adjust(right=val)
806-
self.rightvalue.setText("%.2f" %val)
806+
self.rightvalue.setText("%.2f" % val)
807807
if self.drawon:
808808
self.targetfig.canvas.draw()
809809

@@ -812,7 +812,7 @@ def funcbottom(self, val):
812812
val -= 1
813813
val /= 1000.
814814
self.targetfig.subplots_adjust(bottom=val)
815-
self.bottomvalue.setText("%.2f" %val)
815+
self.bottomvalue.setText("%.2f" % val)
816816
if self.drawon:
817817
self.targetfig.canvas.draw()
818818

@@ -821,21 +821,21 @@ def functop(self, val):
821821
val += 1
822822
val /= 1000.
823823
self.targetfig.subplots_adjust(top=val)
824-
self.topvalue.setText("%.2f" %val)
824+
self.topvalue.setText("%.2f" % val)
825825
if self.drawon:
826826
self.targetfig.canvas.draw()
827827

828828
def funcwspace(self, val):
829829
val /= 1000.
830830
self.targetfig.subplots_adjust(wspace=val)
831-
self.wspacevalue.setText("%.2f" %val)
831+
self.wspacevalue.setText("%.2f" % val)
832832
if self.drawon:
833833
self.targetfig.canvas.draw()
834834

835835
def funchspace(self, val):
836836
val /= 1000.
837837
self.targetfig.subplots_adjust(hspace=val)
838-
self.hspacevalue.setText("%.2f" %val)
838+
self.hspacevalue.setText("%.2f" % val)
839839
if self.drawon:
840840
self.targetfig.canvas.draw()
841841

lib/matplotlib/backends/qt4_editor/formsubplottool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from matplotlib.backends.qt4_compat import QtCore, QtGui
1212

13+
1314
class UiSubplotTool(QtGui.QDialog):
1415

1516
def __init__(self, *args, **kwargs):

0 commit comments

Comments
 (0)
0