The sympy plot command has a markers parameter:
markers : A list of dictionaries specifying the type the markers required. The keys in the dictionary should be equivalent to the arguments of the matplotlib's plot() function along with the marker related keyworded arguments.
How do I use the markers parameter? My failed attempts range from
from sympy import *
x = symbols ('x')
plot (sin (x), markers = 'o')
to
plot (sin (x), markers = list (dict (marker = 'o')))

Nice find!
The documentation doesn't make things clear. Diving into the source code, leads to these lines in plot.py:
So, sympy just calls matplotlib's plot with:
argskey of the dictionary as positional parametersAs matplotlib's
plotallows a huge variety of parameters, they all are supported here. They are primarily meant to show extra markers onto the plot (you need to give their positions).An example:
These get converted to:
PS: The source code shows a similar approach for dictionaries with annotations, rectangles and fills (using
plt.fillbetween()):