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

Method extract_plot_limits_from_json

OGP_v11.py:3190–3199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3188 self.setLayout(self.layout)
3189
3190 def extract_plot_limits_from_json(self):
3191 all_x_values = []
3192 all_y_values = []
3193 for polygon in self.plot_info.get('polygons', []):
3194 for point in polygon['points']:
3195 all_x_values.append(point[0])
3196 all_y_values.append(point[1])
3197 x_min, x_max = min(all_x_values), max(all_x_values)
3198 y_min, y_max = min(all_y_values), max(all_y_values)
3199 return (x_min, x_max), (y_min, y_max)
3200
3201
3202 def plot_custom(self, x, y, log_x, log_y, color_column=None, color_ramp=None, data_points=True):

Callers 3

__init__Method · 0.95
plot_customMethod · 0.95
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected