## Process the output into a form that can be graphed
sols_1=[]
sols_2=[]
sols_3=[]
for i in range(steps):
sols_1.append([sol[i][0],sol[i][1]])
sols_2.append([sol[i][0],sol[i][2]])
sols_3.append([sol[i][0],sol[i][3]])
################################################
#### Unnecessarily Fancy Plotting Stuff ####
################################################
## Create a plot object
a = plot([])
## Set the plot parameters
title = "Two-step, series, reversible reaction" ## Graph Title
xmin = 0 ## X minimum
xmax = end_points ## X maximum
ymin = 0 ## Y minimum
ymax = 0.01 ## Y maximum
## Add a title to the plot
a += text(title,(xmax/1.8,ymax),color='black',fontsize=15)
## Add the desired lines to the plot
a += list_plot(sols_1,color='orange',legend_label='[A1]')
a += list_plot(sols_2,color='purple',legend_label='[A2]')
a += list_plot(sols_3,color='green',legend_label='[A3]')
## For more information on plots in general, evaluate 'plot?'
## For a list of legend options, evaluate 'a.set_legend_options?'
## For a list of Sage predefined colors, evaluate 'sorted(colors)'
a.set_axes_range(xmin,xmax,ymin,ymax)
a.axes_labels(['time','concentration'])
a.axes_label_color('grey')
a.set_legend_options(ncol=3,borderaxespad=5,back_color='whitesmoke',fancybox=true)
show(a)