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

Styles not working as expected #249

Closed
asbisen opened this issue Nov 3, 2018 · 2 comments
Closed

Styles not working as expected #249

asbisen opened this issue Nov 3, 2018 · 2 comments

Comments

@asbisen
Copy link

asbisen commented Nov 3, 2018

Describe the bug
The code below explains the issue. If I start by plotting a histogram using default style followed by fivethirtyeight the colors are off. This was tested in Atom.

using PlotlyJS
using Distributions

function myhistogram(d)
    t0 = histogram(;x=d)
    p = [t0]
    l = Layout(;title="title")
    plot(p,l)
end

d = rand(Exponential(), 10000)
myhistogram(d)


use_style!(:fivethirtyeight)
d = rand(Exponential(), 10000)
myhistogram(d)

hist_default_01
hist_538_02

Version info

Please provide the following:

  1. output of julia command versioninfo()
julia> versioninfo()
Julia Version 1.0.1
Commit 0d713926f8 (2018-09-29 19:05 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
  1. Output running the following in Julia 0.7 or greater: using Pkg; pkg"status" (if you are on Julia 0.6 or earlier run Pkg.status())
julia> using Pkg; pkg"status"
    Status `~/.julia/environments/v1.0/Project.toml`
  [c52e3926] Atom v0.7.9
  [6710c13c] AutoGrad v1.1.1
  [ad839575] Blink v0.8.1
  [336ed68f] CSV v0.4.2
  [5d742f6a] CSVFiles v0.10.0
  [944b1d66] CodecZlib v0.5.1
  [3da002f7] ColorTypes v0.7.5
  [c3611d14] ColorVectorSpace v0.6.2
  [5ae59095] Colors v0.9.5
  [a93c6f00] DataFrames v0.14.1
  [864edb3b] DataStructures v0.14.0
  [0c46a032] DifferentialEquations v5.3.1
  [31c24e10] Distributions v0.16.4
  [89b67f3b] ExcelFiles v0.6.1
  [4f61f5a4] FFTViews v0.2.0
  [7a1cc6ca] FFTW v0.2.4
  [5789e2e9] FileIO v1.0.2
  [8fc22ac5] FilePaths v0.7.0
  [53c48c17] FixedPointNumbers v0.5.3
  [587475ba] Flux v0.6.8
  [59287772] Formatting v0.3.4
  [f6369f11] ForwardDiff v0.10.1
  [28b8d3ca] GR v0.35.0
  [c91e804a] Gadfly v1.0.0
  [f67ccb44] HDF5 v0.10.2
  [7ec9b9c5] Humanize v1.0.0
  [7073ff75] IJulia v1.13.0
  [2803e5a7] ImageAxes v0.5.0
  [a09fc81d] ImageCore v0.7.3
  [6a3955dd] ImageFiltering v0.5.0
  [6218d12a] ImageMagick v0.7.1
  [80713f31] ImageSegmentation v1.0.1
  [02fcd773] ImageTransformations v0.6.0
  [86fae568] ImageView v0.8.1
  [916415d5] Images v0.16.1
  [1c8ee90f] IterableTables v0.10.0
  [033835bb] JLD2 v0.1.2
  [682c06a0] JSON v0.19.0
  [e5e0dc1b] Juno v0.5.3
  [1902f260] Knet v1.1.1
  [ae8d54c2] Luxor v1.1.2
  [ffc61752] Mustache v0.5.5
  [47be7bcc] ORCA v0.1.1
  [6fe1bfb0] OffsetArrays v0.8.1
  [5fb14364] OhMyREPL v0.3.0
  [429524aa] Optim v0.17.1
  [3b7a836e] PGFPlots v3.0.1
  [8314cec4] PGFPlotsX v0.3.2
  [9b87118b] PackageCompiler v0.5.0
  [46a55296] ParquetFiles v0.1.0
  [b98c9c47] Pipe v1.0.0+ #master (https://github.com/oxinabox/Pipe.jl.git)
  [f0f68f2c] PlotlyJS v0.11.2
  [91a5bcdd] Plots v0.21.0
  [92933f4c] ProgressMeter v0.6.1
  [438e738f] PyCall v1.18.5
  [d330b81b] PyPlot v2.6.3
  [dca85d43] QuartzImageIO v0.5.0
  [1a8c2f83] Query v0.10.1
  [295af30f] Revise v0.7.12
  [276daf66] SpecialFunctions v0.7.2
  [1463e38c] StatFiles v0.6.1
  [90137ffa] StaticArrays v0.9.2
  [a110ec8f] Temporal v0.5.3
  [9e3dc215] TimeSeries v0.14.0
  [b8865327] UnicodePlots v0.3.1
  [112f6efa] VegaLite v0.5.0
  [ddb6d928] YAML v0.3.2
  [e88e6eb3] Zygote v0.1.0+ #master (https://github.com/FluxML/Zygote.jl.git)
@sglyon
Copy link
Member

sglyon commented Nov 3, 2018

Ahh yes this is indeed a bug. I will try to sort this out ASAP

@sglyon
Copy link
Member

sglyon commented Nov 3, 2018

fixed in sglyon/PlotlyBase.jl@8245a58

I have tagged a release in METADATA

@sglyon sglyon closed this as completed Nov 3, 2018
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

2 participants