Socket
Socket
Sign inDemoInstall

heatmap-greatseal

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heatmap-greatseal

A package for simple matrix operations and visualization


Maintainers
1

Heatmap

Matrix operations and visualization

Installation

pip install heatmap_greatseal

Usage

import heatmap_greatseal.heatmap_greatseal as hm

You can easily generate custom sized matrix with upper and lower limit. It creates the matrix of h and w size of integers.

hm.generate(h,w,min,max)

By using grid or gaussian visualization it calculates every cell's value ratio to neighbouring cells' values.
Grid visualization uses no interpolation and blur:

hm.grid_visualize(matrix)

However, gaussian visualization creates a heatmap rather than a grid of the matrix using gaussian interpolation:

hm.gaussian_visualize(matrix)

If you want to create multiple figures at the same time, they will not show simultaneously, unless you give a False parameter to every function except the last one called::

hm.grid_visualize(matrix, False)
hm.grid_visualize(matrix)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc