gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--agg-plot/text.cpp 2
-rw-r--r--graph-init.lua 5
2 files changed, 4 insertions, 3 deletions
diff --git a/agg-plot/text.cpp b/agg-plot/text.cpp
index 1aa63ba6..8d2390fb 100644
--- a/agg-plot/text.cpp
+++ b/agg-plot/text.cpp
@@ -71,6 +71,8 @@ namespace draw {
if (!need_rotate) {
x = x + m.tx;
y = svg_y_coord(y + m.ty, h);
+ } else {
+ y = -y;
}
const char* cont = m_text_buf.cstr();
diff --git a/graph-init.lua b/graph-init.lua
index 8510a2f5..5532c70f 100644
--- a/graph-init.lua
+++ b/graph-init.lua
@@ -203,9 +203,8 @@ graph.color = {
}
local bcolors = {'red', 'blue', 'green', 'magenta', 'cyan', 'yellow'}
-local wcolors = {0x3366ff, 0xcc0000, 0xcc33ff, 0xff3366, 0xffcc33, 0x66ff33, 0x33ffcc}
--- local wcolors = {0x6699ff, 0xcc66ff, 0xff6699, 0xffcc66, 0x99ff66, 0x66ffcc}
--- local wcolors = {0x003399, 0x660099, 0x990033, 0x996600, 0x339900, 0x009966}
+-- colors from a popular spreadsheet application
+local wcolors = {0x4f81bd, 0xc0504d, 0x9bbb59, 0x695185, 0x3c8da3, 0xcc7b38}
function graph.rainbow(n)
local p = #bcolors
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月17日 12:06:03 +0000

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