MCPcopy Create free account
hub / github.com/bsomps/OpenGeoPlotter / __init__

Method __init__

OGP_v11.py:3172–3188  ·  view source on GitHub ↗
(self, json_file_path, data)

Source from the content-addressed store, hash-verified

3170
3171class 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 = []

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected