yLabel returns the Y-axis label
()
| 242 | |
| 243 | // yLabel returns the Y-axis label |
| 244 | func (pl *PlotEditor) yLabel() string { |
| 245 | if pl.Options.YAxisLabel != "" { |
| 246 | return pl.Options.YAxisLabel |
| 247 | } |
| 248 | for _, cp := range pl.Columns { |
| 249 | if cp.On { |
| 250 | return cp.getLabel() |
| 251 | } |
| 252 | } |
| 253 | return "Y" |
| 254 | } |
| 255 | |
| 256 | // xLabel returns the X-axis label |
| 257 | func (pl *PlotEditor) xLabel() string { |