Skip to content

View_corr_mat() - make new || leave old #149

@wingedRuslan

Description

@wingedRuslan

Heya!

This issue is opened to decide what to do with the view_corr_mat and partially to address the issue #148.

view_corr_mat in

  • make_figures.py - load corr mat from a file, plot corr mat, save the output.

Basically, it is almost identical function to one in scripts/visualisation_commands.py. The one in visualisation_commands.py is better because PR #108 updated the view_corr_mat in visualisation_commands.py, now the function accepts corr_mat as a dataframe object, numpy_array, and as a path to file containing corr_mat.

  • scripts/visualisation_commands.py

What I suggested is to redesign view_corr_mat in order to use the seaborn.heatmap().
Why? - from my perspective, it is better to rely on the already created solutions and seaborn.heatmap has a wide variety of parameters so it provides great flexibility to adjust plot to your preferences.

seaborn docs

Here are the comparisons (saved viz outputs) between the existed function and the potentially new one:

  1. Existed function default call:
    KirstieCode

  2. Seaborn recreate the same plot:
    TheSame

Use new colormap - 'YlGnBu'

  1. Existed function:
    Attempt3_Kirstie
  2. Seaborn version:
    Attempt3

To sum up, with seaborn.heatmat we could have the same figures as with the existed corr_mat but as a bonus a lot more nice features (read - parameters to function).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions