Skip to content

Time variable in Lotka-Volterra plots #588

Closed
@PRKramer

Description

@PRKramer

Approximate Bayesian Computation:
Notebook url:

Issue description

Both plots of population versus time do not represent time correctly.

Note that this issue tracker is about the contents in the notebooks, if
the notebook is instead triggering a bug or error in pymc, please
report to https://github.com/pymc-devs/pymc/issues instead

Expected output

Time should be running from 0 to 15, not 0 to 100, based on how the variable t was defined.

Proposed solution

This can be simply fixed by including the t argument in the plot commands. For example in #plotting observed data

ax.plot(t,observed[:, 0], "x", label="prey")
ax.plot(t,observed[:, 1], "x", label="predator")

and similarly in #plot results

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions