Changed the use of pyglet Plot module
Changed the use of pyglet Plot module

Added EOL after main and proper importing of matplotlib.
Fixes #10243

postvakje/sympy,madan96/sympy,oliverlee/sympy,skidzo/sympy,Curious72/sympy,chaffra/sympy,mafiya69/sympy,lindsayad/sympy,jaimahajan1997/sympy,jerli/sympy,Arafatk/sympy,kaushik94/sympy,kaichogami/sympy,lindsayad/sympy,ChristinaZografou/sympy,oliverlee/sympy,sampadsaha5/sympy,chaffra/sympy,kaichogami/sympy,jaimahajan1997/sympy,hargup/sympy,Shaswat27/sympy,yashsharan/sympy,postvakje/sympy,chaffra/sympy,Curious72/sympy,yashsharan/sympy,drufat/sympy,aktech/sympy,mafiya69/sympy,rahuldan/sympy,kaushik94/sympy,Arafatk/sympy,aktech/sympy,aktech/sympy,souravsingh/sympy,ChristinaZografou/sympy,madan96/sympy,kaichogami/sympy,drufat/sympy,jerli/sympy,madan96/sympy,postvakje/sympy,rahuldan/sympy,hargup/sympy,oliverlee/sympy,kaushik94/sympy,Titan-C/sympy,jerli/sympy,jaimahajan1997/sympy,Shaswat27/sympy,yashsharan/sympy,lindsayad/sympy,ChristinaZografou/sympy,Curious72/sympy,Titan-C/sympy,Arafatk/sympy,Shaswat27/sympy,hargup/sympy,skidzo/sympy,sampadsaha5/sympy,skidzo/sympy,souravsingh/sympy,souravsingh/sympy,mafiya69/sympy,rahuldan/sympy,drufat/sympy,Titan-C/sympy,sampadsaha5/sympy