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

[BUG] [GR] axis log scale does not work properly in surface() plots #4969

Open
AdamWysokinski opened this issue Aug 3, 2024 · 0 comments
Open
Labels

Comments

@AdamWysokinski
Copy link

AdamWysokinski commented Aug 3, 2024

For surface plots, xscale argument only changes ticks and labels, does not scale the plot:

xs = collect(0.1:0.05:2.0)
ys = collect(0.2:0.1:2.0)
X = [x for x = xs for _ = ys]
Y = [y for _ = xs for y = ys]
Z = ((x, y)->begin
            1 / x + y * x ^ 2
        end)
surface(X, Y, Z.(X, Y))
surface(X, Y, Z.(X, Y), xscale=:log10)

Plots v1.40.5
GR v0.73.7
Julia 1.10.3

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

No branches or pull requests

1 participant