Skip to main content

Usefull librairy to plot graph

Project description

PrintGraph

Description

PrintGraph is a simple python script that prints a graph.

Parameters

  • listX (list): List of list, each sublist should contain x coordinates of every dot
  • listY (list): List of list, each sublist should contain y coordinates of every dot
  • listLabel (list) : List of string, label of each curve
  • title (str) : Title of the plot
  • xLabel (str) : Label of x axis (optional) (default : X Axis)
  • yLabel (str) : Label of y axis (optional) (default : Y Axis)
  • width (int) : Width of the plot (optional) (default : 10)
  • height (int) : Height of the plot (optional) (default : 6)
  • xScale (str) : Scale of x axis (optional) (linear, log, symlog, logit) (default : log)
  • yScale (str) : Scale of y axis (optional) (linear, log, symlog, logit) (default : log)

Usage

xVal = [[10, 100, 1000, 10000, 100000],
          [10, 100, 1000, 10000, 100000, 1000000],
          [10, 100, 1000, 10000, 100000]]

yVal = [[57294, 607418, 6755705, 331559735, 33178671213],
          [45717, 299134, 1715546, 10415336, 157352093, 12800502882], [69268, 2490323, 5273649, 71921675, 3268629864]]
curvesLabel = ["HeapTree", "ArrayList", "HeapArray"]
name = 'Compare sort algorithms on random lists'
xLabel = 'List size'
yLabel = 'Execution time (nano seconds)'
xScale = "log"
yScale = "log"

curves(xVal, yVal, curvesLabel, name, xLabel, yLabel, xScale=xScale, yScale=yScale)

Plot :

Plot example

Dependencies

  • Python 3.8 or higher
  • Matplotlib

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

montiege-0.2.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

montiege-0.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file montiege-0.2.0.tar.gz.

File metadata

  • Download URL: montiege-0.2.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for montiege-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bfd839c01d2bf2729c548d0ab1ce1619926be88a573d4ea1ed5604fcefee0654
MD5 f5666f2e10763af9d4b15f0a22fb377c
BLAKE2b-256 68c6355900c020632e4e24bd959b4e0ef3e2960adc932968508611f05ac3e781

See more details on using hashes here.

Provenance

File details

Details for the file montiege-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: montiege-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for montiege-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a43b99af81072d2aa574ac8f5a9999f1719e108d85cabf49ff33b1083dad16e
MD5 d18af88f5ca337df6d3bc26f57d2978b
BLAKE2b-256 6c016fbdfd1fa7447058158eaf220c22ac9875c28eec6f504bc20ad9b8b214c9

See more details on using hashes here.

Provenance

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