'Plotting phase portrait using matplotlib or matlab?

The phase portraits I need to plot these phase portraits using matplotlib or matlab. How can I give the mappings given below the plottings and draw the arcs accordingly? Matlab or matplotlib is better in this situation?



Solution 1:[1]

It's impossible to know without a minimal reproducible example so what follows is a guess.

I suspect @app.task requires the function to have some introspectable attribute that Cython doesn't provide by default. Things to try:

  1. Use the directive #cython: binding=True. This makes Cython functions a custom object type that behave more like a regular function.
  2. Use Cython 3 alpha (although who knows what version of Cython you're using here, since you don't say). It contains some improvements to function introspection (and enables binding=True by default).
  3. Write this bit of code in Python (you could use exec for this for example).

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 DavidW