Kaxe is an lightweight graphing tools for functions, equations, points and more written in pure python
Kaxe is build to be simple, flexiable and equipped with an flat learning curve. Kaxe supports diffrent plotting windows including
- A standard basis plotting window
- Logaritchmic plot
- Polar plot
- Box plot
- Empty plot
- Boxed plot
- Frame plot
- Empty
To get started create a plot object
import kaxe
plt = kaxe.Plot(window:list)
plt.save("plot.png")
Alternatively other windows can be used
kaxe.PolarPlot(window:list)
kaxe.BoxPlot(window:list)
plt = kaxe.LogPlot(window:list, firstAxisLog:bool=False, secondAxisLog:bool=True)
Adding objects to a window is as easy as
plt.add(obj:object)
Kaxe supports diffrent objects
To add a legend for any object do the following
obj.legend(text)
kaxe.Function(f:FunctionType,
color:tuple=None,
width:int=10,
*args,
**kwargs
)
To add a fill under a graph use the fill method
Function.fill(x0, x1)
To add a tangent to the function use the tangent method
Function.tangent(x0)
Points in two lists x and y can be added to windows using
kaxe.Points(
x:list|tuple,
y:list|tuple,
color:tuple,
size:int,
symbol:str=symbols.CIRCLE,
connect:bool=False
)
Equations can be expressed as to functions
kaxe.Equation(
left:FunctionType,
right:FunctionType,
color:tuple,
width:int
)
E. g
kaxe.Equation(lambda x,y: 2*x, lambda x,y: y)
For styles avaliable use
plot.help()
For setting a style use
plot.style({"Marker.showLine":False}, width=2000)
Or use a predetermined theme with
plot.theme(kaxe.themes.A4Half)
Axis titles can be changed with
plot.title(*titles:str)