Skip to content

jlustigy/jakely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jakely

A suite of simple python tools


Examples

import jakely

ColorTable

Tables of numerical values are inefficient at drawing the eye to the largest and smallest values. Use ColorTable to create tables that color the grid cells in a table relative to all other values in the table.

jakely.plot.test_colortable()

Hexbin Dots

Ever wanted to encode more information in a 2D density histogram? With jakely.plot_hexbin_dots() you can visualize intrisic properties of the points that fall within each histogram bin to trace gradients in a variable z atop an x,y density distribution.

import numpy as np
import matplotlib.pyplot as plt
from matplotlib import gridspec

# Set number of scatter points
N = 5000

# Generate random data
x = np.random.normal(size=N)
y = np.random.normal(size=N)
z = 10 * x  # In this example z is correlated with x

# Create hexbin dots plot
fig = plot_hexbin_dots(x,y,z, label_hex='Hex Density', label_dots='Median Value per Hex')

# Customize axes with returned figure object
ax = fig.get_axes()[2]
ax.set_xlim([-4,4]); ax.set_ylim([-4,4])
ax.set_xlabel('x [units]'); ax.set_ylabel('y [units]') 

About

A suite of simple python tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published