I know there is unaccepted answer in this question on this problem. But let’s make it clear, really. I believe it can serve as great reference starting point.
Suppose that I have autonomous system $\mathcal{D(\dot{y},y,\mu)}$ given by ODE/DAE and some parameter $\mu$. Using implicit an integration scheme, I can obtain a bunch of solutions for different (consistent) initial conditions $y_0(t_0)$ for some parameter value $\mu$.
Now, I know there are solutions which are stable (not oscillatory), limit cycles (harmonic oscillatory solution with period $T$ with possible harmonics), damped oscillatory solutions, quasiperiodic solutions and probably some chaotic behaviour. I am interested in creating a bifurcation diagram.
In terms of pseudocode, how can I achieve this?
In particular, I am confused about picking points of the time series. How do I choose them (sampling period $T$)? What is the rule in such cases?
For illustration, the time series below are for some fixed parameter value $\mu_1$ and three different initial conditions. They clearly exhibit chaotic behaviour:
For same set of initial conditions but a different $\mu_2$, $\mu_2\neq\mu_1$, I obtain these time series:
We can see, that depending on initial condition, only a phase difference occurs, but all trajectories tends to be same.
Can you provide a commented procedure for this? In papers, there are no explicit descriptions on how they derived their diagrams.


To make a bifurcation diagram for a continuous-time system, you first need to make a Poincaré map. Specifically, you obtain a sequence of values of a reasonable observable at a somewhat systematically determined points of your oscillation. The most common choice would be the sequence of local minima or maxima of one dynamical variable, but you can also go for observables like the slope at zero crossings or similar. Usually, you choose some aspect of the dynamics that is relevant to your research.
Note that you cannot just sample at a fixed time interval, since there is no fixed period length between different parameters and not even within one parameter in case of chaotic dynamics.
Except for using the Poincaré map instead of the actual map, the method is the same as for discrete-time systems:
You only need to consider multiple initial conditions if your system is multistable, which you should also notice as interrupted lines on a good bifurcation diagram (unless you have two or more competing chaotic or quasiperiodic attractors).