Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 22, 2019
1 parent 77e2260 commit d034c8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shapeout2/gui/pipeline_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

class PipelinePlot(QtWidgets.QWidget):
"""Implements the plotting pipeline using pyqtgraph"""

def __init__(self, parent, pipeline, plot_id, *args, **kwargs):
QtWidgets.QWidget.__init__(self, parent=parent, *args, **kwargs)
path_ui = pkg_resources.resource_filename(
Expand Down Expand Up @@ -47,9 +48,9 @@ def update_content(self):

labelx, labely = get_axes_labels(plot_state, slot_states)

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

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

0 comments on commit d034c8d

Please sign in to comment.