Skip to main content

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

Project description

Kaxe

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

BoxPlot

Plots

Kaxe supports diffrent plotting windows including

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

Kaxe is build to be simple, flexiable and equipped with an flat learning curve.

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

Axis titles can be changed with

plot.title(*titles:str)

Project details


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.1.0.tar.gz (52.1 kB view details)

Uploaded Source

Built Distribution

kaxe-0.1.0-py3-none-any.whl (57.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kaxe-0.1.0.tar.gz
  • Upload date:
  • Size: 52.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for kaxe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 83ea5fa004460765b39d9c5fc2f8c18a153b033bdba26e5d5a780fd180597d7f
MD5 84aa214fbd49dca36d5b1b6a216bd0b9
BLAKE2b-256 7a5749685ed0c774a421f2d2c0185c85854131bbf688741f7999ae40b7374778

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kaxe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 57.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for kaxe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 155bc89fbf8ea647a2401c784c8a100abd517b42f776ade999d9b97465681b71
MD5 d6b19605d17b7f1e2de284b235a49a8a
BLAKE2b-256 6154cdadb4c707fa654cb75fad86051b92ba20e4517784c18dbf177c91291710

See more details on using hashes here.

Supported by

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