svn commit: r237413 - user/adrian/ath_radar_stuff/src/qt-pktlog

Adrian Chadd adrian at FreeBSD.org
Fri Jun 22 00:41:38 UTC 2012


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();


More information about the svn-src-user mailing list