summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/histogram_sink_f_impl.h
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2013-08-02 16:54:16 -0400
committerTom Rondeau <tom@trondeau.com>2013-08-02 16:58:13 -0400
commitbd043f9c74d32a63e42547c023c68abe2f1d5e2b (patch)
tree8da38fa103ecfc2f4049f4b1a5b53a9b3c5722a0 /gr-qtgui/lib/histogram_sink_f_impl.h
parent1f03cbc66bc5b60a9997e78be349e259ea739114 (diff)
qtgui: improved handling of scale in histogram plots.
Mouse scroll zooms in/out horizonatally. Added auto-scale feature, can set x-min and max in constructor. Mouse scroll in constellation plot now does both axes at the same time.
Diffstat (limited to 'gr-qtgui/lib/histogram_sink_f_impl.h')
-rw-r--r--gr-qtgui/lib/histogram_sink_f_impl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-qtgui/lib/histogram_sink_f_impl.h b/gr-qtgui/lib/histogram_sink_f_impl.h
index 962d6e43a4..83c8558c1b 100644
--- a/gr-qtgui/lib/histogram_sink_f_impl.h
+++ b/gr-qtgui/lib/histogram_sink_f_impl.h
@@ -40,6 +40,7 @@ namespace gr {
int d_size;
int d_bins;
+ double d_xmin, d_xmax;
std::string d_name;
int d_nconnections;
@@ -56,6 +57,7 @@ namespace gr {
public:
histogram_sink_f_impl(int size, int bins,
+ double xmin, double xmax,
const std::string &name,
int nconnections,
QWidget *parent=NULL);
@@ -68,6 +70,7 @@ namespace gr {
PyObject* pyqwidget();
void set_y_axis(double min, double max);
+ void set_x_axis(double min, double max);
void set_update_time(double t);
void set_title(const std::string &title);
void set_line_label(int which, const std::string &label);