Skip to content

Commit

Permalink
Add embedded kwarg to plot
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Jul 11, 2020
1 parent 8d7f731 commit 766862d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plotrecipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ end
errors,times
end

@recipe function f(tab::ODERKTableau;dx=1/100,dy=1/100,order_star=false)
@recipe function f(tab::ODERKTableau;dx=1/100,dy=1/100,order_star=false,embedded=false)
xlims = get(plotattributes, :xlims, (-6,1))
ylims = get(plotattributes, :ylims, (-5,5))
x = xlims[1]:dx:xlims[2]
y = ylims[1]:dy:ylims[2]

if order_star
f = (u,v)-> abs(stability_region(u+v*im,tab)/exp(u+v*im)) < 1
f = (u,v)-> abs(stability_region(u+v*im,tab; embedded=embedded)/exp(u+v*im)) < 1
else
f = (u,v)-> abs(stability_region(u+v*im,tab)) < 1
f = (u,v)-> abs(stability_region(u+v*im,tab; embedded=embedded)) < 1
end
seriestype --> :contour
fill --> true
Expand Down

0 comments on commit 766862d

Please sign in to comment.