Plots.jl: Allow list of colors to be passed to hline function

Created on 13 Apr 2020  路  2Comments  路  Source: JuliaPlots/Plots.jl

Right now this only produces red lines (i.e. no green ones):

scatter(rand(100))
hline!([0.5,0.25,0.75], color=[:red, :green, :green])

This can be seen here:

Screen Shot 2020-04-13 at 1 02 47 PM

enhancement

Most helpful comment

In Plots, columns are series. So to add several series with different attributes use a row vector.

hline!([0.5 0.25 0.75], color=[:red :green :green])

Screenshot 2020-04-14 at 10 39 24

All 2 comments

In Plots, columns are series. So to add several series with different attributes use a row vector.

hline!([0.5 0.25 0.75], color=[:red :green :green])

Screenshot 2020-04-14 at 10 39 24

thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kersulis picture kersulis  路  5Comments

kleinschmidt picture kleinschmidt  路  3Comments

crstnbr picture crstnbr  路  3Comments

lstagner picture lstagner  路  5Comments

daschw picture daschw  路  3Comments