ColorAxis.cc
733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* ColorAxis.cc
*
* Created on: 30 jun. 2014
* Author: AKKA
*/
#include "ColorAxis.hh"
using namespace plot;
std::string ColorAxis::getPlotOpt()
{
std::string options = DigitalAxis::getPlotOpt();
//b & c : Draws edge of frame
//options += "bc";
//v: Write numeric labels for vertical axis parallel to the base of the graph,
// rather than parallel to the axis.
options += "v";
/*//Use custom labelling function to generate axis label text.
options += "o";
if (_scale == Scale::LOGARITHMIC)
//l: Labels axis logarithmically
options += "l";*/
return options;
}
ColorAxis::Format ColorAxis::getFormat()
{
//always used scientific format for color axis
return DigitalAxis::Format::SCIENTIFIC;
}