Hello,
I’ve been trying to plot curves with the colors of matplotlib’s palette :tab10
but I can’t find the solution, even after removing and reinstalling Plots and ColorSchemes.
Here are the desired colors :
- When I run
palette(:auto)
, I do obtain a 17-elementVector{RGBA{Float64}}
, and it’s correctly plotted in the Plot panel of Juno. - When I run
palette(:tab10)
, I obtain the exact same palette as in the previous bullet point : first departure from the documentation. Note that I recover the correct palette runningcolorschemes[:tab10]
, which type isColorScheme{some_array}
. - The same doc states that " Color palettes can be constructed with
palette(cs, [n])
wherecs
can be aSymbol
, a vector of colors, aColorScheme
,ColorPalette
orColorGradient
". Yet, when runningpalette(colorschemes[:tab10])
, I getno method matching palette(::ColorScheme{StaticArrays.SArray{Tuple{10},RGB{Float64},1,10},String,String})
- Then I tried passing a
ColorGradient
:plot(data,palette=cgrad(colorschemes[:tab10].colors)
but it doesn’t output what I want :
I am a bit confused, could you help me out ? Once this is done, is it possible to make this palette a default one, meaning that no operation would be necessary at the opening of a new Julia session in order to work with the :tab10
colors ?
Thank you very much in advance !
Some additional info :
cgradients() = Symbol[:blues, :viridis, :pu_or, :magma, :plasma, :inferno]
clibraries() = Symbol[:Plots, :cmocean, :misc, :colorcet, :colorbrewer]
while the desired palette :tab10
, according to this page, is located in the matplotlib
library.
Versions of packages :
"ColorSchemes" => v"3.9.0" , "Plots" => v"0.29.9","PyPlot" => v"2.8.2" , "Juno" => v"0.8.1" , "Atom" => v"0.12.10"