NonlinearOscillations / HarmonicBalance.jl

A Julia package for solving nonlinear differential equations using the harmonic balance method.
https://NonlinearOscillations.github.io/HarmonicBalance.jl/
BSD 3-Clause "New" or "Revised" License
53 stars 8 forks source link

Error in plotting #225

Closed hk06319 closed 3 weeks ago

hk06319 commented 3 weeks ago

I am trying to simulate the example "two_parametrons.ipynb" in the [https://github.com/NonlinearOscillations/HarmonicBalance-notebooks]. I am facing the issue with the subplots function.

f,ax = HarmonicBalance.subplots(1,5,figsize=(4*5,4))
HarmonicBalance.plot_1D_jacobian_eigenvalues(soln_1d, x="ω/2", physical=true, stable=false,filename="plot_1D_jacobian",ax=ax); 

I am getting the following error UndefVarError:subplotsnot defined Stacktrace: [1] getproperty(x::Module, f::Symbol) @ Base .\Base.jl:31 [2] top-level scope @ In[61]:1 ################################ Also for coupled parametrons, its not generating the plot against the following commad.

HarmonicBalance.plot_2D_phase_diagram(result_coupled, stable=false);
oameye commented 3 weeks ago

Hey @hk06319, the notebooks you are referring to are quite old and outdated. We are in the progress (see #221) of updating these notebooks. That said could you try

plot_phase_diagram(result_coupled)
oameye commented 2 weeks ago

Hey, we know have a new website where we better examples and tutorials. Feel free to check it out :)