From owner-svn-src-user@FreeBSD.ORG Fri Jun 22 00:41:38 2012 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 048521065672; Fri, 22 Jun 2012 00:41:38 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E3A818FC19; Fri, 22 Jun 2012 00:41:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5M0fboO045485; Fri, 22 Jun 2012 00:41:37 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5M0fbsQ045483; Fri, 22 Jun 2012 00:41:37 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201206220041.q5M0fbsQ045483@svn.freebsd.org> From: Adrian Chadd Date: Fri, 22 Jun 2012 00:41:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237413 - user/adrian/ath_radar_stuff/src/qt-pktlog X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2012 00:41:38 -0000 Author: adrian Date: Fri Jun 22 00:41:37 2012 New Revision: 237413 URL: http://svn.freebsd.org/changeset/base/237413 Log: Change the plot type to be a small cross rather than a single pixel point. Modified: user/adrian/ath_radar_stuff/src/qt-pktlog/main.cpp Modified: user/adrian/ath_radar_stuff/src/qt-pktlog/main.cpp ============================================================================== --- user/adrian/ath_radar_stuff/src/qt-pktlog/main.cpp Fri Jun 22 00:40:44 2012 (r237412) +++ user/adrian/ath_radar_stuff/src/qt-pktlog/main.cpp Fri Jun 22 00:41:37 2012 (r237413) @@ -7,6 +7,7 @@ #include "qwt_plot.h" #include "qwt_plot_curve.h" #include "qwt_plot_histogram.h" +#include "qwt_symbol.h" #include "libradarpkt/pkt.h" #include "PktLogData.h" @@ -22,16 +23,25 @@ void plotSet(QwtPlot *p, PktLogData *pl) { QwtPlotCurve *c = new QwtPlotCurve("curve"); - + QwtSymbol *s = new QwtSymbol(); std::vector dur; std::vector rssi; + // The default is a single 1 pixel dot. + // This makes it very difficult to see. + s->setStyle(QwtSymbol::Cross); + s->setSize(2, 2); + p->setTitle("Example"); + //p->setAutoLegend(true); //p->setLegendPos(Qwt::Bottom); // Curve Plot - dots, == scatterplot c->setStyle(QwtPlotCurve::Dots); + // And set the symbol type, a default dot is not really + // all that helpful. + c->setSymbol(s); /* Load in values */ dur = pl->GetDuration();