Date: Fri, 22 Jun 2012 00:41:37 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r237413 - user/adrian/ath_radar_stuff/src/qt-pktlog Message-ID: <201206220041.q5M0fbsQ045483@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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<double> dur; std::vector<double> 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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206220041.q5M0fbsQ045483>