Skip to main content

visualization package

Project description

Python Versions License: GPL v3 pre-commit Language grade: Python Documentation Status codecov

GitHub last commit GitHub forks GitHub Repo stars

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Downloads Downloads Downloads PyPI - Downloads GitHub all releases Conda Version PyPI version Anaconda-Server Badge Conda Platforms Join the chat at https://gitter.im/Hapi-Nile/Hapi

cleopatra - matplotlib utility package

cleopatra is a Python package providing fast and flexible way to build visualize data using matplotlib. it provides functionalities to handle 3D arrays and perform various operations on them, such as plotting, animating, and displaying the array. it also provides functionalities for creating statistical plots,

Main Features

The Array class has the following functionalities:

  • Initialize an array object with the provided parameters.
  • Plot the array with optional parameters to customize the appearance and display cell values.
  • Animate the array over time with optional parameters to customize the animation speed and display points.
  • Display the array with optional parameters to customize the appearance and display point IDs.

The Statistic module provides a class for creating statistical plots, specifically histograms. The class, Statistic, is designed to handle both 1D (single-dimensional) and 2D (multi-dimensional) data.

Installing cleopatra

Installing cleopatra from the conda-forge channel can be achieved by:

conda install -c conda-forge cleopatra

It is possible to list all the versions of cleopatra available on your platform with:

conda search cleopatra --channel conda-forge

Install from GitHub

to install the last development to time, you can install the library from GitHub

pip install git+https://github.com/Serapieum-of-alex/cleopatra

pip

to install the last release, you can easily use pip

pip install cleopatra==0.5.1

Quick start

  >>> import cleopatra

other code samples

======= History

0.1.0 (2022-05-24)

  • First release on PyPI.

0.2.4 (2022-12-26)

  • bump up numpy versions to 1.23.5, add pandas

0.2.5 (2022-12-26)

  • plot array with discrete bounds takes the bounds as a parameter

0.2.6 (2023-01-31)

  • bump up versions
  • add serapeum_utils as a dependency

0.2.7 (2023-01-31)

  • bump up numpy to version 1.24.1

0.3.0 (2023-04-11)

  • change API to work completly with numpy array inputs
  • chenge to conda config
  • add hpc-utils to filter and access arrays
  • restructure the whole modules to array, statistics, and styles modules.
  • all modules has classes.
  • save animation function using ffmpeg.

0.3.1 (2023-04-17)

  • plot RGB plots

0.3.2 (2023-04-23)

  • bump up hpc version

0.3.3 (2023-04-25)

  • change the default value for the color bar label.

0.3.4 (2023-04-26)

  • pass the plot kwargs to the init of the array to scale the color bar using the vmin and vmax.

0.3.5 (2023-8-31)

  • Update dependencies

0.4.0 (2023-9-24)

  • Add a colors module to handle issues related to
    • Converting colors from one format to another
    • Creating colormaps

0.4.1 (2024-1-11)

  • add extent to the array plot.

0.4.2 (2024-06-30)

  • Update dependencies

0.4.3 (2024-07-13)

  • Add extent to the array plot when plotting an rgb array.
  • Add ax, and fig parameters to the Array constructor method to take an Axes and plot the array on it.
  • Add __str__ to the Array class.

0.5.0 (2024-07-22)

ArrayGlyph ^^^^^^^^^^

  • rename the Array class to ArrayGlyph.
  • add scale_percentile method to the Array class to scale the array using the percentile values.
  • the statistic.histogram can plot multiple column array.
  • change the color_scale values to be string (linear, "power", ...)
  • the kwargs can be provided to the constructor or the plot method to plot the array.

Colors ^^^^^^

  • rename the get_rgb to to_rgb
  • add get_type to get the type of the color.
  • add to_hex to convert the color to hex.
  • add to_rgb to convert the color to rgb.

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

cleopatra-0.5.1.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

cleopatra-0.5.1-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file cleopatra-0.5.1.tar.gz.

File metadata

  • Download URL: cleopatra-0.5.1.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for cleopatra-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b4d6885f5841839510589b6efe260a429e68ce09655137b62b821a181af50c63
MD5 8822e08f1cdb6f00bd136defdd28dcd6
BLAKE2b-256 37d1436a6caf303bc508852082e3388d3ed5bda75450588098c1ba7b54b5f438

See more details on using hashes here.

File details

Details for the file cleopatra-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: cleopatra-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for cleopatra-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 624c47f7d95194657a4e02a49d1d3b208ccbf11db733d3717cb3eded7d097782
MD5 b6ac58a14639f4f18e3d996b5994a30f
BLAKE2b-256 4d4d500c731b8bb24fd1c35ebcd0ed9d371b5bd052182a0bf9787c0ca5809934

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