Disable border around bar plot in Plots.jl

Is there a way to disable the black borders around bars in bar plots in Plots.jl? With many data points they become useless and make the colors useless:

n = 300
bar(
	range(0, 1; length=n),
	rand(n))

grafik

Try either linecolor=nothing, which leaves small gaps between bars. Or select same color for bars and borders linecolor=:blue,color=:blue

1 Like

works like a charm. thank you!

if you want to use the default colors: use for linecolor and color 1, 2 and so on

1 Like

You can also use linecolor = :match for bar plots and shapes.

2 Likes

Another possibility would be:

n = 300
plot(seriestype = :sticks,
range(0, 1; length=n),
rand(n))

sticks

1 Like