Fixed plot_matrix, svg works now.