DataRange implements the DataRange method of the plot.DataRanger interface.
()
| 259 | // DataRange implements the DataRange method |
| 260 | // of the plot.DataRanger interface. |
| 261 | func (h *Contour) DataRange() (xmin, xmax, ymin, ymax float64) { |
| 262 | c, r := h.GridXYZ.Dims() |
| 263 | return h.GridXYZ.X(0), h.GridXYZ.X(c - 1), h.GridXYZ.Y(0), h.GridXYZ.Y(r - 1) |
| 264 | } |
| 265 | |
| 266 | // GlyphBoxes implements the GlyphBoxes method |
| 267 | // of the plot.GlyphBoxer interface. |