Plots.jl: [BUG] clibrary() function disappeared between Plots 1.0.14 and 1.1

Created on 25 Apr 2020  路  8Comments  路  Source: JuliaPlots/Plots.jl

Please search existing issues to avoid duplicates.

Details

The function clibrary() seems to have disappeared between Plots 1.0.14 and 1.1 yet I can't find any discussion of it in issues or PRs and the documentation still refers to it:
https://docs.juliaplots.org/latest/colors/#

I've tested it with gr (default) only.

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: 1.1

Backend version: whatever is the default with 1.1 because I have tested in this after a fresh "activate ." with just add [email protected] vs add Plots

Output of versioninfo():

Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8

Most helpful comment

All 8 comments

That is expected. That function was reexported from PlotUtils and got deleted in https://github.com/JuliaPlots/PlotUtils.jl/pull/87.
And with 1.1.0 we moved all the color related functionality to ColorSchemes.jl
You can now get a list of gradients, pallettes and colorschemes via color_list

I see. Thanks for the pointer.
I had searched the PRs for Plots.jl, but not the PRs for PlotUtils.jl.
(I wonder if there is a way to search all the packages below JuliaPlots at once.)
I guess the main remaining issue is updating the docs. I would offer to help but I don't understand colors well enough to do it properly.

Docs will be updated soon.

And now I can just use color=:hsv without needing clibrary or ColorGradient etc. - Yay!

Glad to hear it's useful!

Btw, if you have suggestions for the colorschemes section in the docs, input is very welcome. That's just my first quick write-up, so let me know if anything is unclear.

Docs looking really good @daschw ! Especially the heatmap.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PallHaraldsson picture PallHaraldsson  路  4Comments

Cody-G picture Cody-G  路  3Comments

Cody-G picture Cody-G  路  4Comments

ereday picture ereday  路  3Comments

lstagner picture lstagner  路  5Comments