Use A Variable From One Function To Another Python Compiler With Matplotlib