XYRange returns the minimum and maximum x and y values.
(xys XYer)
| 122 | // XYRange returns the minimum and maximum |
| 123 | // x and y values. |
| 124 | func XYRange(xys XYer) (xmin, xmax, ymin, ymax float64) { |
| 125 | xmin, xmax = Range(XValues{xys}) |
| 126 | ymin, ymax = Range(YValues{xys}) |
| 127 | return |
| 128 | } |
| 129 | |
| 130 | // XYs implements the XYer interface. |
| 131 | type XYs []XY |