chroptiks


Namechroptiks JSON
Version 0.1.7 PyPI version JSON
download
home_pagehttps://github.com/cagostino/chroptiks
SummaryA set of helper functions for quickly making matplotlib plots with a high number of built-in options.
upload_time2024-04-29 06:41:09
maintainerNone
docs_urlNone
authorChris Agostino
requires_pythonNone
licenseMIT
keywords matplotlib plotting utilities
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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:

.. code:: bash

   pip install chroptiks

or if you want to install from source:

.. code:: bash

   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:

.. code:: python


   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')


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cagostino/chroptiks",
    "name": "chroptiks",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "matplotlib plotting utilities",
    "author": "Chris Agostino",
    "author_email": "cjp.agostino@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d2/ee/12267ad3d2670eb4ca28994b7a6ed77715c78e2805557ec0064d7b450af4/chroptiks-0.1.7.tar.gz",
    "platform": null,
    "description": "chroptiks\n=========\n\nDescription\n-----------\n\nchroptiks is a Python package that offers advanced plotting utilities,\nmaking it easier to create complex and informative visualizations. It\nextends the functionality of libraries like matplotlib and scipy,\nproviding a user-friendly interface for a variety of plotting needs.\n\nRequirements\n------------\n\nPython libraries: matplotlib, numpy, scipy\n\nInstallation\n------------\n\nTo install chroptiks, run:\n\n.. code:: bash\n\n   pip install chroptiks\n\nor if you want to install from source:\n\n.. code:: bash\n\n   git clone https://github.com/cagostino/chroptiks.git\n   cd chroptiks\n   python setup.py install\n\nFeatures\n--------\n\n\u20142D Histograms (hist2d): Easily create 2D histograms for data analysis.\n\n\u20141D Histograms (hist1d): Simplify the process of creating and\ncustomizing 1D histograms.\n\n\u2014Scatter Plots (scatter): Enhanced functionality for scatter plot\ncreation.\n\n\u20143D Plots (plot3d): Intuitive tools for 3D data visualization.\n\n\u2014Bar Charts (plotbar): Quick and customizable bar chart creation.\n\nExample usage\n-------------\n\nhist2d, hist1d, scatter, plot3d, plotbar are now ready to be used as per\ntheir defined functionalities and plots are generated through each of\ntheir plot methods. For example:\n\n.. code:: python\n\n\n   import numpy as np\n   from chroptiks.plotting_utils import hist2d\n\n   x = np.linspace(-1,1, 100000)+np.random.normal(0,.1, size=100000)\n   y = x**(3)+np.random.normal(0, 0.3, size=100000)\n   z =  np.random.normal(size=100000)\n\n   hist2d.plot(x,y,nx=200,ny=200)\n\n   hist2d.plot(x,y,nx=40, ny=40, ccode = z, ccodename='Z', xlabel='X', ylabel='Y')\n\n   hist2d.plot(x,y,nx=200,ny=200,bin_y=True, size_y_bin=0.1, xlabel='X', ylabel='Y', percentiles=False)\n\n   from chroptiks.plotting_utils import hist1d\n\n   hist1d.plot(z, range=(-2,2), bins=100, xlabel='Z', ylabel='Counts')\n\n   hist1d.plot(z, range=(-2,2), bins=100, xlabel='Z', ylabel='Counts', normed=True)\n\n   hist1d.plot(z, range=(-4,4), bins=100, xlabel='Z', ylabel='Cumulative Count', cumulative=True)\n\n\n\n   from chroptiks.plotting_utils import scat\n\n   #scat\n   scat.plot(x,z)\n\n   #scat with color-code\n   scat.plot(x,y, ccode=z, color=None, edgecolor=None, vmin=-0.5, vmax=0.5)\n   #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.\n\n   #scat with y-binning\n   scat.plot(x, y, bin_y=True, size_y_bin=0.1, percentiles=True, xlabel='X', ylabel='Z', aspect='auto')\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A set of helper functions for quickly making matplotlib plots with a high number of built-in options.",
    "version": "0.1.7",
    "project_urls": {
        "Homepage": "https://github.com/cagostino/chroptiks"
    },
    "split_keywords": [
        "matplotlib",
        "plotting",
        "utilities"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d648ecefbfb5b98fea622e72f4f7f8c4611af1e85540e8708f2c05c5d36cf6ad",
                "md5": "d985868daeece74ec37fcced7996bb0d",
                "sha256": "d26a073dcc55f7128e4fb967f9a7394ed939af19852d2027c5c36673b5843462"
            },
            "downloads": -1,
            "filename": "chroptiks-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d985868daeece74ec37fcced7996bb0d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7807,
            "upload_time": "2024-04-29T06:41:06",
            "upload_time_iso_8601": "2024-04-29T06:41:06.214024Z",
            "url": "https://files.pythonhosted.org/packages/d6/48/ecefbfb5b98fea622e72f4f7f8c4611af1e85540e8708f2c05c5d36cf6ad/chroptiks-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d2ee12267ad3d2670eb4ca28994b7a6ed77715c78e2805557ec0064d7b450af4",
                "md5": "7c60df334d264dd50c35b527c05a64b6",
                "sha256": "021e1372a6061e70e08c3dcfea563b7f23b16217dacd64e08c51b4da60a2c607"
            },
            "downloads": -1,
            "filename": "chroptiks-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "7c60df334d264dd50c35b527c05a64b6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8973,
            "upload_time": "2024-04-29T06:41:09",
            "upload_time_iso_8601": "2024-04-29T06:41:09.807985Z",
            "url": "https://files.pythonhosted.org/packages/d2/ee/12267ad3d2670eb4ca28994b7a6ed77715c78e2805557ec0064d7b450af4/chroptiks-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-29 06:41:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cagostino",
    "github_project": "chroptiks",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "chroptiks"
}
        
Elapsed time: 0.23034s