xiaodai
xiaodai

Reputation: 16004

Plots.jl: How to play points and lines or two different series?

I want to plot 1:3 using points but 3:-1:1 using lines.

How do I achieve this with Plots.jl?

Upvotes: 1

Views: 70

Answers (1)

Korsbo
Korsbo

Reputation: 724

Plot one thing first and then use a new plot command with a bang to modify the previous plot.

scatter(1:3)
plot!(3:-1:1)

Upvotes: 2

Related Questions