'Plotting Trajectories of 1-D and 2-D Dynamical Systems in Python

I would like to know how I can plot the trajectories of Dynamical Systems using Python as shown below. Most of the examples I have come across that use Python don't plot the arrows.

Any help would be much appreciated.

Feel free to make edits to my question if it doesn't make sense.

Phase Portraits



Solution 1:[1]

This is a bit too generic a question but I would start by taking a look at this tutorial https://scipy-cookbook.readthedocs.io/items/LoktaVolterraTutorial.html

As for the "arrows", what you are looking for, I believe, is matplotlib's quiver (examples at the bottom) https://matplotlib.org/3.5.0/api/_as_gen/matplotlib.axes.Axes.quiver.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 andrea m.