Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xlims ylims #45

Open
jverzani opened this issue Feb 6, 2023 · 0 comments
Open

xlims ylims #45

jverzani opened this issue Feb 6, 2023 · 0 comments

Comments

@jverzani
Copy link
Owner

jverzani commented Feb 6, 2023

In https://discourse.julialang.org/t/implicitequations-plot-return-empty-plot/94117/5 the issue of xlims and ylims arises:

using Plots, ImplicitEquations
f(x, y) = y^2 - 3y - 4 - x; g(x,y) = x + y
plot(f ⩵ 0, xtick=-7:1:5, xlims=(-7,5), ylims=(-5,5))
plot!(g ⩵ 0);  plot!((f ≦ 0) & (g ≦ 0))

The plot! call uses (-5,5) x (-5,5) and not the (-7,5) x (-5,5)

The current recipe uses xlims = get(plotattributes, :xlims, (-5,5)). It seems to be suggested that xlims --> (-5,5) should work (but it doesnt). The use of xlims = get!(plotattributes, :xlims, (-5,5)) doesn't see the initial xlims specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant