From 22fa78ff8d82e3a0512a3538278cc8e0ff735b28 Mon Sep 17 00:00:00 2001 From: Balint Kovacs Date: Sun, 28 Nov 2021 18:43:44 +0000 Subject: [PATCH] Even out x axis grid points --- apps/gpsrec/app.js | 2 +- apps/recorder/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/gpsrec/app.js b/apps/gpsrec/app.js index 73fe6194e..df3353930 100644 --- a/apps/gpsrec/app.js +++ b/apps/gpsrec/app.js @@ -330,7 +330,7 @@ function plotGraph(info, style) { height: g.getHeight()-(24+8), axes : true, gridy : grid, - gridx : 50, + gridx : infn.length / 3, title: title, xlabel : x=>Math.round(x*dur/(60*infn.length))+" min" // minutes }); diff --git a/apps/recorder/app.js b/apps/recorder/app.js index aa3803794..3548cdb29 100644 --- a/apps/recorder/app.js +++ b/apps/recorder/app.js @@ -399,7 +399,7 @@ function plotGraph(info, style) { height: g.getHeight()-(24+8), axes : true, gridy : grid, - gridx : 50, + gridx : infn.length / 3, title: title, xlabel : x=>Math.round(x*dur/(60*infn.length))+" min" // minutes });