d3heatmap
d3heatmap is a Python package to create interactive heatmaps based on d3js.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.7%) to scientific vocabulary
Keywords
Repository
d3heatmap is a Python package to create interactive heatmaps based on d3js.
Basic Info
- Host: GitHub
- Owner: erdogant
- License: other
- Language: HTML
- Default Branch: master
- Homepage: https://erdogant.github.io/d3heatmap
- Size: 1.04 MB
Statistics
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
- Releases: 14
Topics
Metadata Files
README.md
This library is since 18-01-2023 fully implemented in D3Blocks. This repo will be froozen at v0.2.3 and not updated anymore. Please use heatmap in D3Blocks for updates and further support.
d3heatmap
d3heatmap is a Python package to create interactive heatmaps based on d3js.
* The aim of d3heatmap is to create interactive heatmaps that can be used stand-alone and being visual attractive.
* This library does not require any additional installation of javascript, or downloads or setting paths to your systems environments. You just need python and pip install this library. There are two main functions to create a heatmap and there are some differences between the two. Read below for more details. Have fun!
``` pip install d3blocks
Import
from d3blocks import D3Blocks
Initialize
d3 = D3Blocks()
Load example data
df = d3.import_example('stormofswords') df = d3.vec2adjmat(df['source'], df['target'], weight=df['weight'], symmetric=True)
Plot
d3.heatmap(df) ```
Functionalities
d3heatmap.matrix
* Allows none symetric adjacency matrices.
* Colormap can be changed.
* No clustering.
* round-ish elements.
d3heatmap.heatmap
* Allows Clustering.
* Colormap is fixed.
* Advanced cluster coloring. Clusters are colored and within each cluster the color is incremental based on the value.
* Adjacency matrix must be symetric.
Star the D3Blocks repo if you like it! ⭐️
Installation
pip install d3heatmap
- Alternatively, install d3heatmap from the GitHub source:
bash git clone https://github.com/erdogant/d3heatmap.git cd d3heatmap pip install -U .
Import d3heatmap
python
from d3heatmap import d3heatmap as d3
Example 1: plot using the heatmap function
```python df = d3.import_example()
Create heatmap
paths = results = d3.heatmap(df) ```
Klik on the figure for the interactive example.
Example 2: plot using the matrix function
```python df = d3.import_example(size=(6,20))
Create heatmap
paths = d3.matrix(df) ```
Example 3: plot using the matrix function
```python
The dataframe contains more columns then rows. Adjust the size and color differently.
df = d3.import_example(size=(6,20))
Create heatmap
paths = d3.matrix(df, fontsize=10, title='Hooray!', description='d3 matrix is created using https://github.com/erdogant/d3heatmap.', path='c:/temp/example/d3_matrix.html', width=600, height=300, cmap='interpolateGreens', vmin=1) ```
Example 4: Matrix with parameters changed:
```python
The dataframe contains more columns then rows. Adjust the size and color differently.
df = d3.import_example(size=(6,20))
Create heatmap
paths = d3.matrix(df, fontsize=10, title='Hooray!', description='d3 matrix is created using https://github.com/erdogant/d3heatmap.', path='c:/temp/example/d3_matrix.html', width=600, height=300, cmap='interpolateGreens', vmin=1) ```
Example 4: Comparison heatmap vs matrix:
There are quit some differences between the heatmap vs matrix functionality.
python
df = d3.import_example()
results = d3.heatmap(df, title='d3heatmap with the heatmap function.', path='heatmap.html')
results = d3.matrix(df, title='d3heatmap with the matrix function.', cmap='interpolatePRGn', path='matrix.html', width=700, height=700)
Citation
Please cite d3heatmap in your publications if this is useful for your research. See right column for citation information.
References
- https://github.com/erdogant/d3heatmap
- https://d3-graph-gallery.com
- https://https://d3js.org/
Maintainer
Owner
- Name: Erdogan
- Login: erdogant
- Kind: user
- Location: Den Haag
- Website: https://erdogant.github.io/
- Repositories: 51
- Profile: https://github.com/erdogant
Machine Learning | Statistics | Bayesian | D3js | Visualizations
Citation (CITATION.cff)
# YAML 1.2
---
authors:
-
family-names: Taskesen
given-names: Erdogan
orcid: "https://orcid.org/0000-0002-3430-9618"
cff-version: "1.1.0"
date-released: 2019-12-28
keywords:
- "heatmap"
- "interactive"
- "clustering"
- "d3js"
- "python"
license: "MIT"
message: "If you use this software, please cite it using these metadata."
repository-code: "https://github.com/erdogant/d3heatmap"
title: "Interactive and standalone heatmaps (d3heatmap)"
version: "0.1.7"
...
GitHub Events
Total
- Watch event: 2
Last Year
- Watch event: 2
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| erdogant | e****t@g****m | 40 |
| Erdogan Taskesen | 3****t | 33 |
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 827 last-month
- Total docker downloads: 11
- Total dependent packages: 2
- Total dependent repositories: 4
- Total versions: 12
- Total maintainers: 1
pypi.org: d3heatmap
Python package to create interactive heatmap based on d3js.
- Homepage: https://github.com/erdogant/d3heatmap
- Documentation: https://d3heatmap.readthedocs.io/
- License: MIT License
-
Latest release: 0.2.3
published over 3 years ago
Rankings
Maintainers (1)
Dependencies
- pipinstallspyder-kernels * development
- rst2pdf * development
- sphinx_rtd_theme * development
- matplotlib *
- numpy *
- pandas *
- tqdm *
- wget *
- clusteval *
- ismember *
- numpy *
- pandas *