Skip to main content

Convenient interactive plotting in Python.

Project description

plotski

PyPI Docs Updates tests

Package to generate easily generate interactive figures and export them to HTML documents.

The idea behind this package is to provide an easy-to-use interface to generate structured HTML documents with interactive visualisations. The library is not meant to fill every gap but to provide several common plot types such as line, scatter or image type-plots and additional annotations and enable easy exportation to HTML document.

All plots are generated using the excellent bokeh library.

Typical usage might be

import numpy as np
from plotski import PlotStore

x = np.arange(100)
y = np.random.randint(0, 500, 100)

store = PlotStore(
    ".",  # this will save the plot to current working directory.
)
tab_name = store.add_tab("Random plot")
# data is provided in dictionary. Data validation happens during plot generation
store.plot_spectrum(tab_name, {"x": x, "y": y})
# this will generate the HTML document (in memory using temporary file)
store.show()
# you can instead save to disk which will save the document to disk
store.save()

Features

Planned

  • Improve generation of layouts.
  • Improve modification of plot parameters.
  • Add custom JS support.

Licence

Free software: MIT license

Documentation

https://plotski.readthedocs.io

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

plotski-0.2.1.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

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

plotski-0.2.1-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file plotski-0.2.1.tar.gz.

File metadata

  • Download URL: plotski-0.2.1.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for plotski-0.2.1.tar.gz
Algorithm Hash digest
SHA256 37f3d38c2f7e038d41d930087489ca16911df390b001f39c5af3aefee8c94857
MD5 7dbe74277da8f2abeaa26c9adf279e92
BLAKE2b-256 b72a08e0611b5ef101d5ba6f3b1b4026005eaa04833f5bcc4200b3f19a7d784e

See more details on using hashes here.

File details

Details for the file plotski-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: plotski-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for plotski-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 474e3936b43953c5c11aecfda0e1b13ed29061448e32eaa53b6e88a070bb12fe
MD5 cc40e9c5fad92178b5b16de3bf8fd182
BLAKE2b-256 470705ac88e26a9d4fb8940a4932ea14f79a7c047585703f30ecb211d85edb86

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