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

Scattergram

$
0
0

@erlebach wrote:

I am making a simple scatterplot:

using Plots
        tk = [1,2,3,5,8]
	y = [1. for i in 1:length(tk)]
	pl = scatter(tk, y, title="Poisson train tk")
	display(pl)

This works. However, I feel that there has to be a more Julian way of accomplishing this task. The comprehension list seems like an unnecessary expense, especially if tk if very large. Thanks.

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles