Skip to content

horowitz-lab/centered-heatmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

centered-heatmap

A heatmap where the pixels are centered on the values

Example usage:

centered-heatmap.heatmap(df) # df is a pandas dataframe

or

  import matplotlib.pyplot as plt
  from centered-heatmap import listwrap
  plt.pcolormesh( listwrap(df.columns),listwrap(df.index), df ) # df is a pandas dataframe

or if you don't use pandas, you can use pcolormesh however you normally do. Just use listwrap to center the pixels.

  import matplotlib.pyplot as plt
  from centered-heatmap import listwrap
  plt.pcolormesh( listwrap(coordinates_list_1) , listwrap(coordinates_list_2) , values_array ) 

About

A heatmap where the pixels are centered on the values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages