@@ -8,12 +8,30 @@ function plot_nnmf(outstruct, Avec, m, n, k, name = "tr-qr")
88 W = reshape (x[1 : (m * k)], m, k)
99 H = reshape (x[(m * k + 1 ): end ], k, n)
1010 WH = W * H
11-
11+
1212 a = GroupPlot (2 , 2 , groupStyle = " horizontal sep = 2.5cm" )
13- push! (a, Axis (Plots. Image (A, (1 , m), (1 , n), colormap= ColorMaps. Named (" Jet" )), xlabel = " A matrix (reference)" ))
14- push! (a, Axis (Plots. Image (WH, (1 , m), (1 , n), colormap= ColorMaps. Named (" Jet" )), xlabel = " WH matrix" ))
15- push! (a, Axis (Plots. Image (H, (1 , k), (1 , n), colormap= ColorMaps. Named (" Jet" )), xlabel = " H matrix" ))
16- push! (a, Axis (Plots. Image (abs .(A - WH), (1 , m), (1 , n), colormap= ColorMaps. Named (" Jet" )), xlabel = " |A-WH| matrix" ))
13+ push! (
14+ a,
15+ Axis (
16+ Plots. Image (A, (1 , m), (1 , n), colormap = ColorMaps. Named (" Jet" )),
17+ xlabel = " A matrix (reference)" ,
18+ ),
19+ )
20+ push! (
21+ a,
22+ Axis (Plots. Image (WH, (1 , m), (1 , n), colormap = ColorMaps. Named (" Jet" )), xlabel = " WH matrix" ),
23+ )
24+ push! (
25+ a,
26+ Axis (Plots. Image (H, (1 , k), (1 , n), colormap = ColorMaps. Named (" Jet" )), xlabel = " H matrix" ),
27+ )
28+ push! (
29+ a,
30+ Axis (
31+ Plots. Image (abs .(A - WH), (1 , m), (1 , n), colormap = ColorMaps. Named (" Jet" )),
32+ xlabel = " |A-WH| matrix" ,
33+ ),
34+ )
1735 save (" nnmf-$(name) .pdf" , a)
1836
1937 b = Axis (
0 commit comments