updated plot function
Merge branch 'master' of https://github.com/XzAeRo/Academic-Code
update

Signed-off-by: XzAeRo <victor.gonzalezro@gmail.com>