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] Surface + PyPlot + Themes #2647

Closed
atgmello opened this issue Apr 28, 2020 · 2 comments
Closed

[BUG] Surface + PyPlot + Themes #2647

atgmello opened this issue Apr 28, 2020 · 2 comments

Comments

@atgmello
Copy link

Details

surface plots using pyplot backend plus :bright, :vibrant or :mute themes causes jumbled plot colors.

import Plots
Plots.pyplot()
Plots.theme(:vibrant)
x = collect(-10:10)
y = collect(-10:10)
z = (x,y) -> (x-y)^2
Plots.surface(x,y,z)

bug

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotly x
plotlyjs x
pgfplotsx x
inspectdr x

Versions

Plots.jl version: v1.1.2 [91a5bcdd]
Output of versioninfo():

julia> versioninfo()
Julia Version 1.3.0
Commit 46ce4d7933 (2019-11-26 06:09 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)
Environment:
  JULIA_NUM_THREADS = 16
@isentropic
Copy link
Member

isentropic commented May 4, 2020

@atgmello I advise against using these themes (:bright, :vibrant or :mute) in general

And perhaps we have to deprecate them as they are not even themes, but just colormaps @daschw ?

I suggest using this

surface(x,y,z, c=:balance)

image

For more details, go to http://docs.juliaplots.org/latest/generated/colorschemes/

@atgmello
Copy link
Author

Yeah, this is enough for what I need! Thanks for the tip @isentropic .

@t-bltg t-bltg closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants