You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"input": "data = [\n [\n\"x\"=>[1,2,3],\n\"y\"=>[4,5,6],\n ],\n [\n\"x\"=>[20,30,40],\n\"y\"=>[50,60,70],\n\"xaxis\"=>\"x2\",\n\"yaxis\"=>\"y2\"\n ]\n]\n\nlayout = [\n\"xaxis\"=>[\n\"domain\"=>[0,0.45] # i.e. let the first x-axis span the first 45% of the plot width\n ],\n\"xaxis2\"=>[\n\"domain\"=>[0.55,1] # i.e. let the second x-axis span the latter 45% of the plot width\n ],\n\"yaxis2\"=>[\n\"anchor\"=>\"x2\" # i.e. bind the second y-axis to the start of the second x-axis\n ]\n]\n\nresponse = Plotly.plot([data], [\"layout\" => layout])\nurl = response[\"url\"]\nfilename = response[\"filename\"]\n\ns = string(\"<iframe height='750' id='igraph' scrolling='no' seamless='seamless' src='\",\n response[\"url\"],\n\"/700/700' width='750'></iframe>\")\ndisplay(\"text/html\", s)",
"input": "data = [\n [\n\"x\"=>[1,2,3],\n\"y\"=>[4,5,6],\n ],\n [\n\"x\"=>[20,30,40],\n\"y\"=>[50,60,70],\n\"xaxis\"=>\"x2\",\n\"yaxis\"=>\"y2\"\n ]\n]\n\nlayout = [\n\"xaxis\"=>[\n\"domain\"=>[0,0.7] # i.e. let the first x-axis span the first 70% of the plot width\n ],\n\"xaxis2\"=>[\n\"domain\"=>[0.8,1] # i.e. let the second x-axis span the latter 20% of the plot width\n ],\n\"yaxis2\"=>[\n\"anchor\"=>\"x2\" # i.e. bind the second y-axis to the start of the second x-axis\n ]\n]\n\nresponse = Plotly.plot([data], [\"layout\" => layout])\nurl = response[\"url\"]\nfilename = response[\"filename\"]\n\ns = string(\"<iframe height='750' id='igraph' scrolling='no' seamless='seamless' src='\",\n response[\"url\"],\n\"/700/700' width='750'></iframe>\")\ndisplay(\"text/html\", s)",
"input": "data = [\n [\n \"x\"=>[1,2,3],\n \"y\"=>[4,5,6],\n ],\n [\n \"x\"=>[20,30,40],\n \"y\"=>[50,60,70],\n \"xaxis\"=>\"x2\",\n \"yaxis\"=>\"y2\"\n ],\n [\n \"x\"=>[300,400,500],\n \"y\"=>[600,700,800],\n \"xaxis\"=>\"x3\",\n \"yaxis\"=>\"y3\"\n ],\n [\n \"x\"=>[4000,5000,6000],\n \"y\"=>[7000,8000,9000],\n \"xaxis\"=>\"x4\",\n \"yaxis\"=>\"y4\"\n ] \n]\n\nlayout = [\n \"xaxis\"=>[\n \"domain\"=>[0,0.45] # let the first x-axis span the first 45% of the plot width\n ],\n \"yaxis\"=>[\n \"domain\"=>[0,0.45] # # and let the first y-axis span the first 45% of the plot height\n ],\n \"xaxis2\"=>[\n \"domain\"=>[0.55,1] # and let the second x-axis span the latter 45% of the plot width\n ],\n \"yaxis2\"=>[\n \"domain\"=>[0,0.45], # and let the second y-axis span the first 45% of the plot height\n \"anchor\"=>\"x2\" # bind the horizontal position of the second y-axis to the start of the second x-axis\n ],\n \"xaxis3\"=>[\n \"domain\"=>[0,0.45],\n \"anchor\"=>\"y3\" # bind the vertical position of this axis to the start of yaxis3\n ],\n \"yaxis3\"=>[\n \"domain\"=>[0.55,1],\n ],\n \"xaxis4\"=>[\n \"domain\"=>[0.55,1],\n \"anchor\"=>\"y4\", # bind the vertical position of this axis to the start of yaxis4\n ],\n \"yaxis4\"=>[\n \"domain\"=>[0.55,1],\n \"anchor\"=>\"x4\" # bind the horizontal position of this axis to the start of xaxis4\n ] \n]\n\nresponse = Plotly.plot([data], [\"layout\" => layout])\nurl = response[\"url\"]\nfilename = response[\"filename\"]\n\ns = string(\"<iframe height='750' id='igraph' scrolling='no' seamless='seamless' src='\",\n response[\"url\"],\n \"/700/700' width='750'></iframe>\")\ndisplay(\"text/html\", s)",
"input": "data = [\n [\n \"x\"=>[1,2,3],\n \"y\"=>[2,3,4],\n ],\n [\n \"x\"=>[20,30,40],\n \"y\"=>[5,5,5],\n \"xaxis\"=>\"x2\",\n \"yaxis\"=>\"y\"\n ],\n [\n \"x\"=>[2,3,4],\n \"y\"=>[600,700,800],\n \"xaxis\"=>\"x\",\n \"yaxis\"=>\"y3\"\n ],\n [\n \"x\"=>[4000,5000,6000],\n \"y\"=>[7000,8000,9000],\n \"xaxis\"=>\"x4\",\n \"yaxis\"=>\"y4\"\n ] \n]\n\nlayout = [\n \"xaxis\"=>[\n \"domain\"=>[0,0.45] # let the first x-axis span the first 45% of the plot width\n ],\n \"yaxis\"=>[\n \"domain\"=>[0,0.45] # and let the first y-axis span the first 45% of the plot height\n ],\n \"xaxis2\"=>[\n \"domain\"=>[0.55,1] # and let the second x-axis span the latter 45% of the plot width\n ],\n \"yaxis3\"=>[\n \"domain\"=>[0.55,1],\n ],\n \"xaxis4\"=>[\n \"domain\"=>[0.55,1],\n \"anchor\"=>\"y4\", # bind the vertical position of this axis to the start of yaxis4\n ],\n \"yaxis4\"=>[\n \"domain\"=>[0.55,1],\n \"anchor\"=>\"x4\" # bind the horizontal position of this axis to the start of xaxis4\n ] \n]\n\nresponse = Plotly.plot([data], [\"layout\" => layout])\nurl = response[\"url\"]\nfilename = response[\"filename\"]\n\ns = string(\"<iframe height='750' id='igraph' scrolling='no' seamless='seamless' src='\",\n response[\"url\"],\n \"/700/700' width='750'></iframe>\")\ndisplay(\"text/html\", s)",
0 commit comments