Skip to content

Commit

Permalink
refactor:Using paclets instead of package imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Nov 1, 2023
1 parent 45c17c4 commit 321f886
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Misc/HeatmapPlot.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ Mathematica is (C) Copyright 1988-2017 Wolfram Research, Inc.
(* Importing packages (if needed) *)
(**************************************************************)

If[Length[DownValues[SSparseMatrix`ToSSparseMatrix]] == 0,
Import["https://raw.githubusercontent.com/antononcube/MathematicaForPrediction/master/SSparseMatrix.m"]
];
(*If[Length[DownValues[SSparseMatrix`ToSSparseMatrix]] == 0,*)
(* Import["https://raw.githubusercontent.com/antononcube/MathematicaForPrediction/master/SSparseMatrix.m"]*)
(*];*)


(**************************************************************)
Expand All @@ -103,10 +103,12 @@ Mathematica is (C) Copyright 1988-2017 Wolfram Research, Inc.
HeatmapPlot::usage = "HeatmapPlot[data_?MatrixQ, rowNames_List, columnNames_List] makes a heat-map plot based on MatrixPlot \
and HierarchicalClustering`Agglomerate .";

PacletInstall["AntonAntonov/SSparseMatrix"];

Begin["`Private`"];

Needs["HierarchicalClustering`"];
Needs["SSparseMatrix`"];
Needs["AntonAntonov`SSparseMatrix`"];

MatrixPlotWithTooltips[mat_, rowNames_, columnNames_, opts : OptionsPattern[]] :=
With[{dims = Dimensions[mat],
Expand Down

0 comments on commit 321f886

Please sign in to comment.