Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

How can I draw 2 series in the same chart

$
0
0

@hasanOryx wrote:

I was able to plt the first series as:

using Gadfly

history = [30,21,29,31,40,48,53,47,37,39,31,29,17,9,20,24,27,35,41,38,
          27,31,27,26,21,13,21,18,33,35,40,36,22,24,21,20,17,14,17,19,
          26,29,40,31,20,24,18,26,17,9,17,21,28,32,46,33,23,28,22,27,
          18,8,17,21,31,34,44,38,31,30,26,32];

plot(y=history, Geom.line)

Now I’ve another series as:

forecast = [28, 30, 19, 45]

In the same chart I want to draw the second series as a continuity of the first series, but with different line colors, something like:

Posts: 12

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images