From d51594ec3f95c9a8f8fc74784b119431591e45e3 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 3 Oct 2014 15:08:40 +0000 Subject: [PATCH] Rationalize Wide Graph freq labels. Labels should always be multiples of the major tick interval. When Start freq is nonzero, labels need to be moved. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4464 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- plotter.cpp | 37 +++++++++++-------------------------- plotter.h | 1 + 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/plotter.cpp b/plotter.cpp index 0e71e3eb9..dadf99adb 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -238,11 +238,12 @@ void CPlotter::DrawOverlay() //DrawOverlay() m_hdivs = w*df/m_freqPerDiv + 0.9999; m_ScalePixmap.fill(Qt::white); painter0.drawRect(0, 0, w, 30); + MakeFrequencyStrs(); //draw tick marks on upper scale pixperdiv = m_freqPerDiv/df; - for( int i=1; i