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.0.tar.gz (35.9 kB view hashes)

Uploaded Source

Built Distribution

plotski-0.2.0-py3-none-any.whl (27.7 kB view hashes)

Uploaded Python 3

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