1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-12-16 06:34:40 +00:00

log scale basis in plots

This commit is contained in:
2024-01-12 14:22:23 +01:00
parent 13fddf4947
commit 6739019c83
2 changed files with 9 additions and 5 deletions

View File

@@ -227,6 +227,7 @@ struct PlotOptions
std::string caption;
std::string title;
unsigned int scaleMode[2];
double logScaleBasis[2];
Range scale[2];
std::string label[2];
std::string lineColor;
@@ -314,13 +315,14 @@ class LogScale: public PlotModifier
{
public:
// constructor
explicit LogScale(const Axis axis);
explicit LogScale(const Axis axis, const double basis = 10);
// destructor
virtual ~LogScale(void) = default;
// modifier
virtual void operator()(PlotOptions &option) const;
private:
const Axis axis_;
const double basis_;
};
class PlotRange: public PlotModifier