✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.

Public vs Private Graphs in Julia

How to set the privacy settings of plotly graphs in julia.


# Learn about API authentication here: https://plotly.com/julia/getting-started
# Find your api_key here: https://plotly.com/settings/api

using Plotly


data = [
  [
    "x" => [0, 2, 4],
    "y" => [0, 4, 2],
    "type" => "scatter"
  ]
]
response = Plotly.plot(data, ["filename" => "privacy-true", "world_readable" => true, "fileopt" => "overwrite"])
plot_url = response["url"]
# Learn about API authentication here: https://plotly.com/julia/getting-started
# Find your api_key here: https://plotly.com/settings/api

using Plotly


data = [
  [
    "x" => [0, 2, 4],
    "y" => [0, 4, 2],
    "type" => "scatter"
  ]
]
response = Plotly.plot(data, ["filename" => "privacy-false", "world_readable" => false, "fileopt" => "overwrite"])
plot_url = response["url"]