fix error on gr

This commit is contained in:
Michael K. Borregaard 2017-02-27 22:45:14 +01:00
parent c7bde0ff19
commit cad96e652f

View File

@ -816,7 +816,7 @@ end
error("showlibrary takes the name of a color library as a Symbol") error("showlibrary takes the name of a color library as a Symbol")
end end
library = clibrary(cl.args[1]) library = PlotUtils.color_libraries[cl.args[1]]
z = sqrt.((1:15)*(1:20)') z = sqrt.((1:15)*(1:20)')
seriestype := :heatmap seriestype := :heatmap
@ -828,8 +828,8 @@ end
i = 0 i = 0
for grad in keys(library.lib) for grad in keys(library.lib)
@series begin @series begin
seriescolor := cgrad(grad, color_library = cl.args[1]) seriescolor := cgrad(grad, cl.args[1])
title := grad title := string(grad)
subplot := i += 1 subplot := i += 1
z z
end end