StochSS / GillesPy2

Modeling toolkit for biochemical simulation
http://gillespy2.readthedocs.io/
GNU General Public License v3.0
72 stars 32 forks source link

plot_mean_stdev Not showing time correctly #818

Closed MGRetamales closed 2 years ago

MGRetamales commented 2 years ago

Error

image As it can be seen in the image, the upper bound of the standard deviation is considering "time" as the number of datapoints (200) instead of the actual time ([0, 100] with intervals of 0.5).

Replication

Replicated using the Michaelis Menten example with a timespan of TimeSpan.linspace(t=100, num_points=201) image

Proposed Fix

Could be solved by changing line 821 of gillespy2/core/results.py to plt.plot(average_result['time'], lowerBound, average_result['time'], upperBound, color='grey', linestyle='dashed')

BryanRumsey commented 2 years ago

This issue has been addressed in PR #820