JuliaPlots / PlotlyJS.jl

Julia library for plotting with plotly.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

style not defined

jclsn opened this issue · comments

Describe the bug
I am not able to apply any styles as mentioned in the documentation. It seems that neither the use_styles!() function or style parameter in the plot() function are defined. What am I doing wrong?

julia> myplot = plot(trace1, layout, style=style(:ggplot))
ERROR: UndefVarError: `style` not defined
Stacktrace:
 [1] top-level scope
   @ REPL[208]:1

Version info

Please provide the following:

  1. Julia version: 1.9.3
  2. 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.9/Project.toml`
  [ccf2f8ad] PlotThemes v3.1.0
  [f0f68f2c] PlotlyJS v0.18.11
  [91a5bcdd] Plots v1.39.0
  [8149f6b0] WAV v1.2.0

Starting with the PlotlyJS.jl v0.18.0 the style has been removed, because its functionality is now available in plotly templates.
See this closed issue #408.

@empet Maybe update the documentation accordingly then?

http://juliaplots.org/PlotlyJS.jl/stable/styles/

Thanks for the prompt. I've just come on as a new maintainer and become aware of this last week. The docs will be updated soon.

The documentation is still outdated, mentioning Styles and style everywhere. Can a maintainer please erase these sections from the docs?

Thank you for the reminder.