From 470f72b0becdbc1dada7412e701e410e1bda161f Mon Sep 17 00:00:00 2001 From: Vincent Feltkamp Date: Fri, 6 Mar 2020 00:13:45 +0100 Subject: [PATCH] Create basic box plot Julia 1.1 trying to update the syntax to Julia 1.1 --- _posts/julia/box/basic box plot Julia 1.1 | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 _posts/julia/box/basic box plot Julia 1.1 diff --git a/_posts/julia/box/basic box plot Julia 1.1 b/_posts/julia/box/basic box plot Julia 1.1 new file mode 100644 index 000000000..330c6512c --- /dev/null +++ b/_posts/julia/box/basic box plot Julia 1.1 @@ -0,0 +1,26 @@ +--- +name: Basic Box Plot +plot_url: https://plot.ly/~PlotBot/33 +arrangement: horizontal +language: julia +suite: box +order: 1 +sitemap: false +--- + +using PkG # just in case +try using Plotly + catch + Pkg.add("Plotly") + using Plotly + end + +Plotly.set_credentials_file(Dict("username"=>"user.name","api_key"=>"1234567890")) +y0 = randn(50) +y1 = randn(50)+1 + + +trace1 = scatter( y= y0, mode="box" ) +trace2 = scatter( y=y1, mode="box") +response = Plotly.plot(trace1) #,opt=[filename: "basic-line", fileopt: "new"]) #not sure what to do with this. +display(response) $ this does not show it .