# Get\_color\_palette not found

**URL:** <https://discourse.julialang.org/t/get-color-palette-not-found/42900>\
**Category:** New to Julia\
**Created:** [July 11, 2020, 4:24pm UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900 "2020-07-11T16:24:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [July 11, 2020, 4:24pm UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/1 "2020-07-11T16:24:06Z")

</div>

I am getting a get\_color\_palette undefined in the `Plots` module after an update. Here is the `update`:

```julia
(@v1.4) pkg> update Plots
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Installed ArrayInterface ───────── v2.9.1
  Installed DiffEqNoiseProcess ───── v5.0.3
  Installed Parsers ──────────────── v1.0.7
  Installed RecursiveFactorization ─ v0.1.4
  Installed VectorizationBase ────── v0.12.21
  Installed BlockBandedMatrices ──── v0.8.10
  Installed Polynomials ──────────── v1.1.3
  Installed StatsMakie ───────────── v0.2.3
  Installed LabelledArrays ───────── v1.3.0
  Installed SparseDiffTools ──────── v1.9.1
  Installed FiniteDiff ───────────── v2.4.1
  Installed Contour ──────────────── v0.5.4
  Installed JuliaInterpreter ─────── v0.7.24
  Installed FixedPointNumbers ────── v0.8.2
  Installed OffsetArrays ─────────── v1.1.1
  Installed ImageFiltering ───────── v0.6.14
  Installed ElasticArrays ────────── v1.2.3
  Installed ColorTypes ───────────── v0.10.6
  Installed JuliaFormatter ───────── v0.6.6
  Installed Roots ────────────────── v1.0.3
  Installed LoopVectorization ────── v0.8.15
  Installed SLEEFPirates ─────────── v0.5.4
  Installed CodeTools ────────────── v0.7.1
  Installed SymbolicUtils ────────── v0.4.3
  Installed SentinelArrays ───────── v1.2.8
  Installed LazyArrays ───────────── v0.16.14
  Installed BlockArrays ──────────── v0.12.10
   Updating `~/.julia/environments/v1.4/Project.toml`
 [no changes]
   Updating `~/.julia/environments/v1.4/Manifest.toml`
  [4fba245c] ↑ ArrayInterface v2.9.0 ⇒ v2.9.1
  [8e7c35d0] ↑ BlockArrays v0.12.9 ⇒ v0.12.10
  [ffab5731] ↑ BlockBandedMatrices v0.8.9 ⇒ v0.8.10
  [53a63b46] ↑ CodeTools v0.7.0 ⇒ v0.7.1
  [944b1d66] ↓ CodecZlib v0.7.0 ⇒ v0.6.0
  [3da002f7] ↑ ColorTypes v0.10.5 ⇒ v0.10.6
  [d38c429a] ↑ Contour v0.5.3 ⇒ v0.5.4
  [77a26b50] ↑ DiffEqNoiseProcess v5.0.2 ⇒ v5.0.3
  [fdbdab4c] ↑ ElasticArrays v1.2.2 ⇒ v1.2.3
  [6a86dc24] ↑ FiniteDiff v2.3.2 ⇒ v2.4.1
  [53c48c17] ↑ FixedPointNumbers v0.8.1 ⇒ v0.8.2
  [6a3955dd] ↑ ImageFiltering v0.6.13 ⇒ v0.6.14
  [98e50ef6] ↑ JuliaFormatter v0.6.5 ⇒ v0.6.6
  [aa1ae85d] ↑ JuliaInterpreter v0.7.23 ⇒ v0.7.24
  [2ee39098] ↑ LabelledArrays v1.2.2 ⇒ v1.3.0
  [5078a376] ↑ LazyArrays v0.16.13 ⇒ v0.16.14
  [bdcacae8] ↑ LoopVectorization v0.8.9 ⇒ v0.8.15
  [6fe1bfb0] ↑ OffsetArrays v1.1.0 ⇒ v1.1.1
  [69de0a69] ↑ Parsers v1.0.6 ⇒ v1.0.7
  [f27b6e38] ↑ Polynomials v1.1.2 ⇒ v1.1.3
  [f2c3362d] ↑ RecursiveFactorization v0.1.3 ⇒ v0.1.4
  [f2b01f46] ↑ Roots v1.0.2 ⇒ v1.0.3
  [476501e8] ↑ SLEEFPirates v0.5.2 ⇒ v0.5.4
  [91c51154] ↑ SentinelArrays v1.2.6 ⇒ v1.2.8
  [47a9eef4] ↑ SparseDiffTools v1.9.0 ⇒ v1.9.1
  [65254759] ↑ StatsMakie v0.2.2 ⇒ v0.2.3
  [d1185830] ↑ SymbolicUtils v0.4.2 ⇒ v0.4.3
  [e0df1984] ↑ TextParse v0.9.1 ⇒ v1.0.0
  [3d5dd08c] ↑ VectorizationBase v0.12.17 ⇒ v0.12.21

```

I am how precompiling everything. Question: is is possible to precompile a single module? Right now, `Juno` is precompiling `DiffEqOperators`, which takes a long time, and then `DynamicHMC`, and then … . Is there not way to be more selective on what gets recompiled? I do not need all my modules every time I use Julia. Thanks.

---

<div class="post-metadata">

**Author:** ![jagot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jagot/32/12217_2.png) [@jagot](https://discourse.julialang.org/u/jagot)\
**Post date:** [July 11, 2020, 4:27pm UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/2 "2020-07-11T16:27:07Z")

</div>

It seem you have added all your dependencies to the global environment. If you instead work with project-dependent environments, as discussed [here](https://julialang.github.io/Pkg.jl/v1.1/environments/), you can add only the packages you need for a certain project. Then the updates and precompilations should be much quicker.

---

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [July 11, 2020, 4:33pm UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/3 "2020-07-11T16:33:27Z")

</div>

Ok, I will read. I had no idea about this option.

```julia
[Info: Precompiling BenchmarkTools [6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf]
[Info: Precompiling MetaGraphs [626554b9-1ddb-594c-aa3c-2596fe9399a5]
[Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

```

`Plots` was precompiled correctly. And yet, I still get the error:

```julia
julia> F.myPlot(times, S, I, R)
ERROR: MethodError: no method matching get_color_palette(::Symbol, ::RGBA{Float64}, ::Int64)
Closest candidates are:
  get_color_palette(::Any, ::Any) at /Users/erlebach/.julia/packages/PlotUtils/nCtbM/src/colorschemes.jl:328
  get_color_palette(::ColorGradient, ::Any) at /Users/erlebach/.julia/packages/PlotUtils/nCtbM/src/colorschemes.jl:329
Stacktrace:
 [1] _update_subplot_colors(::
Plots.Subplot{Plots.GRBackend}) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/args.jl:1436
 [2] _update_subplot_args(::Plots.Plot{Plots.GRBackend}, ::Plots.Subplot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Int64, ::Bool) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/args.jl:1523
 [3] _subplot_setup(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Array{Dict{Symbol,Any},1}) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/pipeline.jl:297
 [4] _plot!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{Array{Float64,1},Array{Int64,1}}) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/plot.jl:206
 [5] plot(::Array{Float64,1}, ::Vararg{Any,N} where N; kw::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:label,),Tuple{Symbol}}}) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/plot.jl:57
 [6] myPlot(::Array{Float64,1}, ::Array{Int64,1}, ::Array{Int64,1}, ::Array{Int64,1}) at /Users/erlebach/covid_modeling_julia/julia_code/sir-julia/SIRsims/gordon_julia_code/household_workplaces_leon/FastSIR_common.jl:10
 [7] top-level scope at none:0

```

I do not understand. This has to do with an update to `Plots`. Of course, I could write a new function, but am not quite sure how to proceed. This is somewhat disconcerting since the error occurs within a simple plot command such as

```julia
plot([1,2,3],[4,5,6])

julia> plot([1,2,3],[4,5,6])
ERROR: MethodError: no method matching get_color_palette(::Symbol, ::RGBA{Float64}, ::Int64)
Closest candidates are:
  get_color_palette(::Any, ::Any) at /Users/erlebach/.julia/packages/PlotUtils/nCtbM/src/colorschemes.jl:328
  get_color_palette(::ColorGradient, ::Any) at /Users/erlebach/.julia/packages/PlotUtils/nCtbM/src/colorschemes.jl:329
Stacktrace:
 [1] _update_subplot_colors(::Plots.Subplot{Plots.GRBackend}) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/args.jl:1436
 [2] _update_subplot_args(::Plots.Plot{Plots.GRBackend}, ::Plots.Subplot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Int64, ::Bool) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/args.jl:1523
 [3] _subplot_setup(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Array{Dict{Symbol,Any},1}) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/pipeline.jl:297
 [4] _plot!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{Array{Int64,1},Array{Int64,1}}) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/plot.jl:206
 [5] plot(::Array{Int64,1}, ::Vararg{Array{Int64,1},N} where N; kw::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/plot.jl:57
 [6] plot(::Array{Int64,1}, ::Array{Int64,1}) at /Users/erlebach/.julia/packages/Plots/WwFyB/src/plot.jl:51
 [7] top-level scope at none:0

julia> 

```

---

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [July 11, 2020, 4:46pm UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/4 "2020-07-11T16:46:37Z")

</div>

I have created a special project, and plot still cannot find the `get_color_palette` method. At this stage, I have no idea how to proceed. It is really hard for me to understand how `Plots` could pass its `tests` since `plot([1,2,3],[4,5,6])` does not work. That is about as minimal as it gets. 🙂

```julia
julia> mkdir("SirProject")
"SirProject"

julia> cd
cd (generic function with 4 methods)

julia> cd("SirProject")

julia> pkg
ERROR: UndefVarError: pkg not defined

(@v1.4) pkg> activate .
 Activating new environment at `~/covid_modeling_julia/julia_code/sir-julia/SIRsims/gordon_julia_code/household_workplaces_leon/SirProject/Project.toml`

(SirProject) pkg> ls -l 
ERROR: Could not determine command

(SirProject) pkg> add BenchmarkTools, LightGraphs, MetaGraphs, SimpleWeightedGraphs, Distributions, CSV, Random, StatsBase, DataFrames, DataFramesMeta
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
  Installed StaticArrays ─ v0.12.4
  Installed CSV ────────── v0.7.3
   Updating `~/covid_modeling_julia/julia_code/sir-julia/SIRsims/gordon_julia_code/household_workplaces_leon/SirProject/Project.toml`
  [6e4b80f9] + BenchmarkTools v0.5.0
  [336ed68f] + CSV v0.7.3
  [a93c6f00] + DataFrames v0.21.4
  [1313f7d8] + DataFramesMeta v0.5.1
  [31c24e10] + Distributions v0.23.4
  [093fc24a] + LightGraphs v1.3.3
  [626554b9] + MetaGraphs v0.6.5
  [47aef6b3] + SimpleWeightedGraphs v1.1.1
  [2913bbd2] + StatsBase v0.33.0
  [9a3f8284] + Random 
   Updating `~/covid_modeling_julia/julia_code/sir-julia/SIRsims/gordon_julia_code/household_workplaces_leon/SirProject/Manifest.toml`
  [ec485272] + ArnoldiMethod v0.0.4
  [7d9fca2a] + Arpack v0.4.0
  [68821587] + Arpack_jll v3.5.0+3
  [6e4b80f9] + BenchmarkTools v0.5.0
  [336ed68f] + CSV v0.7.3
  [324d7699] + CategoricalArrays v0.8.1
  [944b1d66] + CodecZlib v0.7.0
  [34da2185] + Compat v3.13.0
  [e66e0078] + CompilerSupportLibraries_jll v0.3.3+0
  [9a962f9c] + DataAPI v1.3.0
  [a93c6f00] + DataFrames v0.21.4
  [1313f7d8] + DataFramesMeta v0.5.1
  [864edb3b] + DataStructures v0.17.19
  [e2d170a0] + DataValueInterfaces v1.0.0
  [31c24e10] + Distributions v0.23.4
  [5789e2e9] + FileIO v1.3.0
  [1a297f60] + FillArrays v0.8.12
  [d25df0c9] + Inflate v0.1.2
  [41ab1584] + InvertedIndices v1.0.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [033835bb] + JLD2 v0.1.13
  [682c06a0] + JSON v0.21.0
  [093fc24a] + LightGraphs v1.3.3
  [1914dd2f] + MacroTools v0.5.5
  [626554b9] + MetaGraphs v0.6.5
  [e1d29d7a] + Missings v0.4.3
  [4536629a] + OpenBLAS_jll v0.3.9+5
  [efe28fd5] + OpenSpecFun_jll v0.5.3+3
  [bac558e1] + OrderedCollections v1.3.0
  [90014a1f] + PDMats v0.9.12
  [69de0a69] + Parsers v1.0.7
  [2dfb63ee] + PooledArrays v0.5.3
  [1fd47b50] + QuadGK v2.4.0
  [189a3867] + Reexport v0.2.0
  [79098fc4] + Rmath v0.6.1
  [f50d1b31] + Rmath_jll v0.2.2+1
  [91c51154] + SentinelArrays v1.2.8
  [699a6c99] + SimpleTraits v0.9.2
  [47aef6b3] + SimpleWeightedGraphs v1.1.1
  [a2af1166] + SortingAlgorithms v0.3.1
  [276daf66] + SpecialFunctions v0.10.3
  [90137ffa] + StaticArrays v0.12.4
  [2913bbd2] + StatsBase v0.33.0
  [4c63d2b9] + StatsFuns v0.9.5
  [3783bdb8] + TableTraits v1.0.0
  [bd369af6] + Tables v1.0.4
  [3bb67fe8] + TranscodingStreams v0.9.5
  [83775a58] + Zlib_jll v1.2.11+14
  [2a0f44e3] + Base64 
  [ade2ca70] + Dates 
  [8bb1440f] + DelimitedFiles 
  [8ba89e20] + Distributed 
  [9fa8497b] + Future 
  [b77e0a4c] + InteractiveUtils 
  [76f85450] + LibGit2 
  [8f399da3] + Libdl 
  [37e2e46d] + LinearAlgebra 
  [56ddb016] + Logging 
  [d6f4376e] + Markdown 
  [a63ad114] + Mmap 
  [44cfe95a] + Pkg 
  [de0858da] + Printf 
  [3fa0cd96] + REPL 
  [9a3f8284] + Random 
  [ea8e919c] + SHA 
  [9e88b42a] + Serialization 
  [1a1011a3] + SharedArrays 
  [6462fe0b] + Sockets 
  [2f01184e] + SparseArrays 
  [10745b16] + Statistics 
  [4607b0f0] + SuiteSparse 
  [8dfed614] + Test 
  [cf7118a7] + UUIDs 
  [4ec0a83e] + Unicode 

(SirProject) pkg> status
Status `~/covid_modeling_julia/julia_code/sir-julia/SIRsims/gordon_julia_code/household_workplaces_leon/SirProject/Project.toml`
  [6e4b80f9] BenchmarkTools v0.5.0
  [336ed68f] CSV v0.7.3
  [a93c6f00] DataFrames v0.21.4
  [1313f7d8] DataFramesMeta v0.5.1
  [31c24e10] Distributions v0.23.4
  [093fc24a] LightGraphs v1.3.3
  [626554b9] MetaGraphs v0.6.5
  [47aef6b3] SimpleWeightedGraphs v1.1.1
  [2913bbd2] StatsBase v0.33.0
  [9a3f8284] Random 

(SirProject) pkg> precompile
Precompiling project...
[Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
[Info: Precompiling DataFramesMeta [1313f7d8-7da2-5740-9ea0-a2ca25f37964]

(SirProject) pkg> 

```

---

<div class="post-metadata">

**Author:** ![jagot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jagot/32/12217_2.png) [@jagot](https://discourse.julialang.org/u/jagot)\
**Post date:** [July 11, 2020, 5:32pm UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/5 "2020-07-11T17:32:20Z")

</div>

I think your approach basically looks fine. I don’t use Plots.jl myself, but maybe e.g. @mkborregaard could chime in?

For reference, this is what I get:

```julia
❯ pwd
/tmp/test

/tmp/test
❯ julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.4.0 (2020-03-21)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.4) pkg> activate .
 Activating new environment at `/private/tmp/test/Project.toml`

(test) pkg> add Plots
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
  Installed PlotThemes ────── v2.0.0
  Installed RecipesPipeline ─ v0.1.11
  Installed Plots ─────────── v1.5.4
  Installed GR ────────────── v0.50.1
   Updating `/private/tmp/test/Project.toml`
  [91a5bcdd] + Plots v1.5.4
   Updating `/private/tmp/test/Manifest.toml`
  [79e6a3ab] + Adapt v2.0.2
  [6e34b625] + Bzip2_jll v1.0.6+2
  [35d6a980] + ColorSchemes v3.9.0
  [3da002f7] + ColorTypes v0.10.6
  [5ae59095] + Colors v0.12.3
  [d38c429a] + Contour v0.5.4
  [9a962f9c] + DataAPI v1.3.0
  [864edb3b] + DataStructures v0.17.19
  [e2d170a0] + DataValueInterfaces v1.0.0
  [c87230d0] + FFMPEG v0.3.0
  [b22a6f82] + FFMPEG_jll v4.1.0+3
  [53c48c17] + FixedPointNumbers v0.8.2
  [d7e528f0] + FreeType2_jll v2.10.1+2
  [559328eb] + FriBidi_jll v1.0.5+3
  [28b8d3ca] + GR v0.50.1
  [5c1252a2] + GeometryBasics v0.2.15
  [4d00f742] + GeometryTypes v0.8.3
  [cd3eb016] + HTTP v0.8.16
  [83e8ac13] + IniFile v0.5.0
  [c8e1da08] + IterTools v1.3.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [682c06a0] + JSON v0.21.0
  [c1c5ebd0] + LAME_jll v3.100.0+1
  [dd192d2f] + LibVPX_jll v1.8.1+1
  [739be429] + MbedTLS v1.0.2
  [c8ffd9c3] + MbedTLS_jll v2.16.6+1
  [442fdcdd] + Measures v0.3.1
  [e1d29d7a] + Missings v0.4.3
  [77ba4419] + NaNMath v0.3.3
  [e7412a2a] + Ogg_jll v1.3.4+0
  [458c3c95] + OpenSSL_jll v1.1.1+4
  [91d4177d] + Opus_jll v1.3.1+1
  [bac558e1] + OrderedCollections v1.3.0
  [69de0a69] + Parsers v1.0.7
  [ccf2f8ad] + PlotThemes v2.0.0
  [995b91a9] + PlotUtils v1.0.5
  [91a5bcdd] + Plots v1.5.4
  [3cdcf5f2] + RecipesBase v1.0.1
  [01d81517] + RecipesPipeline v0.1.11
  [189a3867] + Reexport v0.2.0
  [ae029012] + Requires v1.0.1
  [992d4aef] + Showoff v0.3.1
  [a2af1166] + SortingAlgorithms v0.3.1
  [90137ffa] + StaticArrays v0.12.4
  [2913bbd2] + StatsBase v0.33.0
  [09ab397b] + StructArrays v0.4.4
  [3783bdb8] + TableTraits v1.0.0
  [bd369af6] + Tables v1.0.4
  [83775a58] + Zlib_jll v1.2.11+14
  [0ac62f75] + libass_jll v0.14.0+2
  [f638f0a6] + libfdk_aac_jll v0.1.6+2
  [f27f6e37] + libvorbis_jll v1.3.6+4
  [1270edf5] + x264_jll v2019.5.25+2
  [dfaa095f] + x265_jll v3.0.0+1
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8bb1440f] + DelimitedFiles
  [8ba89e20] + Distributed
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
   Building GR ───→ `~/.julia/packages/GR/Atztx/deps/build.log`
   Building Plots → `~/.julia/packages/Plots/jpF9l/deps/build.log`

julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

julia> plot([1,2,3],[4,5,6])

julia>

```

which produces a plot like this

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/f/7ffb621b11c73ad35914e027f1603b5d962e6bd9.png)

`get_color_palette` seems to work for me:

```julia
julia> Plots.get_color_palette
get_color_palette (generic function with 2 methods)

```

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [July 12, 2020, 12:28am UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/6 "2020-07-12T00:28:11Z")

</div>

Which version of Plots.jl do you have? ( `] st Plots`)  
Did you try quitting and restarting Julia?

---

<div class="post-metadata">

**Author:** ![elizavetasemenova](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elizavetasemenova/32/8394_2.png) [@elizavetasemenova](https://discourse.julialang.org/u/elizavetasemenova)\
**Post date:** [July 12, 2020, 7:51am UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/7 "2020-07-12T07:51:44Z")

</div>

I have the same problem: my previously working code for plotting is not working anymore and results in the error message `MethodError: no method matching get_color_palette(::Symbol, ::RGBA{Float64}, ::Int64)` The version of Plots is v0.25.3. I have tried installing a later version via `using Pkg; pkg"add Plots@1.2.2"` but it hasn’t helped, so I have downgraded back. What else can I try?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 12, 2020, 8:43am UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/8 "2020-07-12T08:43:44Z")

</div>

Why 1.2.2? Isn’t the latest release 1.5.4?

---

<div class="post-metadata">

**Author:** ![elizavetasemenova](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elizavetasemenova/32/8394_2.png) [@elizavetasemenova](https://discourse.julialang.org/u/elizavetasemenova)\
**Post date:** [July 12, 2020, 8:57am UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/9 "2020-07-12T08:57:35Z")

</div>

Installing the latest version via `using Pkg; pkg"add Plots@v1.5.4"` failed with the message

" Updating registry at `~/.julia/registries/General`  
Updating git-repo `https://github.com/JuliaRegistries/General.git`  
[1mFetching: [========================================\>] 100.0 %.0 % Resolving package versions…  
Unsatisfiable requirements detected for package Plots [91a5bcdd]:  
Plots [91a5bcdd] log:  
├─possible versions are: [0.12.1-0.12.4, 0.13.0-0.13.1, 0.14.0-0.14.2, 0.15.0-0.15.1, 0.16.0, 0.17.0-0.17.4, 0.18.0, 0.19.0-0.19.3, 0.20.0-0.20.6, 0.21.0, 0.22.0-0.22.5, 0.23.0-0.23.2, 0.24.0, 0.25.0-0.25.3, 0.26.0-0.26.3, 0.27.0-0.27.1, 0.28.0-0.28.4, 0.29.0-0.29.9, 1.0.0-1.0.14, 1.1.0-1.1.4, 1.2.0-1.2.6, 1.3.0-1.3.7, 1.4.0-1.4.4, 1.5.0-1.5.4] or uninstalled  
├─restricted to versions 1.5.4 by an explicit requirement, leaving only versions 1.5.4  
└─restricted by julia compatibility requirements to versions: [0.12.1-0.12.4, 0.13.0-0.13.1, 0.14.0-0.14.2, 0.15.0-0.15.1, 0.16.0, 0.17.0-0.17.4, 0.18.0, 0.19.0-0.19.3, 0.20.0-0.20.6, 0.21.0, 0.22.0-0.22.5, 0.23.0-0.23.2, 0.24.0, 0.25.0-0.25.3, 0.26.0-0.26.3, 0.27.0-0.27.1, 0.28.0-0.28.4, 0.29.0-0.29.9, 1.0.0-1.0.14, 1.1.0-1.1.4, 1.2.0-1.2.6, 1.3.0-1.3.7, 1.4.0-1.4.4] or uninstalled — no versions left"

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 12, 2020, 10:20am UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/10 "2020-07-12T10:20:08Z")

</div>

Which Julia version are you on? Plots now requires Julia \>=1.3

---

<div class="post-metadata">

**Author:** ![elizavetasemenova](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elizavetasemenova/32/8394_2.png) [@elizavetasemenova](https://discourse.julialang.org/u/elizavetasemenova)\
**Post date:** [July 12, 2020, 10:29am UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/11 "2020-07-12T10:29:00Z")

</div>

I am on Julia 1.0.4 and have done the entire project in it. Working towards a deadline at the moment, I would like to avoid changing the version of Julia. In my case the change has happened, I believe, due to the installation of two new packages (InvertedIndices and Clustering). Is there a way to fix things back to how they were working before?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 12, 2020, 10:35am UTC](https://discourse.julialang.org/t/get-color-palette-not-found/42900/12 "2020-07-12T10:35:19Z")

</div>

Only if you checked in the Manifest of your project’s environment somewhere I believe and can recover it - this would have the exact versions/commits of all packages as they were the last time you worked on this.

Generally one has to be careful when adding/removing packages to an environment one would like to keep preserved as much as possible, cf the discussion here: [Pin all packages of a project](https://discourse.julialang.org/t/pin-all-packages-of-a-project/39308)

Also while I appreciate that now might not be a great time for you to change Julia versions, 1.0.4 is quite outdated at this point and you’re missing out on **a lot** of improvements (not least on compile time/general snappiness of use). As it is still part of the v1 major series, there shouldn’t be major breaking changes so updating might be less painful than you think, so I’d probably just install 1.4.2 real quick an try running the code there!
