I would like to plot points over curves using Sympy. I know there is a solution using a specific parameter markers
, e.g. markers=[{'args': [-1, 2.5, 'ro']}]
, but from the documentation, it seems there is a possibility to plot points directly:
The figure can contain an arbitrary number of plots of SymPy expressions, lists of coordinates of points, etc.
I wasn't able to determine how point coordinates should be provided to the function, but from examples it seems two separate lists are used, one for x coordinates, one for y coordinates. However this doesn't work:
from sympy import plot
x = [-1]
y = [2.5]
point_plots = plot(x, y)
File ~\miniconda3\envs\gis\lib\site-packages\sympy\plotting\plot.py:1850 in plot series = [LineOver1DRangeSeries(*arg, **kwargs) for arg in plot_expr]
TypeError: 'NoneType' object is not iterable
So how does it work? I'm sorry to ask a such basic question...