A plugin for Lite XL that graphs y=x equations.
To use, open it through the command palette as you would with any other command.
x
is the plugin's independent variable.
You can also use Lua's functions, but you need to wrap them inside parentheses and then call them, like
(function(x) --[[your code here]] end)(x)
You can configure the grapher's settings through the user module:
local conf = config.plugins.equationgrapher
conf.point_size = 3 -- size of the grapher's dots
conf.steps = 10000 -- amount of steps that the equation takes to render
conf.background_color = style.background -- self explanatory
conf.cross_color = style.text -- color of the background's cross.
conf.graph_color = style.caret -- color of the graph.
conf.font = style.font -- yes