Skip to main content

chroptiks

Description

chroptiks is a Python package that offers advanced plotting utilities, making it easier to create complex and informative visualizations. It extends the functionality of libraries like matplotlib and scipy, providing a user-friendly interface for a variety of plotting needs.

Requirements

Python libraries: matplotlib, numpy, scipy

Installation

To install chroptiks, run:

pip install chroptiks

or if you want to install from source:

git clone https://github.com/cagostino/chroptiks.git
cd chroptiks
python setup.py install

Features

—2D Histograms (hist2d): Easily create 2D histograms for data analysis.

—1D Histograms (hist1d): Simplify the process of creating and customizing 1D histograms.

—Scatter Plots (scatter): Enhanced functionality for scatter plot creation.

—3D Plots (plot3d): Intuitive tools for 3D data visualization.

—Bar Charts (plotbar): Quick and customizable bar chart creation.

Example usage

hist2d, hist1d, scatter, plot3d, plotbar are now ready to be used as per their defined functionalities and plots are generated through each of their plot methods. For example:

import numpy as np
from chroptiks.plotting_utils import hist2d

x = np.linspace(-1,1, 100000)+np.random.normal(0,.1, size=100000)
y = x**(3)+np.random.normal(0, 0.3, size=100000)
z =  np.random.normal(size=100000)

hist2d.plot(x,y,nx=200,ny=200)

hist2d.plot(x,y,nx=40, ny=40, ccode = z, ccodename='Z', xlabel='X', ylabel='Y')

hist2d.plot(x,y,nx=200,ny=200,bin_y=True, size_y_bin=0.1, xlabel='X', ylabel='Y', percentiles=False)

from chroptiks.plotting_utils import hist1d

hist1d.plot(z, range=(-2,2), bins=100, xlabel='Z', ylabel='Counts')

hist1d.plot(z, range=(-2,2), bins=100, xlabel='Z', ylabel='Counts', normed=True)

hist1d.plot(z, range=(-4,4), bins=100, xlabel='Z', ylabel='Cumulative Count', cumulative=True)



from chroptiks.plotting_utils import scat

#scat
scat.plot(x,z)

#scat with color-code
scat.plot(x,y, ccode=z, color=None, edgecolor=None, vmin=-0.5, vmax=0.5)
#note if you use ccode to color the points, you must set color to None, and I would advise you to set edgecolor to None as well or else each will have outlines.

#scat with y-binning
scat.plot(x, y, bin_y=True, size_y_bin=0.1, percentiles=True, xlabel='X', ylabel='Z', aspect='auto')

Metadata

Release files for chroptiks 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chroptiks 0.1.7
File Size Uploaded
chroptiks-0.1.7.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chroptiks 0.1.7
File Interpreter ABI Platform
chroptiks-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / chroptiks-0.1.7.tar.gz

Download URL chroptiks-0.1.7.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
021e1372a6061e70e08c3dcfea563b7f23b16217dacd64e08c51b4da60a2c607
BLAKE2b-256 checksum
How to use checksums
d2ee12267ad3d2670eb4ca28994b7a6ed77715c78e2805557ec0064d7b450af4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / chroptiks-0.1.7-py3-none-any.whl

Download URL chroptiks-0.1.7-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d26a073dcc55f7128e4fb967f9a7394ed939af19852d2027c5c36673b5843462
BLAKE2b-256 checksum
How to use checksums
d648ecefbfb5b98fea622e72f4f7f8c4611af1e85540e8708f2c05c5d36cf6ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

1 release file

0.1.4

1 release file

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page