Contour implements the Plotter interface, drawing a contour plot of the values in the GridXYZ field.
| 19 | // Contour implements the Plotter interface, drawing |
| 20 | // a contour plot of the values in the GridXYZ field. |
| 21 | type Contour struct { |
| 22 | GridXYZ GridXYZ |
| 23 | |
| 24 | // Levels describes the contour heights to plot. |
| 25 | Levels []float64 |
| 26 | |
| 27 | // LineStyles is the set of styles for contour |
| 28 | // lines. Line styles are are applied to each level |
| 29 | // in order, modulo the length of LineStyles. |
| 30 | LineStyles []draw.LineStyle |
| 31 | |
| 32 | // Palette is the color palette used to render |
| 33 | // the heat map. If Palette is nil or has no |
| 34 | // defined color, the Contour LineStyle color |
| 35 | // is used. |
| 36 | Palette palette.Palette |
| 37 | |
| 38 | // Underflow and Overflow are colors used to draw |
| 39 | // contours outside the dynamic range defined |
| 40 | // by Min and Max. |
| 41 | Underflow color.Color |
| 42 | Overflow color.Color |
| 43 | |
| 44 | // Min and Max define the dynamic range of the |
| 45 | // heat map. |
| 46 | Min, Max float64 |
| 47 | } |
| 48 | |
| 49 | // NewContour creates as new contour plotter for the given data, using |
| 50 | // the provided palette. If levels is nil, contours are generated for |
nothing calls this directly
no outgoing calls
no test coverage detected