author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年06月05日 19:19:40 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年06月05日 19:19:40 +0200 |
commit | 2d17ffeb35f0cf8fdc38ca8f548983132d64cc0f (patch) | |
tree | f60171c76384481468d6fa51b3001470df38e30f /agg-plot/plot.h | |
parent | abdd658306f69857216e6f3a41fcd9e1450e4352 (diff) | |
download | gsl-shell-2d17ffeb35f0cf8fdc38ca8f548983132d64cc0f.tar.gz |
-rw-r--r-- | agg-plot/plot.h | 6 |
diff --git a/agg-plot/plot.h b/agg-plot/plot.h index f2c822a7..0a7a5e9e 100644 --- a/agg-plot/plot.h +++ b/agg-plot/plot.h @@ -156,10 +156,8 @@ public: str& x_axis_title() { return m_x_axis.title; } str& y_axis_title() { return m_y_axis.title; } - void add_legend(plot* p, placement_e where) - { - m_legend[where] = p; - } + void add_legend(plot* p, placement_e where) { m_legend[where] = p; } + plot* get_legend(placement_e where) { return m_legend[where]; } axis& get_axis(axis_e axis_dir) { |