Plot is the basic type representing a plot.
| 32 | |
| 33 | // Plot is the basic type representing a plot. |
| 34 | type Plot struct { |
| 35 | Title struct { |
| 36 | // Text is the text of the plot title. If |
| 37 | // Text is the empty string then the plot |
| 38 | // will not have a title. |
| 39 | Text string |
| 40 | |
| 41 | // Padding is the amount of padding |
| 42 | // between the bottom of the title and |
| 43 | // the top of the plot. |
| 44 | Padding vg.Length |
| 45 | |
| 46 | // TextStyle specifies how the plot title text should be displayed. |
| 47 | TextStyle text.Style |
| 48 | } |
| 49 | |
| 50 | // BackgroundColor is the background color of the plot. |
| 51 | // The default is White. |
| 52 | BackgroundColor color.Color |
| 53 | |
| 54 | // X and Y are the horizontal and vertical axes |
| 55 | // of the plot respectively. |
| 56 | X, Y Axis |
| 57 | |
| 58 | // Legend is the plot's legend. |
| 59 | Legend Legend |
| 60 | |
| 61 | // TextHandler parses and formats text according to a given |
| 62 | // dialect (Markdown, LaTeX, plain, ...) |
| 63 | // The default is a plain text handler. |
| 64 | TextHandler text.Handler |
| 65 | |
| 66 | // plotters are drawn by calling their Plot method |
| 67 | // after the axes are drawn. |
| 68 | plotters []Plotter |
| 69 | } |
| 70 | |
| 71 | // Plotter is an interface that wraps the Plot method. |
| 72 | // Some standard implementations of Plotter can be |
nothing calls this directly
no outgoing calls
no test coverage detected