From 4dfba09d02ffc6cb86fd5eae37bec5b09c93739d Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Tue, 25 Jan 2022 23:50:01 +0100 Subject: [PATCH] Improving handling of very high/low values on logarithmic scales --- .../qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml | 2 +- .../qml/eu/ad5001/LogarithmPlotter/js/objs/function.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml index 96814d5..fcf3122 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogGraphCanvas.qml @@ -37,7 +37,7 @@ Canvas { property string yaxisstep: "4" property string xlabel: "" property string ylabel: "" - property int maxgradx: 10 + property int maxgradx: 20 property double linewidth: 1 property double textsize: 14 property bool logscalex: false diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.js index 09b8701..485d8ae 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.js @@ -142,7 +142,7 @@ class Function extends Common.ExecutableObject { static drawFunction(canvas, ctx, expr, definitionDomain, destinationDomain, drawPoints = true, drawDash = true) { // Reusable in other objects. // Drawing small traits every 2px - var pxprecision = 2 + var pxprecision = 0.2 var previousX = canvas.px2x(0) var previousY; if(definitionDomain instanceof MathLib.SpecialDomain && definitionDomain.moveSupported) {