[apps/calculation] additional_outputs; change position of absolute value

label in ComplexGraphView
This commit is contained in:
Émilie Feral
2020-01-09 10:08:50 +01:00
committed by Léa Saviot
parent 56485a9733
commit 7cd6d12730

View File

@@ -54,7 +54,7 @@ void ComplexGraphView::drawRect(KDContext * ctx, KDRect rect) const {
// 'im(z)' label
drawLabel(ctx, rect, 0.0f, imag, "im(θ)", Palette::Red, real >= 0.0f ? CurveView::RelativePosition::Before : CurveView::RelativePosition::After, CurveView::RelativePosition::None);
// '|z|' label, the relative horizontal position of this label depends on the quadrant
drawLabel(ctx, rect, real/2.0f, imag/2.0f, "|z|", Palette::Red, real*imag >= 0.0f ? CurveView::RelativePosition::Before : CurveView::RelativePosition::After, CurveView::RelativePosition::After);
drawLabel(ctx, rect, real/2.0f, imag/2.0f, "|z|", Palette::Red, CurveView::RelativePosition::None, CurveView::RelativePosition::After);
// 'arg(z)' label, the relative horizontal/vertical positions of this label depends on the quadrant
CurveView::RelativePosition horizontalPosition = CurveView::RelativePosition::None;
CurveView::RelativePosition verticalPosition = CurveView::RelativePosition::None;