(self, json_file_path, data)
| 3170 | |
| 3171 | class CustomPlotWindow(QWidget): # Custom plot window |
| 3172 | def __init__(self, json_file_path, data): |
| 3173 | super().__init__() |
| 3174 | |
| 3175 | # Open and load the JSON file |
| 3176 | with open(json_file_path, 'r') as f: |
| 3177 | self.plot_info = json.load(f) |
| 3178 | |
| 3179 | self.data = data |
| 3180 | self.extract_plot_limits_from_json() |
| 3181 | |
| 3182 | self.figure = Figure() |
| 3183 | self.canvas = FigureCanvas(self.figure) |
| 3184 | |
| 3185 | self.layout = QVBoxLayout(self) |
| 3186 | self.layout.addWidget(self.canvas) |
| 3187 | |
| 3188 | self.setLayout(self.layout) |
| 3189 | |
| 3190 | def extract_plot_limits_from_json(self): |
| 3191 | all_x_values = [] |
nothing calls this directly
no test coverage detected