<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setup_panel_params(self, coord):
 """ Calculate the x & y range & breaks information for each panel Parameters coord : coord Coordinate """

        if not self.panel_scales_x:
            raise PlotnineError('Missing an x scale')

        if not self.panel_scales_y:
            raise PlotnineError('Missing a y scale')

        self.panel_params = []
        cols = ['SCALE_X', 'SCALE_Y']
        for i, j in self.layout[cols].itertuples(index=False):
            i, j = i-1, j-1
            params = coord.setup_panel_params(
                self.panel_scales_x[i],
                self.panel_scales_y[j])
            self.panel_params.append(params)