Add get_legend method to plot class - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/plot.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年06月05日 19:19:40 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年06月05日 19:19:40 +0200
commit2d17ffeb35f0cf8fdc38ca8f548983132d64cc0f (patch)
treef60171c76384481468d6fa51b3001470df38e30f /agg-plot/plot.h
parentabdd658306f69857216e6f3a41fcd9e1450e4352 (diff)
downloadgsl-shell-2d17ffeb35f0cf8fdc38ca8f548983132d64cc0f.tar.gz
Add get_legend method to plot class
Diffstat (limited to 'agg-plot/plot.h')
-rw-r--r--agg-plot/plot.h 6
1 files changed, 2 insertions, 4 deletions
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)
{
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月16日 12:56:09 +0000

AltStyle によって変換されたページ (->オリジナル) /