Skip to content

Commit dd56a75

Browse files
committed
Merge pull request #29 from gcheron/logscale
add logscale support on y-axis
2 parents 24c3e01 + 7648d21 commit dd56a75

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

gnuplot.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,19 @@ function gnuplot.grid(toggle)
908908
refreshCurrent()
909909
end
910910
end
911+
function gnuplot.logscale(toggle)
912+
if not _gptable.hasrefresh then
913+
print('gnuplot.logscale disabled')
914+
return
915+
end
916+
if toggle then
917+
writeToCurrent('set logscale y')
918+
refreshCurrent()
919+
else
920+
writeToCurrent('unset logscale y')
921+
refreshCurrent()
922+
end
923+
end
911924
function gnuplot.movelegend(hloc,vloc)
912925
if not _gptable.hasrefresh then
913926
print('gnuplot.movelegend disabled')

0 commit comments

Comments
 (0)