New method to manage the Y coordinate flip for SVG output - 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年01月24日 18:19:41 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年01月30日 21:26:02 +0100
commit336b7b2386f8021a3dc569addf2e2876b10d711b (patch)
tree9abffd4b383ce85c64352d2dd26c7df99fde8bb8 /agg-plot/lua-plot.cpp
parent17a0c5fb5ebaed9a694b8f48e14eb085ffcb9ab1 (diff)
downloadgsl-shell-336b7b2386f8021a3dc569addf2e2876b10d711b.tar.gz
New method to manage the Y coordinate flip for SVG output
Diffstat (limited to 'agg-plot/lua-plot.cpp')
-rw-r--r--agg-plot/lua-plot.cpp 2
1 files changed, 1 insertions, 1 deletions
diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp
index 2f34add2..1bf9e8ec 100644
--- a/agg-plot/lua-plot.cpp
+++ b/agg-plot/lua-plot.cpp
@@ -548,7 +548,7 @@ plot_save_svg (lua_State *L)
if (!f)
return luaL_error(L, "cannot open filename: %s", filename);
- canvas_svg canvas(f);
+ canvas_svg canvas(f, h);
agg::trans_affine m(w, 0.0, 0.0, -h, 0.0, h);
canvas.write_header(w, h);
p->draw(canvas, m);
generated by cgit v1.2.3 (git 2.39.1) at 2025年10月03日 04:29:55 +0000

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