Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Stochastic Processes Grapher -
def plot_stochastic_processes(processes, title):
This method plots a list of stochastic processes with a specified title
:return: plots the graph of the two
fig, ax = plt.subplots(1)
fig.suptitle(title, fontsize=16)
ax.set_xlabel('Time, t')
ax.set_ylabel('Simulated Asset Price')
x_axis = numpy.arange(0, len(processes[0]), 1)
for i in range(len(processes)):
plt.plot(x_axis, processes[i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment