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

style not defined #475

Open
jclsn opened this issue Nov 5, 2023 · 6 comments
Open

style not defined #475

jclsn opened this issue Nov 5, 2023 · 6 comments

Comments

@jclsn
Copy link

jclsn commented Nov 5, 2023

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
@empet
Copy link

empet commented Nov 5, 2023

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.

@jclsn
Copy link
Author

jclsn commented Nov 5, 2023

@empet Maybe update the documentation accordingly then?

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

@empet
Copy link

empet commented Nov 5, 2023

Here are the docs for the last version: https://github.com/plotly/plotlyjs.jl-docs/tree/master/julia or https://plotly.com/julia/, and here the trace and layout reference https://plotly.com/julia/reference/.

@jd-foster
Copy link
Collaborator

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.

@juliohm
Copy link

juliohm commented Mar 8, 2024

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

@jd-foster
Copy link
Collaborator

Thank you for the reminder.

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

4 participants