Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/gnuplot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilhem Cheron <guilhem.cheron@inria.fr>2016-05-26 22:03:49 +0300
committerGuilhem Cheron <guilhem.cheron@inria.fr>2016-05-26 22:03:49 +0300
commit7648d21bb2dec293571bcb72b44fef10dea6f2ea (patch)
treeb694769af710d1fcc4ec39325f9fa9575a50dfa9
parent24c3e010079e4c7b17d845495e2651d020a61f57 (diff)
add logscale support on y-axis
-rw-r--r--gnuplot.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/gnuplot.lua b/gnuplot.lua
index 578f56c..cb96aa0 100644
--- a/gnuplot.lua
+++ b/gnuplot.lua
@@ -908,6 +908,19 @@ function gnuplot.grid(toggle)
refreshCurrent()
end
end
+function gnuplot.logscale(toggle)
+ if not _gptable.hasrefresh then
+ print('gnuplot.logscale disabled')
+ return
+ end
+ if toggle then
+ writeToCurrent('set logscale y')
+ refreshCurrent()
+ else
+ writeToCurrent('unset logscale y')
+ refreshCurrent()
+ end
+end
function gnuplot.movelegend(hloc,vloc)
if not _gptable.hasrefresh then
print('gnuplot.movelegend disabled')