def __init__(self):
        CustomizationView.__init__(self)
        label_msg = "Set to empty to use the default %s.\n" \
                    "It is also possible to use LaTeX. Enclose expression with $...$ for example: \n" \
                    "$\\alpha > \\beta$\n" \
                    "$r^3$\n" \
                    "$\\frac{1}{x}$\n" \
                    "$\\sqrt{2}$"

        self.addLineEdit("title",
                         "Title",
                         "The title of the plot. %s" % (label_msg % "title"),
                         placeholder="Title")
        self.addSpacing()
        self.addLineEdit("x_label",
                         "X Label",
                         "The label of the X axis. %s" % (label_msg % "label"),
                         placeholder="X Label")
        self.addLineEdit("y_label",
                         "Y Label",
                         "The label of the Y axis. %s" % (label_msg % "label"),
                         placeholder="Y Label")
        self.addSpacing()
        self.addCheckBox("legend", "Legend", "Toggle Legend visibility.")
        self.addCheckBox("grid", "Grid", "Toggle Grid visibility.")
        self.addCheckBox("refcase", "Refcase", "Toggle Refcase visibility.")
        self.addCheckBox("history", "History", "Toggle History visibility.")
        self.addCheckBox("observations", "Observations",
                         "Toggle Observations visibility.")
Exemple #2
0
    def __init__(self):
        CustomizationView.__init__(self)

        layout = QHBoxLayout()

        self.addRow("", layout)
        self.addStyleChooser("default_style", "Default", "Line and marker style for default lines.")
        self.addStyleChooser("refcase_style", "Refcase", "Line and marker style for the refcase line.")
        self.addStyleChooser("history_style", "History", "Line and marker style for the history line.")
        self.addStyleChooser("observs_style", "Observation", "Line and marker style for the observation line.",
                             line_style_set=sc.STYLESET_TOGGLE)

        self["default_style"].createLabelLayout(layout)

        self.addSpacing(10)

        color_layout = QHBoxLayout()

        self._color_boxes = []
        for name in ["#1", "#2", "#3", "#4", "#5"]:
            color_box = self.createColorBox(name)
            self._color_boxes.append(color_box)
            color_layout.addWidget(color_box)

        self.addRow("Color Cycle", color_layout)
        self.updateProperty("color_cycle", StyleCustomizationView.getColorCycle, StyleCustomizationView.setColorCycle)

        self._observs_color_box = self.createColorBox("observations_color")
        self.addRow('Observations Color', self._observs_color_box)
        self.updateProperty("observs_color",
                            StyleCustomizationView.getObservationsColor,
                            StyleCustomizationView.setObservationsColor)
    def __init__(self):
        CustomizationView.__init__(self)

        self._presets = ["Statistics Default", "Cross Case Statistics Default", "Overview", "All statistics"]

        self.addRow("Presets", self.createPresets())
        self.addSpacing(10)
        layout = QHBoxLayout()
        self.addRow("", layout)
        self.addStyleChooser("mean_style", "Mean", "Line and marker style for the mean line.")
        self.addStyleChooser("p50_style", "P50", "Line and marker style for the P50 line.")
        self.addStyleChooser("std_style", "Std dev",
                             "Line and marker style for the unbiased standard deviation lines.",
                             line_style_set=sc.STYLESET_AREA)
        self.addStyleChooser("min_max_style", "Min/Max",
                             "Line and marker style for the min/max lines.",
                             line_style_set=sc.STYLESET_AREA)
        self.addStyleChooser("p10_p90_style", "P10-P90",
                             "Line and marker style for the P10-P90 lines.",
                             line_style_set=sc.STYLESET_AREA)
        self.addStyleChooser("p33_p67_style", "P33-P67",
                             "Line and marker style for the P33-P67 lines.",
                             line_style_set=sc.STYLESET_AREA)
        self.addSpacing()

        std_box = self.addSpinBox("std_dev_factor", "Std dev multiplier",
                                  "Choose which standard deviation to plot", max_value=3)

        self.addCheckBox("distribution_lines", "Connection Lines", "Toggle distribution connection lines visibility.")

        self["mean_style"].createLabelLayout(layout)
    def __init__(self):
        CustomizationView.__init__(self)

        self._presets = ["Statistics Default", "Cross Case Statistics Default", "Overview", "All statistics"]

        self.addRow("Presets", self.createPresets())
        self.addSpacing(10)
        layout = QHBoxLayout()
        self.addRow("", layout)
        self.addStyleChooser("mean_style", "Mean", "Line and marker style for the mean line.")
        self.addStyleChooser("p50_style", "P50", "Line and marker style for the P50 line.")
        self.addStyleChooser("std_style", "Std dev",
                             "Line and marker style for the unbiased standard deviation lines.",
                             line_style_set=sc.STYLESET_AREA)
        self.addStyleChooser("min_max_style", "Min/Max",
                             "Line and marker style for the min/max lines.",
                             line_style_set=sc.STYLESET_AREA)
        self.addStyleChooser("p10_p90_style", "P10-P90",
                             "Line and marker style for the P10-P90 lines.",
                             line_style_set=sc.STYLESET_AREA)
        self.addStyleChooser("p33_p67_style", "P33-P67",
                             "Line and marker style for the P33-P67 lines.",
                             line_style_set=sc.STYLESET_AREA)
        self.addSpacing()

        std_box = self.addSpinBox("std_dev_factor", "Std dev multiplier",
                                  "Choose which standard deviation to plot", max_value=3)

        self.addCheckBox("distribution_lines", "Connection Lines", "Toggle distribution connection lines visibility.")

        self["mean_style"].createLabelLayout(layout)
