Skip to content

feat(altair): implement heatmap-correlation#65

Closed
claude[bot] wants to merge 1 commit intomainfrom
auto/heatmap-correlation/altair
Closed

feat(altair): implement heatmap-correlation#65
claude[bot] wants to merge 1 commit intomainfrom
auto/heatmap-correlation/altair

Conversation

@claude
Copy link
Copy Markdown
Contributor

@claude claude Bot commented Nov 29, 2025

Summary

Implements heatmap-correlation for altair library.

Parent Issue: #53
Sub-Issue: #58
Attempt: 1/3

Implementation

  • plots/altair/rect/heatmap-correlation/default.py

Features

  • Correlation matrix visualization using altair's mark_rect()
  • Supports pearson, spearman, and kendall correlation methods
  • Cell annotations showing correlation values
  • Diverging colormap (blueorange) centered at 0
  • Optional upper triangle masking to remove redundant values
  • Comprehensive input validation and error handling
  • Automatic detection of numeric columns

Testing

Successfully tested with sample data:

  • Generated 5-variable correlation matrix
  • Proper handling of correlated variables
  • Annotations display correctly with formatted values
  • Color scale properly centered at 0

Visual Output

  • Square aspect ratio for proper correlation matrix display
  • Clear axis labels with angled text for readability
  • Colorbar showing correlation scale from -1 to 1
  • Text color adapts to background (white on dark, black on light)

Implements correlation heatmap visualization using altair's mark_rect.
Creates a correlation matrix from numeric columns with annotations.

- Supports pearson, spearman, and kendall correlation methods
- Includes cell annotations with correlation values
- Uses diverging colormap centered at 0
- Optional upper triangle masking
- Proper input validation and error handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 29, 2025

The author of this PR, claude[bot], is not an activated member of this organization on Codecov.
Please activate this user on Codecov to display this PR comment.
Coverage data is still being uploaded to Codecov.io for purposes of overall coverage calculations.
Please don't hesitate to email us at support@codecov.io with any questions.

@MarkusNeusinger MarkusNeusinger deleted the auto/heatmap-correlation/altair branch December 1, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant