1

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

How do I achieve this with Plots.jl?

xiaodai
  • 14,889
  • 18
  • 76
  • 140

1 Answers1

2

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)
Korsbo
  • 724
  • 5
  • 5