Use legend instead of "mini plot" in C++ and Lua plot methods - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-plot.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年06月05日 18:55:42 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年06月05日 18:55:42 +0200
commitabdd658306f69857216e6f3a41fcd9e1450e4352 (patch)
tree099155c9012f8216b8a2bdee465b67d9a33669c0 /agg-plot/lua-plot.cpp
parentc9601313b91de7249cf6e824cc78761c3ec51a4c (diff)
downloadgsl-shell-abdd658306f69857216e6f3a41fcd9e1450e4352.tar.gz
Use legend instead of "mini plot" in C++ and Lua plot methods
Diffstat (limited to 'agg-plot/lua-plot.cpp')
-rw-r--r--agg-plot/lua-plot.cpp 10
1 files changed, 5 insertions, 5 deletions
diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp
index 0b0f9a19..0bc11e22 100644
--- a/agg-plot/lua-plot.cpp
+++ b/agg-plot/lua-plot.cpp
@@ -68,7 +68,7 @@ static int plot_xlab_angle_get (lua_State *L);
static int plot_ylab_angle_set (lua_State *L);
static int plot_ylab_angle_get (lua_State *L);
static int plot_set_categories (lua_State *L);
-static int plot_set_mini (lua_State *L);
+static int plot_set_legend (lua_State *L);
static int plot_sync_mode_get (lua_State *L);
static int plot_sync_mode_set (lua_State *L);
@@ -108,7 +108,7 @@ static const struct luaL_Reg plot_methods[] = {
{"save", bitmap_save_image },
{"save_svg", plot_save_svg },
{"set_categories", plot_set_categories},
- {"set_mini", plot_set_mini},
+ {"set_legend", plot_set_legend},
{NULL, NULL}
};
@@ -672,7 +672,7 @@ plot_set_categories (lua_State *L)
}
int
-plot_set_mini(lua_State *L)
+plot_set_legend(lua_State *L)
{
sg_plot* p = object_check<sg_plot>(L, 1, GS_PLOT);
sg_plot* mp = object_check<sg_plot>(L, 2, GS_PLOT);
@@ -689,14 +689,14 @@ plot_set_mini(lua_State *L)
else if (letter == 't')
pos = sg_plot::top;
else
- return luaL_error (L, "invalid mini plot placement specification.");
+ return luaL_error (L, "invalid legend placement specification.");
int ref_index = (1 << 16) + (int)pos;
lua_getfenv (L, 1);
objref_mref_add (L, -1, ref_index, 2);
AGG_LOCK();
- p->add_mini_plot(mp, pos);
+ p->add_legend(mp, pos);
AGG_UNLOCK();
plot_update_raw (L, p, 1);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月15日 04:31:16 +0000

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