Exemple #5
0
    def __init__(self):
        CustomizationView.__init__(self)

        limits_widget = LimitsWidget()
        self._limits_widget = limits_widget

        self.addHeading("X Axis")
        self.addRow("Minimum", limits_widget.x_minimum_stack)
        self.addRow("Maximum", limits_widget.x_maximum_stack)

        self.addHeading("Y Axis")
        self.addRow("Minimum", limits_widget.y_minimum_stack)
        self.addRow("Maximum", limits_widget.y_maximum_stack)
    def __init__(self):
        CustomizationView.__init__(self)

        limits_widget = LimitsWidget()
        self._limits_widget = limits_widget

        self.addHeading("X Axis")
        self.addRow("Minimum", limits_widget.x_minimum_stack)
        self.addRow("Maximum", limits_widget.x_maximum_stack)

        self.addHeading("Y Axis")
        self.addRow("Minimum", limits_widget.y_minimum_stack)
        self.addRow("Maximum", limits_widget.y_maximum_stack)
    def __init__(self):
        CustomizationView.__init__(self)
        label_msg = "Set to empty to use the default %s.\n" \
                    "It is also possible to use LaTeX. Enclose expression with $...$ for example: \n" \
                    "$\\alpha > \\beta$\n" \
                    "$r^3$\n" \
                    "$\\frac{1}{x}$\n" \
                    "$\\sqrt{2}$"

        self.addLineEdit("title", "Title", "The title of the plot. %s" % (label_msg % "title"), placeholder="Title")
        self.addSpacing()
        self.addLineEdit("x_label", "X Label", "The label of the X axis. %s" % (label_msg % "label"), placeholder="X Label")
        self.addLineEdit("y_label", "Y Label", "The label of the Y axis. %s" % (label_msg % "label"), placeholder="Y Label")
        self.addSpacing()
        self.addCheckBox("legend", "Legend", "Toggle Legend visibility.")
        self.addCheckBox("grid", "Grid", "Toggle Grid visibility.")
        self.addCheckBox("refcase", "Refcase", "Toggle Refcase visibility.")
        self.addCheckBox("history", "History", "Toggle History visibility.")
        self.addCheckBox("observations", "Observations", "Toggle Observations visibility.")
    def __init__(self):
        # pylint: disable=consider-using-f-string
        CustomizationView.__init__(self)
        label_msg = ("Set to empty to use the default %s.\n"
                     "It is also possible to use LaTeX. "
                     "Enclose expression with $...$ for example: \n"
                     "$\\alpha > \\beta$\n"
                     "$r^3$\n"
                     "$\\frac{1}{x}$\n"
                     "$\\sqrt{2}$")

        self.addLineEdit(
            "title",
            "Title",
            f'The title of the plot. {label_msg % "title"}',
            placeholder="Title",
        )
        self.addSpacing()
        self.addLineEdit(
            "x_label",
            "x-label",
            f'The label of the x-axis. {label_msg % "label"}',
            placeholder="x-label",
        )
        self.addLineEdit(
            "y_label",
            "y-label",
            f'The label of the y-axis. {label_msg % "label"}',
            placeholder="y-label",
        )
        self.addSpacing()
        self.addCheckBox("legend", "Legend", "Toggle legend visibility.")
        self.addCheckBox("grid", "Grid", "Toggle grid visibility.")
        self.addCheckBox("refcase", "Refcase", "Toggle refcase visibility.")
        self.addCheckBox("history", "History", "Toggle history visibility.")
        self.addCheckBox("observations", "Observations",
                         "Toggle observations visibility.")