Skip to main content

Some utils by Dor Miron

Project description

Afori Utils

This package contains an aggregation of tools used by Dor Miron. Afori is my cat, and he contributed some changes now and then.

Installation

Run the following to install:

pip install afori_utils

Usage

from afori_utils import pyplot_utils
from afori_utils import sync_utils
from afori_utils import debug_utils

####Easily combile plotting function to subplots

import matplotlib.pyplot as plt
from afori_utils.pyplot_utils import plot_to_ax

def some_plotting_function(arg1, args2, ax=None):
    x = something(arg1, arg2)
    y = something_else(arg1, arg2)
    ax.plot(x, y)


def other_plotting_function(arg1, ax=None):
    x = something(arg1)
    y = something_else(arg1)
    ax.plot(x, y)

# Possibility 1
some_plotting_function(arg1, args2)

# Possibility 2
fig, ax_list = plt.subplots(2, 1)
some_plotting_function(ax=ax_list[0])
other_plotting_function(ax=ax_list[1])
plt.show()

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

afori-utils-1.0.2.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

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

afori_utils-1.0.2-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file afori-utils-1.0.2.tar.gz.

File metadata

  • Download URL: afori-utils-1.0.2.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for afori-utils-1.0.2.tar.gz
Algorithm Hash digest
SHA256 96ac7d14f9fd4a80435885dc2849b70eca4fc81973f9fa7ab49657bd2ded1968
MD5 4f033e39a345a29bae66ce1654499418
BLAKE2b-256 84e33afb02731d7e40151ed2713e305cbbf89021f305bda7b7635c942f8b6c11

See more details on using hashes here.

File details

Details for the file afori_utils-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: afori_utils-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for afori_utils-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78606bc1eb784f8b1c1b87cd4c34682b24cc63a450a8faf645e299d68ed2f0f7
MD5 9e73963ca9a0dab5ec4c1cad51065a20
BLAKE2b-256 487ec6cb601bf16aa17eef3386b57f58bc25b79023adb9cbb887a8404139e0f3

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