MCPcopy Create free account
hub / github.com/KDE/labplot / scale

Method scale

src/backend/datasources/projects/OriginProjectParser.cpp:2999–3020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2997}
2998
2999RangeT::Scale OriginProjectParser::scale(unsigned char scale) const {
3000 switch (scale) {
3001 case Origin::GraphAxis::Linear:
3002 return RangeT::Scale::Linear;
3003 case Origin::GraphAxis::Log10:
3004 return RangeT::Scale::Log10;
3005 case Origin::GraphAxis::Ln:
3006 return RangeT::Scale::Ln;
3007 case Origin::GraphAxis::Log2:
3008 return RangeT::Scale::Log2;
3009 case Origin::GraphAxis::Reciprocal:
3010 return RangeT::Scale::Inverse;
3011 case Origin::GraphAxis::Probability:
3012 case Origin::GraphAxis::Probit:
3013 case Origin::GraphAxis::OffsetReciprocal:
3014 case Origin::GraphAxis::Logit:
3015 // TODO:
3016 return RangeT::Scale::Linear;
3017 }
3018
3019 return RangeT::Scale::Linear;
3020}
3021
3022QColor OriginProjectParser::color(Origin::Color color) const {
3023 switch (color.type) {

Callers 3

retransformMethod · 0.45
setRectSizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected