plotly-mathematica
plotly-mathematica copied to clipboard
Does this still work?
I am new to plotly. Installed package into mathematica, but all Plotly commands
Needs["Plotly`"]
Plotly[Sin[Exp[x]], {x, -Pi, Pi}, AxesLabel -> {"e", "s"}]
just return [...]
\!\(
TagBox[
ButtonBox[
PaneSelectorBox[{False->
FrameBox[
RowBox[{"Show", "[",
RowBox[{"$Failed", ",",
RowBox[{"ImageSize", "->", "Large"}]}], "]"}],
StripOnInput->False], True->
StyleBox[
FrameBox[
RowBox[{"Show", "[",
RowBox[{"$Failed", ",",
RowBox[{"ImageSize", "->", "Large"}]}], "]"}],
StripOnInput->False], "HyperlinkActive"]}, Dynamic[
CurrentValue["MouseOver"]],
BaseStyle->{"Hyperlink"},
FrameMargins->0,
ImageSize->Automatic],
BaseStyle->"Hyperlink",
ButtonData:>{
StringReplace[
Failure["ConnectionFailure",
Association[
"URL" -> "https://plot.ly/clientresp",
"MessageTemplate" -> "Unable to perform the request.",
"MessageParameters" -> Association[],
"HTTPRequest" -> HTTPRequest["https://plot.ly/clientresp",
Association[
"Body" -> {"un" -> "Mathematica", "key" -> "u1ns4bx2df",
"origin" -> "plot", "platform" -> "mathematica",
"args" -> "[{\"x\":[-3.14159, -3.04159, -2.94159, \
-2.84159, -2.74159, -2.64159, -2.54159, -2.44159, -2.34159, -2.24159, \
-2.14159, -2.04159, -1.94159, -1.84159, -1.74159, -1.64159, -1.54159, \
-1.44159, -1.34159, -1.24159, -1.14159, -1.04159, -0.941593, \
-0.841593, -0.741593, -0.641593, -0.541593, -0.441593, -0.341593, \
-0.241593, -0.141593, -0.0415927, 0.0584073, 0.158407, 0.258407, \
0.358407, 0.458407, 0.558407, 0.658407, 0.758407, 0.858407, 0.958407, \
1.05841, 1.15841, 1.25841, 1.35841, 1.45841, 1.55841, 1.65841, \
1.75841, 1.85841, 1.95841, 2.05841, 2.15841, 2.25841, 2.35841, \
2.45841, 2.55841, 2.65841, 2.75841, 2.85841, 2.95841, \
3.05841],\"y\":[0.0432005, 0.0477406, 0.0527571, 0.0582996, \
0.0644229, 0.0711874, 0.0786596, 0.0869124, 0.0960262, 0.106089, \
0.117198, 0.129457, 0.142984, 0.157901, 0.174346, 0.192463, 0.212409, \
0.234351, 0.258461, 0.284921, 0.313912, 0.345613, 0.380194, 0.417801, \
0.458543, 0.50247, 0.549546, 0.599608, 0.652317, 0.707091, 0.763021, \
0.818767, 0.872427, 0.921391, 0.962172, 0.990251, 0.999942, 0.98436, \
0.935573, 0.845082, 0.704837, 0.509026, 0.256902, -0.0432507, \
-0.369265, -0.680467, -0.915808, -0.999245, -0.858452, -0.461777, \
0.12996, 0.720723, 0.99979, 0.694295, -0.142573, -0.912486, \
-0.770857, 0.341827, 0.990716, -0.0666865, -0.988015, 0.405664, \
0.642328],\"type\":\"scatter\"}]",
"kwargs" -> "{\n \"filename\": \"mathematicaplot\",\n \
\"fileopt\": \"new\",\n \"style\": {\n \"type\": \"scatter\"\n \
},\n \"traces\": [0,1,2],\n \"layout\": {\n \"title\": \"a \
plot from the mathematica api v0.2\"\n },\n \"world_readable\": \
true\n}"}]], "Counter" -> 1]], {
"\"" -> "", "{" -> "", "}" -> "", "url" -> "",
StringExpression["message",
BlankSequence[]] -> "", Whitespace -> "", "," -> "", ":" -> "",
"https" -> "https:"}], None},
ButtonNote->ButtonData],
Annotation[#,
StringReplace[
Failure["ConnectionFailure",
Association[
"URL" -> "https://plot.ly/clientresp",
"MessageTemplate" -> "Unable to perform the request.",
"MessageParameters" -> Association[],
"HTTPRequest" -> HTTPRequest["https://plot.ly/clientresp",
Association[
"Body" -> {"un" -> "Mathematica", "key" -> "u1ns4bx2df",
"origin" -> "plot", "platform" -> "mathematica",
"args" -> "[{\"x\":[-3.14159, -3.04159, -2.94159, \
-2.84159, -2.74159, -2.64159, -2.54159, -2.44159, -2.34159, -2.24159, \
-2.14159, -2.04159, -1.94159, -1.84159, -1.74159, -1.64159, -1.54159, \
-1.44159, -1.34159, -1.24159, -1.14159, -1.04159, -0.941593, \
-0.841593, -0.741593, -0.641593, -0.541593, -0.441593, -0.341593, \
-0.241593, -0.141593, -0.0415927, 0.0584073, 0.158407, 0.258407, \
0.358407, 0.458407, 0.558407, 0.658407, 0.758407, 0.858407, 0.958407, \
1.05841, 1.15841, 1.25841, 1.35841, 1.45841, 1.55841, 1.65841, \
1.75841, 1.85841, 1.95841, 2.05841, 2.15841, 2.25841, 2.35841, \
2.45841, 2.55841, 2.65841, 2.75841, 2.85841, 2.95841, \
3.05841],\"y\":[0.0432005, 0.0477406, 0.0527571, 0.0582996, \
0.0644229, 0.0711874, 0.0786596, 0.0869124, 0.0960262, 0.106089, \
0.117198, 0.129457, 0.142984, 0.157901, 0.174346, 0.192463, 0.212409, \
0.234351, 0.258461, 0.284921, 0.313912, 0.345613, 0.380194, 0.417801, \
0.458543, 0.50247, 0.549546, 0.599608, 0.652317, 0.707091, 0.763021, \
0.818767, 0.872427, 0.921391, 0.962172, 0.990251, 0.999942, 0.98436, \
0.935573, 0.845082, 0.704837, 0.509026, 0.256902, -0.0432507, \
-0.369265, -0.680467, -0.915808, -0.999245, -0.858452, -0.461777, \
0.12996, 0.720723, 0.99979, 0.694295, -0.142573, -0.912486, \
-0.770857, 0.341827, 0.990716, -0.0666865, -0.988015, 0.405664, \
0.642328],\"type\":\"scatter\"}]",
"kwargs" -> "{\n \"filename\": \"mathematicaplot\",\n \
\"fileopt\": \"new\",\n \"style\": {\n \"type\": \"scatter\"\n \
},\n \"traces\": [0,1,2],\n \"layout\": {\n \"title\": \"a \
plot from the mathematica api v0.2\"\n },\n \"world_readable\": \
true\n}"}]], "Counter" -> 1]], {
"\"" -> "", "{" -> "", "}" -> "", "url" -> "",
StringExpression["message",
BlankSequence[]] -> "", Whitespace -> "", "," -> "", ":" -> "",
"https" -> "https:"}], "Hyperlink"]& ]\)