Skip to main content

A small graphing tool for functions, points, equations and more

Project description

Kaxe

BoxPlot

Kaxe is an lightweight graphing tools for functions, equations, points and more written in pure python

Plots

Kaxe is build to be simple, flexiable and equipped with an flat learning curve. Kaxe supports diffrent plotting windows including

2D Plots

BoxPlot

  • A standard basis plotting window
  • Logaritchmic plot
  • Polar plot
  • Box plot
  • Empty plot

3D Plots

3DPlot

  • Boxed plot
  • Frame plot
  • Empty

Gettings started

To get started create a plot object

import kaxe

plt = kaxe.Plot(window:list)

plt.save("plot.png")

Standard plotting window

Alternatively other windows can be used

Polarplot

kaxe.PolarPlot(window:list)

Polar plot

Box plot

kaxe.BoxPlot(window:list)

Box plot

plt = kaxe.LogPlot(window:list, firstAxisLog:bool=False, secondAxisLog:bool=True)

Adding objects to window

Adding objects to a window is as easy as

plt.add(obj:object)

Objects

Kaxe supports diffrent objects

To add a legend for any object do the following

obj.legend(text)

Function

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)

Functions

Points

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
)

Points

Equation

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)

Equations

Styling

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.A4Large)

Axis titles can be changed with

plot.title(*titles:str)

Examples

Style3DPlot PrettyPlot3D2 Style3DPlot3 AllLegends

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaxe-0.6.4.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaxe-0.6.4-py3-none-any.whl (3.6 MB view details)

Uploaded Python 3

File details

Details for the file kaxe-0.6.4.tar.gz.

File metadata

  • Download URL: kaxe-0.6.4.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for kaxe-0.6.4.tar.gz
Algorithm Hash digest
SHA256 13474edac478881a00cac8a121958b0c7acc1500dc2a4f9c7a9f789be87c876c
MD5 66c923b32b4fcae3c585523001bdcc4f
BLAKE2b-256 9b8b3d3ed95ad97cdbd05f471a14ee148c57c4019acf795f2a15213b8903d84e

See more details on using hashes here.

File details

Details for the file kaxe-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: kaxe-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for kaxe-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 16cd8b07acc4e9f45ed54b6f87fa8f3821ee220bb0ef9d4d340b4fb8aab3f86f
MD5 09c993f0558a080bec5fda7233e5efc5
BLAKE2b-256 3b685366c781702c2ccbb2ae4c2e6f04d489dc9fe63630d7101b1bf657728855

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page