mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph] Fix yAuto for cartesian functions
Scenario: display f(x) = x
This commit is contained in:
@@ -51,7 +51,7 @@ public:
|
||||
double tMax() const override;
|
||||
void setTMin(double tMin);
|
||||
void setTMax(double tMax);
|
||||
float rangeStep() const override { return (tMax() - tMin())/k_polarParamRangeSearchNumberOfPoints; }
|
||||
float rangeStep() const override { return plotType() == PlotType::Cartesian ? NAN : (tMax() - tMin())/k_polarParamRangeSearchNumberOfPoints; }
|
||||
|
||||
private:
|
||||
constexpr static float k_polarParamRangeSearchNumberOfPoints = 100.0f; // This is ad hoc, no special justification
|
||||
|
||||
Reference in New Issue
Block a user