Settings Popups¶
Components¶
              SettingsTitle(parent, text, size=None)
¶
    
              Bases: QLabel
A QLabel with bold formatting for use as section titles in settings dialogs.
This widget provides a consistent title appearance across all settings dialogs with optional custom font size.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                parent
             | 
            
                  QWidget
             | 
            
               The parent widget  | 
            required | 
                text
             | 
            
                  str
             | 
            
               The title text to display  | 
            required | 
                size
             | 
            
                  int
             | 
            
               Custom font size in pixels  | 
            
                  None
             | 
          
Source code in trace/widgets/settings_components.py
                    20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37  |  | 
              SettingsRowItem(label_parent, label_txt, widget)
¶
    
              Bases: QHBoxLayout
A horizontal layout for settings rows with label and widget.
This layout provides a consistent structure for settings rows with a label on the left, a spacer in the middle, and a widget on the right.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                label_parent
             | 
            
                  QWidget
             | 
            
               The parent widget for the label  | 
            required | 
                label_txt
             | 
            
                  str
             | 
            
               The text for the label  | 
            required | 
                widget
             | 
            
                  QWidget
             | 
            
               The widget to place on the right side  | 
            required | 
Source code in trace/widgets/settings_components.py
                    47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66  |  | 
              ComboBoxWrapper(parent, data_source, init_value=None)
¶
    
              Bases: QComboBox
A QComboBox wrapper that provides data mapping and custom signal emission.
This widget extends QComboBox to support data source mapping and emits the mapped value rather than the display text when selection changes.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                parent
             | 
            
                  QWidget
             | 
            
               The parent widget  | 
            required | 
                data_source
             | 
            
                  list, tuple, or dict
             | 
            
               Data source for the combo box items. If list/tuple, creates a mapping to itself. If dict, uses keys as display text and values as emitted values.  | 
            required | 
                init_value
             | 
            
                  int, str, or None
             | 
            
               Initial value to select  | 
            
                  None
             | 
          
Source code in trace/widgets/settings_components.py
                    78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105  |  | 
            clean_text_changed(inc_text)
¶
    Handle text changes and emit the mapped value.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                inc_text
             | 
            
                  str
             | 
            
               The incoming text from the combo box  | 
            required | 
Source code in trace/widgets/settings_components.py
              107 108 109 110 111 112 113 114 115 116 117 118 119  |  | 
Plot Settings¶
              PlotSettingsModal(parent, plot)
¶
    
              Bases: QWidget
Modal widget for configuring plot settings including title, legend, mouse mode, autoscroll interval, time range, crosshair, appearance, and gridlines.
This widget provides a comprehensive interface for customizing the appearance and behavior of the PyDMArchiverTimePlot.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                parent
             | 
            
                  QWidget
             | 
            
               The parent widget  | 
            required | 
                plot
             | 
            
                  PyDMArchiverTimePlot
             | 
            
               The plot widget to configure  | 
            required | 
Source code in trace/widgets/plot_settings.py
                    39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150  |  | 
            auto_scroll_interval
  
      property
  
¶
    Get the autoscroll interval in milliseconds.
            x_grid_visible
  
      property
  
¶
    Check if X-axis gridlines are visible.
            gridline_opacity
  
      property
  
¶
    Get the current gridline opacity value (0-255).
            show()
¶
    Show the modal positioned relative to its parent widget.
Source code in trace/widgets/plot_settings.py
              173 174 175 176 177 178  |  | 
            set_show_legend(state)
¶
    Set the legend visibility based on checkbox state.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                state
             | 
            
                  int or CheckState
             | 
            
               The checkbox state  | 
            required | 
Source code in trace/widgets/plot_settings.py
              180 181 182 183 184 185 186 187 188 189 190 191  |  | 
            set_axis_tick_font_size(size)
¶
    Set the font size for all axis tick labels.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                size
             | 
            
                  int
             | 
            
               The font size in pixels  | 
            required | 
Source code in trace/widgets/plot_settings.py
              193 194 195 196 197 198 199 200 201 202 203 204 205 206 207  |  | 
            set_time_axis_range(raw_range=(None, None))
¶
    PyQT Slot to set the plot's X-Axis range. This slot should be triggered on QDateTimeEdit value change.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                raw_range
             | 
            
                  tuple[QDateTime, QDateTime]
             | 
            
               Takes in a tuple of 2 values, where one is a QDateTime and the other is None. The positioning changes either the plot's min or max range value. By default (None, None)  | 
            
                  (None, None)
             | 
          
Source code in trace/widgets/plot_settings.py
              209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238  |  | 
            set_crosshair(state)
¶
    Enable or disable the crosshair on the plot.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                state
             | 
            
                  int or CheckState
             | 
            
               The checkbox state  | 
            required | 
Source code in trace/widgets/plot_settings.py
              240 241 242 243 244 245 246 247 248 249 250 251  |  | 
            set_axis_datetimes(_=None, time_range=None)
¶
    Slot used to update the QDateTimeEdits on the Axis tab. This slot is called when the plot's X-Axis range changes values.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                _
             | 
            
                  ViewBox
             | 
            
               The ViewBox on which the range is changing. This is unused  | 
            
                  None
             | 
          
                time_range
             | 
            
                  Tuple[float, float]
             | 
            
               The new range values for the QDateTimeEdits, by default None  | 
            
                  None
             | 
          
Source code in trace/widgets/plot_settings.py
              253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278  |  | 
            show_x_grid(state)
¶
    Show or hide the X-Axis gridlines.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                state
             | 
            
                  int or CheckState
             | 
            
               The checkbox state  | 
            required | 
Source code in trace/widgets/plot_settings.py
              280 281 282 283 284 285 286 287 288 289 290 291 292  |  | 
            show_y_grid(state)
¶
    Show or hide all Y-axis gridlines.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                state
             | 
            
                  int or CheckState
             | 
            
               The checkbox state  | 
            required | 
Source code in trace/widgets/plot_settings.py
              294 295 296 297 298 299 300 301 302 303 304 305  |  | 
            change_gridline_opacity(opacity)
¶
    Change the opacity of the gridlines for both X and Y axes.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                opacity
             | 
            
                  int
             | 
            
               The opacity value (0-255)  | 
            required | 
Source code in trace/widgets/plot_settings.py
              307 308 309 310 311 312 313 314 315 316 317  |  | 
            set_plot_gridlines(visible, opacity)
¶
    Set the plot's gridlines visibility and opacity for both X and Y axes.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                visible
             | 
            
                  bool
             | 
            
               Whether gridlines should be visible  | 
            required | 
                opacity
             | 
            
                  int
             | 
            
               The opacity value (0-255)  | 
            required | 
Source code in trace/widgets/plot_settings.py
              319 320 321 322 323 324 325 326 327 328 329 330 331  |  | 
            plot_setup(config)
¶
    Configure the plot settings from a configuration dictionary.
This method reads configuration values and updates the corresponding widgets, which will emit signals to update the plot.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                config
             | 
            
                  dict
             | 
            
               Configuration dictionary containing plot settings  | 
            required | 
Source code in trace/widgets/plot_settings.py
              333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363  |  | 
Axis Settings¶
              AxisSettingsModal(parent, plot, axis)
¶
    
              Bases: QWidget
Modal widget for configuring individual axis settings including orientation, log mode, and gridline visibility.
This widget provides an interface for customizing the appearance and behavior of a single axis on the plot.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                parent
             | 
            
                  QWidget
             | 
            
               The parent widget  | 
            required | 
                plot
             | 
            
                  PyDMArchiverTimePlot
             | 
            
               The plot widget containing the axis  | 
            required | 
                axis
             | 
            
                  BasePlotAxisItem
             | 
            
               The axis to configure  | 
            required | 
Source code in trace/widgets/axis_settings.py
                    22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76  |  | 
            grid_visible
  
      property
  
¶
    Check if gridlines are visible for this axis.
            show()
¶
    Show the modal positioned relative to its parent widget.
Source code in trace/widgets/axis_settings.py
              83 84 85 86 87 88  |  | 
            set_axis_orientation(orientation)
¶
    Set the axis orientation (Left or Right).
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                orientation
             | 
            
                  str
             | 
            
               The orientation string ("Left" or "Right")  | 
            required | 
Source code in trace/widgets/axis_settings.py
              90 91 92 93 94 95 96 97 98 99 100 101 102 103 104  |  | 
            set_axis_log_mode(state)
¶
    Enable or disable logarithmic scale for the axis.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                state
             | 
            
                  int or CheckState
             | 
            
               The checkbox state  | 
            required | 
Source code in trace/widgets/axis_settings.py
              106 107 108 109 110 111 112 113 114 115 116 117  |  | 
            show_grid(state)
¶
    Show or hide gridlines for the axis.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                state
             | 
            
                  int or CheckState
             | 
            
               The checkbox state  | 
            required | 
Source code in trace/widgets/axis_settings.py
              119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138  |  | 
            change_gridline_opacity(opacity)
¶
    Change the opacity of gridlines for this axis.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                opacity
             | 
            
                  int
             | 
            
               The opacity value (0-255)  | 
            required | 
Source code in trace/widgets/axis_settings.py
              140 141 142 143 144 145 146 147 148 149 150 151  |  | 
Curve Settings¶
              CurveSettingsModal(parent, plot, curve)
¶
    
              Bases: QWidget
Modal widget for configuring individual curve settings including name, color, data bins, live/archive connections, line properties, and symbol properties.
This widget provides a comprehensive interface for customizing the appearance and behavior of a single curve on the plot.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                parent
             | 
            
                  QWidget
             | 
            
               The parent widget  | 
            required | 
                plot
             | 
            
                  PyDMArchiverTimePlot
             | 
            
               The plot widget containing the curve  | 
            required | 
                curve
             | 
            
                  TimePlotCurveItem
             | 
            
               The curve to configure  | 
            required | 
Source code in trace/widgets/curve_settings.py
                    21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115  |  | 
            set_curve_data_bins()
¶
    Set the optimized data bins for the curve based on user input.
Validates the input and updates the curve's bin count if valid. Shows visual feedback for invalid input.
Source code in trace/widgets/curve_settings.py
              117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135  |  | 
            set_live_data_connection(state)
¶
    Enable or disable live data connection for the curve.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                state
             | 
            
                  CheckState
             | 
            
               The checkbox state  | 
            required | 
Source code in trace/widgets/curve_settings.py
              137 138 139 140 141 142 143 144 145  |  | 
            set_archive_data_connection(state)
¶
    Enable or disable archive data connection for the curve.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                state
             | 
            
                  CheckState
             | 
            
               The checkbox state  | 
            required | 
Source code in trace/widgets/curve_settings.py
              147 148 149 150 151 152 153 154 155  |  | 
            show()
¶
    Show the modal positioned relative to its parent widget.
Source code in trace/widgets/curve_settings.py
              157 158 159 160 161 162 163 164 165 166 167  |  | 
            set_curve_name()
¶
    Set the curve name based on user input.
If the name is empty, reverts to the original name. Updates both the curve data and legend label.
Source code in trace/widgets/curve_settings.py
              169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188  |  | 
            set_curve_color(color)
¶
    Set the curve color and emit the color changed signal.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                color
             | 
            
                  QColor
             | 
            
               The new color for the curve  | 
            required | 
Source code in trace/widgets/curve_settings.py
              190 191 192 193 194 195 196 197 198 199 200  |  | 
            set_curve_type(curve_type=None)
¶
    Set the curve step mode (Direct or Step).
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                curve_type
             | 
            
                  str or None
             | 
            
               The step mode type, or None for direct plotting  | 
            
                  None
             | 
          
Source code in trace/widgets/curve_settings.py
              202 203 204 205 206 207 208 209 210 211  |  | 
            set_curve_style(style)
¶
    Set the line style for the curve.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                style
             | 
            
                  int
             | 
            
               The line style index  | 
            required | 
Source code in trace/widgets/curve_settings.py
              213 214 215 216 217 218 219 220 221 222  |  | 
            set_curve_width(width)
¶
    Set the line width for the curve.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                width
             | 
            
                  int
             | 
            
               The line width in pixels  | 
            required | 
Source code in trace/widgets/curve_settings.py
              224 225 226 227 228 229 230 231 232 233  |  | 
            set_extension_option(state)
¶
    Enable or disable line extension for the curve.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                state
             | 
            
                  int or CheckState
             | 
            
               The checkbox state  | 
            required | 
Source code in trace/widgets/curve_settings.py
              235 236 237 238 239 240 241 242 243 244 245 246 247 248 249  |  | 
            set_symbol_shape(shape)
¶
    Set the symbol shape for the curve.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                shape
             | 
            
                  str
             | 
            
               The symbol shape name  | 
            required | 
Source code in trace/widgets/curve_settings.py
              251 252 253 254 255 256 257 258 259 260  |  | 
            set_symbol_size(size)
¶
    Set the symbol size for the curve.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                size
             | 
            
                  int
             | 
            
               The symbol size in pixels  | 
            required | 
Source code in trace/widgets/curve_settings.py
              262 263 264 265 266 267 268 269 270 271  |  |