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 = {common.color("#F8F8F8")} -- self explanatory
conf.cross_color = {common.color("#999999")} -- color of the background's cross.
conf.graph_color = {common.color("#000000")} -- color of the graph.