My code of plotting graphs