RosettaCodeData/Task/Plot-coordinate-pairs/Julia/plot-coordinate-pairs.julia

9 lines
177 B
Text
Raw Permalink Normal View History

2018-06-22 20:57:24 +00:00
using Plots
plotlyjs()
2014-04-02 16:56:35 +00:00
x = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
y = [2.7, 2.8, 31.4, 38.1, 58.0, 76.2, 100.5, 130.0, 149.3, 180.0]
2018-06-22 20:57:24 +00:00
p = scatter(x, y)
savefig(p, "/tmp/testplot.png")