add comp matrix to plot_data object for pr_scatter directive
started experimenting with MathJS for matrix multiplication