Skip to content

Commit d034c8d

Browse files
committed
flake8
1 parent 77e2260 commit d034c8d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shapeout2/gui/pipeline_plot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
class PipelinePlot(QtWidgets.QWidget):
1616
"""Implements the plotting pipeline using pyqtgraph"""
17+
1718
def __init__(self, parent, pipeline, plot_id, *args, **kwargs):
1819
QtWidgets.QWidget.__init__(self, parent=parent, *args, **kwargs)
1920
path_ui = pkg_resources.resource_filename(
@@ -47,9 +48,9 @@ def update_content(self):
4748

4849
labelx, labely = get_axes_labels(plot_state, slot_states)
4950

50-
self.plot_layout.addLabel(lay["name"], colspan=2,
51-
# default size + 2
52-
size="{}pt".format(QtGui.QFont().pointSize() + 2))
51+
# font size for plot title (default size + 2)
52+
size = "{}pt".format(QtGui.QFont().pointSize() + 2)
53+
self.plot_layout.addLabel(lay["name"], colspan=2, size=size)
5354
self.plot_layout.nextRow()
5455

5556
self.plot_layout.addLabel(labely, angle=-90)

0 commit comments

Comments
 (0)