diff options
author | Soumith Chintala <soumith@gmail.com> | 2016-05-26 22:15:42 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2016-05-26 22:15:42 +0300 |
commit | dd56a75911f73c15d063ef5de7e067fb6bf6aaf2 (patch) | |
tree | b694769af710d1fcc4ec39325f9fa9575a50dfa9 | |
parent | 24c3e010079e4c7b17d845495e2651d020a61f57 (diff) | |
parent | 7648d21bb2dec293571bcb72b44fef10dea6f2ea (diff) |
Merge pull request #29 from gcheron/logscale
add logscale support on y-axis
-rw-r--r-- | gnuplot.lua | 13 |
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') |