My program currently consists of 2 .py files.
I run the main part of the code in pypy (which is much faster) and then I open a second file in python that plots my data using matplotlib.pyplot
.
I have managed to open the using:
subprocess.Popen(['C:\\python26\\python.exe ','main_plot.py',])
which opens my second file...
import matplotlib.pyplot as pyplot
def plot_function(NUMBER):
'''some code that uses the argument NUMBER'''
pyplot.figure()
---plot some data---
pyplot.show()
However, I would like to be able to pass arguments to the plot_function
that opens in python. Is that possible?