Skip to content

[ENH]: Add optional value annotations to covariance/correlation plots#723

Draft
PredictiveManish wants to merge 1 commit intoPyPortfolio:mainfrom
PredictiveManish:fix/covariance-correlation-plot
Draft

[ENH]: Add optional value annotations to covariance/correlation plots#723
PredictiveManish wants to merge 1 commit intoPyPortfolio:mainfrom
PredictiveManish:fix/covariance-correlation-plot

Conversation

@PredictiveManish
Copy link
Contributor

This PR Closes #697.
Add a show_values flag to plot_covariance that, when True, overlays each cell with its numeric value (formatted to two decimal places). The feature is off by default to preserve existing behavior and works with both DataFrame and NumPy array inputs. No other functionality is changed.

Note: The other file changes are due to ruff formatting.

@PredictiveManish PredictiveManish marked this pull request as draft March 12, 2026 07:22
@PredictiveManish
Copy link
Contributor Author

Converted this into draft as testing is missing. Working on that part

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.

Feature request: Add values in the covariance/correlation plot

1 participant