diff --git a/shapeout2/gui/pipeline_plot.py b/shapeout2/gui/pipeline_plot.py index efdb1ad..82faa66 100644 --- a/shapeout2/gui/pipeline_plot.py +++ b/shapeout2/gui/pipeline_plot.py @@ -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( @@ -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)