Guest User

Untitled

a guest
Apr 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. plt.plot([1,2,3,4])
  3. plt.ylabel('some numbers')
  4. plt.show()
  5.  
  6. import cx_Freeze
  7. import sys
  8. import matplotlib
  9. base = None
  10. if sys.platform == "win32":
  11. base = "Win32GUI"
  12.  
  13. executables = [cx_Freeze.Executable("test.py", base = base)]
  14.  
  15. build_exe_options = {"includes":["matplotlib.backends.backend_tkagg"],
  16. "include_files":[(matplotlib.get_data_path(), "mpl-
  17. data")],
  18. "excludes":[],
  19. }
  20. cx_Freeze.setup(
  21. name = "script",
  22. options = {"build_exe": build_exe_options},
  23. version = "0.0",
  24. description = "A basic example",
  25. executables = executables)
Add Comment
Please, Sign In to add comment