Skip to content

Commit 7648d21

Browse files
committed
add logscale support on y-axis
1 parent 24c3e01 commit 7648d21

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

gnuplot.lua

+13
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)