- Timestamp:
- Aug 29, 2012, 6:08:41 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/availplot.cpp
r4584 r4585 1 1 2 #include <qwt_scale_engine.h>3 2 #include <qwt_symbol.h> 4 3 #include <qwt_plot_curve.h> 5 #include <qwt_plot_grid.h>6 #include <qwt_legend.h>7 4 8 5 #include "availplot.h" … … 14 11 15 12 setCanvasBackground(QColor(Qt::white)); 16 17 // Legend18 // ------19 QwtLegend* legend = new QwtLegend;20 insertLegend(legend, QwtPlot::RightLegend);21 22 23 // grid24 QwtPlotGrid *grid = new QwtPlotGrid;25 grid->enableXMin(true);26 grid->setMajPen(QPen(Qt::gray, 0, Qt::DotLine));27 grid->setMinPen(QPen(Qt::gray, 0 , Qt::DotLine));28 grid->attach(this);29 13 30 14 // Axes … … 57 41 curve->setSymbol( symbol ); 58 42 curve->setStyle( QwtPlotCurve::NoCurve ); 59 curve->setLegendAttribute( QwtPlotCurve::LegendShowSymbol );60 43 curve->setXAxis(QwtPlot::xBottom); 61 44 curve->setYAxis(QwtPlot::yLeft);
Note:
See TracChangeset
for help on using the changeset viewer.