tensor_methods

Tensor Methods for DS and SC
git clone git://popovic.xyz/tensor_methods.git
Log | Files | Refs

err_plot.jl (1136B)


      1 #/usr/bin/julia
      2 
      3 using LinearAlgebra
      4 using Plots
      5 using Maxvol
      6 using TSVD
      7 using LaTeXStrings
      8 
      9 function err_plot(x, y, save)
     10     p1 = plot(x[1], y[1][1],
     11               title="A: frb-error",
     12               lw=2,
     13               xlabel=L"ln(r)\;\;[\;]",
     14               ylabel=L"||\tilde{M} -M||\;\;[\;]",
     15               label="");
     16     p2 = plot(x[1], y[1][2],
     17               title="A: max-error",
     18               lw=2,
     19               xlabel=L"ln(r)\;\;[\;]",
     20               ylabel=L"||\tilde{M} -M||\;\;[\;]",
     21               label="");
     22     p3 = plot(x[2], y[2][1],
     23               title="B: frb-error",
     24               lw=2,
     25               xlabel=L"ln(r)\;\;[\;]",
     26               ylabel=L"||\tilde{M} -M||\;\;[\;]",
     27               label="");
     28     p4 = plot(x[2], y[2],
     29               title="B: max-error",
     30               lw=2,
     31               xlabel=L"ln(r)\;\;[\;]",
     32               ylabel=L"||\tilde{M} -M||\;\;[\;]",
     33               label="");
     34 
     35     savefig(plot(p1, p2, p3, p4,
     36                  layout=(2, 2),
     37                  titlefontsize=10,
     38                  xlabelfontsize=7,
     39                  ylabelfontsize=5,
     40                  dpi=300),
     41             save)
     42 end