Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- plt.plot([1,2,3,4])
- plt.ylabel('some numbers')
- plt.show()
- import cx_Freeze
- import sys
- import matplotlib
- base = None
- if sys.platform == "win32":
- base = "Win32GUI"
- executables = [cx_Freeze.Executable("test.py", base = base)]
- build_exe_options = {"includes":["matplotlib.backends.backend_tkagg"],
- "include_files":[(matplotlib.get_data_path(), "mpl-
- data")],
- "excludes":[],
- }
- cx_Freeze.setup(
- name = "script",
- options = {"build_exe": build_exe_options},
- version = "0.0",
- description = "A basic example",
- executables = executables)
Add Comment
Please, Sign In to add comment