Skip to content

Instantly share code, notes, and snippets.

@ttt50966
Last active July 4, 2018 15:06
Show Gist options
  • Save ttt50966/fcc240208a7728a3d897162aef0c999a to your computer and use it in GitHub Desktop.
Save ttt50966/fcc240208a7728a3d897162aef0c999a to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"result = \"20180704_test_FMR_S21_Field 0~2000G_Freq 5G_without sample_0\"\n",
"for i in range(1,6):\n",
" result_name = result+str(i)\n",
" data = pd.read_csv(result_name,sep=\"\\t\")\n",
" y += data['Field (G)'].values\n",
" x += data.index.get_values()\n",
"y = y/5\n",
"x = x/5"
]
},
{
"cell_type": "code",
"execution_count": 44,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/html": [
"<script>requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min']},});if(!window.Plotly) {{require(['plotly'],function(plotly) {window.Plotly=plotly;});}}</script>"
],
"text/vnd.plotly.v1+html": [
"<script>requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min']},});if(!window.Plotly) {{require(['plotly'],function(plotly) {window.Plotly=plotly;});}}</script>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"name": "Exp. S11",
"type": "scatter",
"x": [
21.8,
14.64,
7.2,
0,
-7.159999999999999,
-14.64,
-21.32,
-29,
-36.2,
-43.4,
-50.839999999999996,
-58.279999999999994,
-65.72,
-73.16,
-80.36,
-87.8,
-95.24,
-102.67999999999999,
-109.6,
-117.55999999999999,
-124.24000000000001,
-132.2,
-139.12,
-147.07999999999998,
-154,
-161.95999999999998,
-169.64000000000001,
-176.56,
-184.52,
-191.72,
-199.4,
-206.6,
-214.04000000000002,
-221.48000000000002,
-229.16,
-236.6,
-244.04000000000002,
-251.2,
-258.91999999999996,
-266.36,
-274.04,
-281.48,
-288.91999999999996,
-296.12,
-303.8,
-311.24,
-318.68,
-326.12,
-333.56,
-341,
-348.44,
-355.88,
-363.32,
-370.76,
-378.44,
-385.88,
-393.08000000000004,
-401.52,
-408.68,
-416.64,
-423.84,
-431.52,
-438.96000000000004,
-446.4,
-453.84,
-461.28000000000003,
-468.71999999999997,
-476.16,
-483.6,
-491.52,
-498.71999999999997,
-506.68,
-514.12,
-522.04,
-528.96,
-536.92,
-544.36,
-551.8,
-559.24,
-566.6800000000001,
-574.12,
-582.04,
-589.76,
-597.4399999999999,
-604.64,
-612.5600000000001,
-619.76,
-627.4399999999999,
-634.88,
-642.3199999999999,
-650,
-657.6800000000001,
-665.36,
-672.8399999999999,
-680.76,
-688.2,
-695.64,
-703.08,
-710.52,
-717.96,
-725.64,
-733.08,
-741.04,
-748.48,
-756.4,
-763.8399999999999,
-771.28,
-778.72,
-786.64,
-793.6,
-801.52,
-809,
-817.1600000000001,
-824.32,
-832.04,
-839.4799999999999,
-846.9200000000001,
-855.1200000000001,
-861.8,
-870,
-877.4399999999999,
-885.36,
-892.5600000000001,
-900.24,
-907.68,
-915.36,
-922.8,
-931.24,
-938.4399999999999,
-946.1200000000001,
-953.5600000000001,
-961,
-968.4399999999999,
-976.36,
-983.6,
-991.5200000000001,
-999.4399999999999,
-1006.8799999999999,
-1014.32,
-1021.76,
-1029.6799999999998,
-1037.16,
-1045.08,
-1052.28,
-1060.2,
-1067.6399999999999,
-1075.08,
-1082.52,
-1089.96,
-1097.4,
-1105.3600000000001,
-1113.04,
-1120.96,
-1128.16,
-1135.84,
-1143.28,
-1150.96,
-1158.16,
-1166.3600000000001,
-1174.04,
-1181.72,
-1189.16,
-1196.6,
-1204.28,
-1211.72,
-1219.6799999999998,
-1227.3600000000001,
-1235.04,
-1242.24,
-1249.92,
-1257.3600000000001,
-1265.04,
-1272.24,
-1280.44,
-1287.8799999999999,
-1295.56,
-1303.24,
-1310.6799999999998,
-1318.1200000000001,
-1325.8,
-1334,
-1340.96,
-1349.1200000000001,
-1356.3200000000002,
-1364,
-1371.44,
-1378.8799999999999,
-1386.6,
-1394.52,
-1401.6799999999998,
-1409.6399999999999,
-1416.84,
-1424.76,
-1432.2,
-1439.6399999999999,
-1447.08,
-1454.8,
-1462.48,
-1470.4,
-1477.84,
-1485.52
],
"y": [
3.0377502400000003,
3.0372381200000005,
3.0389576000000003,
3.0375075600000003,
3.0375599200000005,
3.03758884,
3.03793616,
3.03747152,
3.0370036000000002,
3.03756764,
3.03812184,
3.03874416,
3.03859552,
3.03837132,
3.0373834,
3.03815144,
3.0374774799999997,
3.03760312,
3.0364977599999996,
3.0374817999999997,
3.03792032,
3.0371804,
3.03752944,
3.03744156,
3.0381961200000007,
3.03829744,
3.0377584000000004,
3.03694476,
3.03844452,
3.0384173999999993,
3.03792024,
3.0381753600000003,
3.0379460400000005,
3.0381328400000003,
3.0374061199999995,
3.0395602399999997,
3.03709812,
3.03776168,
3.03738132,
3.0382654800000006,
3.03765448,
3.03886568,
3.03912756,
3.0371265999999997,
3.03690536,
3.0380764,
3.0384116,
3.03789536,
3.0373095599999997,
3.0397542399999997,
3.03842252,
3.03628508,
3.03884344,
3.0374473600000003,
3.03824716,
3.0374528,
3.0375365199999997,
3.0384535599999998,
3.03735016,
3.0380007200000003,
3.0381843200000005,
3.0367940799999995,
3.0375799600000004,
3.0376666,
3.03757132,
3.03764212,
3.0374980000000003,
3.0374322400000002,
3.03758948,
3.0387207999999997,
3.03829116,
3.0378460000000005,
3.03687232,
3.03687308,
3.03777312,
3.03831756,
3.037005,
3.03774588,
3.03636752,
3.0382876,
3.03796948,
3.0373808,
3.0373144400000003,
3.0385349999999995,
3.0384397200000004,
3.03741572,
3.03904876,
3.03775716,
3.0375024,
3.03850708,
3.03766524,
3.0374315600000004,
3.0377463999999996,
3.03789232,
3.03787472,
3.0370972800000002,
3.0370137999999995,
3.0386644800000004,
3.0392457999999998,
3.03881952,
3.0379205199999992,
3.03803788,
3.0378897599999997,
3.03724528,
3.0378592400000004,
3.0378936399999996,
3.038106,
3.0381987199999996,
3.0377226,
3.03706152,
3.0357501200000003,
3.036806,
3.03713608,
3.0357983600000003,
3.03668888,
3.03792388,
3.03807912,
3.03840712,
3.0374677599999997,
3.0385865199999995,
3.03851432,
3.03711116,
3.03758384,
3.0380485199999994,
3.0379727999999995,
3.0386824399999997,
3.03841572,
3.0364722399999997,
3.03817072,
3.0369794,
3.03783368,
3.0372764399999994,
3.0381715199999997,
3.0381676000000004,
3.0392506399999997,
3.0388512399999996,
3.03804624,
3.0365770800000003,
3.03769852,
3.0384360399999997,
3.0368162799999996,
3.0384901999999996,
3.0372990399999997,
3.0386249199999997,
3.03809468,
3.0383149200000004,
3.0374212,
3.03887604,
3.0387226,
3.03843904,
3.037353,
3.03856768,
3.0375456000000005,
3.0374952399999997,
3.03885396,
3.0384461600000003,
3.0384697199999997,
3.0392487200000002,
3.03806308,
3.037782,
3.0380041600000003,
3.03737704,
3.0383633600000004,
3.0379780399999996,
3.03861168,
3.03779568,
3.0376596,
3.0380656000000004,
3.0383548400000002,
3.03909372,
3.03798836,
3.0369806,
3.03690548,
3.0383060800000004,
3.0387213600000003,
3.03878812,
3.0380201999999996,
3.03760096,
3.03877928,
3.038241,
3.0377312,
3.03771176,
3.0379862799999997,
3.03855552,
3.03839092,
3.03853668,
3.03918708,
3.03796132,
3.0380427999999995,
3.03865044,
3.03852068,
3.03799764,
3.03753332,
3.03927036,
3.03825872,
3.03855376,
3.0388627599999998,
3.03740704,
3.0373753199999998,
3.0383327199999997,
3.0380768799999998
]
}
],
"layout": {
"font": {
"size": 16
},
"margin": {
"b": 70,
"l": 110,
"pad": 4,
"r": 50,
"t": 50
},
"title": "S11 without sample",
"titlefont": {
"size": 32
},
"xaxis": {
"gridcolor": "#bdbdbd",
"gridwidth": 2,
"linecolor": "#636363",
"linewidth": 6,
"mirror": "ticks",
"showgrid": true,
"showline": true,
"title": "B (G)",
"titlefont": {
"size": 22
},
"zeroline": true,
"zerolinecolor": "#969696",
"zerolinewidth": 2
},
"yaxis": {
"gridcolor": "#bdbdbd",
"gridwidth": 2,
"linecolor": "#636363",
"linewidth": 6,
"mirror": "ticks",
"showgrid": true,
"showline": true,
"title": "S11 (dB)",
"titlefont": {
"size": 22
},
"zeroline": true,
"zerolinecolor": "#969696",
"zerolinewidth": 2
}
}
},
"text/html": [
"<div id=\"0c29da7a-0c92-4ac0-b887-470c8fb591e2\" style=\"height: 525px; width: 100%;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"0c29da7a-0c92-4ac0-b887-470c8fb591e2\", [{\"type\": \"scatter\", \"x\": [21.8, 14.64, 7.2, 0.0, -7.159999999999999, -14.64, -21.32, -29.0, -36.2, -43.4, -50.839999999999996, -58.279999999999994, -65.72, -73.16, -80.36, -87.8, -95.24, -102.67999999999999, -109.6, -117.55999999999999, -124.24000000000001, -132.2, -139.12, -147.07999999999998, -154.0, -161.95999999999998, -169.64000000000001, -176.56, -184.52, -191.72, -199.4, -206.6, -214.04000000000002, -221.48000000000002, -229.16, -236.6, -244.04000000000002, -251.2, -258.91999999999996, -266.36, -274.04, -281.48, -288.91999999999996, -296.12, -303.8, -311.24, -318.68, -326.12, -333.56, -341.0, -348.44, -355.88, -363.32, -370.76, -378.44, -385.88, -393.08000000000004, -401.52, -408.68, -416.64, -423.84, -431.52, -438.96000000000004, -446.4, -453.84, -461.28000000000003, -468.71999999999997, -476.16, -483.6, -491.52, -498.71999999999997, -506.68, -514.12, -522.04, -528.96, -536.92, -544.36, -551.8, -559.24, -566.6800000000001, -574.12, -582.04, -589.76, -597.4399999999999, -604.64, -612.5600000000001, -619.76, -627.4399999999999, -634.88, -642.3199999999999, -650.0, -657.6800000000001, -665.36, -672.8399999999999, -680.76, -688.2, -695.64, -703.08, -710.52, -717.96, -725.64, -733.08, -741.04, -748.48, -756.4, -763.8399999999999, -771.28, -778.72, -786.64, -793.6, -801.52, -809.0, -817.1600000000001, -824.32, -832.04, -839.4799999999999, -846.9200000000001, -855.1200000000001, -861.8, -870.0, -877.4399999999999, -885.36, -892.5600000000001, -900.24, -907.68, -915.36, -922.8, -931.24, -938.4399999999999, -946.1200000000001, -953.5600000000001, -961.0, -968.4399999999999, -976.36, -983.6, -991.5200000000001, -999.4399999999999, -1006.8799999999999, -1014.32, -1021.76, -1029.6799999999998, -1037.16, -1045.08, -1052.28, -1060.2, -1067.6399999999999, -1075.08, -1082.52, -1089.96, -1097.4, -1105.3600000000001, -1113.04, -1120.96, -1128.16, -1135.84, -1143.28, -1150.96, -1158.16, -1166.3600000000001, -1174.04, -1181.72, -1189.16, -1196.6, -1204.28, -1211.72, -1219.6799999999998, -1227.3600000000001, -1235.04, -1242.24, -1249.92, -1257.3600000000001, -1265.04, -1272.24, -1280.44, -1287.8799999999999, -1295.56, -1303.24, -1310.6799999999998, -1318.1200000000001, -1325.8, -1334.0, -1340.96, -1349.1200000000001, -1356.3200000000002, -1364.0, -1371.44, -1378.8799999999999, -1386.6, -1394.52, -1401.6799999999998, -1409.6399999999999, -1416.84, -1424.76, -1432.2, -1439.6399999999999, -1447.08, -1454.8, -1462.48, -1470.4, -1477.84, -1485.52], \"y\": [3.0377502400000003, 3.0372381200000005, 3.0389576000000003, 3.0375075600000003, 3.0375599200000005, 3.03758884, 3.03793616, 3.03747152, 3.0370036000000002, 3.03756764, 3.03812184, 3.03874416, 3.03859552, 3.03837132, 3.0373834, 3.03815144, 3.0374774799999997, 3.03760312, 3.0364977599999996, 3.0374817999999997, 3.03792032, 3.0371804, 3.03752944, 3.03744156, 3.0381961200000007, 3.03829744, 3.0377584000000004, 3.03694476, 3.03844452, 3.0384173999999993, 3.03792024, 3.0381753600000003, 3.0379460400000005, 3.0381328400000003, 3.0374061199999995, 3.0395602399999997, 3.03709812, 3.03776168, 3.03738132, 3.0382654800000006, 3.03765448, 3.03886568, 3.03912756, 3.0371265999999997, 3.03690536, 3.0380764, 3.0384116, 3.03789536, 3.0373095599999997, 3.0397542399999997, 3.03842252, 3.03628508, 3.03884344, 3.0374473600000003, 3.03824716, 3.0374528, 3.0375365199999997, 3.0384535599999998, 3.03735016, 3.0380007200000003, 3.0381843200000005, 3.0367940799999995, 3.0375799600000004, 3.0376666, 3.03757132, 3.03764212, 3.0374980000000003, 3.0374322400000002, 3.03758948, 3.0387207999999997, 3.03829116, 3.0378460000000005, 3.03687232, 3.03687308, 3.03777312, 3.03831756, 3.037005, 3.03774588, 3.03636752, 3.0382876, 3.03796948, 3.0373808, 3.0373144400000003, 3.0385349999999995, 3.0384397200000004, 3.03741572, 3.03904876, 3.03775716, 3.0375024, 3.03850708, 3.03766524, 3.0374315600000004, 3.0377463999999996, 3.03789232, 3.03787472, 3.0370972800000002, 3.0370137999999995, 3.0386644800000004, 3.0392457999999998, 3.03881952, 3.0379205199999992, 3.03803788, 3.0378897599999997, 3.03724528, 3.0378592400000004, 3.0378936399999996, 3.038106, 3.0381987199999996, 3.0377226, 3.03706152, 3.0357501200000003, 3.036806, 3.03713608, 3.0357983600000003, 3.03668888, 3.03792388, 3.03807912, 3.03840712, 3.0374677599999997, 3.0385865199999995, 3.03851432, 3.03711116, 3.03758384, 3.0380485199999994, 3.0379727999999995, 3.0386824399999997, 3.03841572, 3.0364722399999997, 3.03817072, 3.0369794, 3.03783368, 3.0372764399999994, 3.0381715199999997, 3.0381676000000004, 3.0392506399999997, 3.0388512399999996, 3.03804624, 3.0365770800000003, 3.03769852, 3.0384360399999997, 3.0368162799999996, 3.0384901999999996, 3.0372990399999997, 3.0386249199999997, 3.03809468, 3.0383149200000004, 3.0374212, 3.03887604, 3.0387226, 3.03843904, 3.037353, 3.03856768, 3.0375456000000005, 3.0374952399999997, 3.03885396, 3.0384461600000003, 3.0384697199999997, 3.0392487200000002, 3.03806308, 3.037782, 3.0380041600000003, 3.03737704, 3.0383633600000004, 3.0379780399999996, 3.03861168, 3.03779568, 3.0376596, 3.0380656000000004, 3.0383548400000002, 3.03909372, 3.03798836, 3.0369806, 3.03690548, 3.0383060800000004, 3.0387213600000003, 3.03878812, 3.0380201999999996, 3.03760096, 3.03877928, 3.038241, 3.0377312, 3.03771176, 3.0379862799999997, 3.03855552, 3.03839092, 3.03853668, 3.03918708, 3.03796132, 3.0380427999999995, 3.03865044, 3.03852068, 3.03799764, 3.03753332, 3.03927036, 3.03825872, 3.03855376, 3.0388627599999998, 3.03740704, 3.0373753199999998, 3.0383327199999997, 3.0380768799999998], \"name\": \"Exp. S11\"}], {\"margin\": {\"l\": 110, \"r\": 50, \"b\": 70, \"t\": 50, \"pad\": 4}, \"title\": \"S11 without sample\", \"titlefont\": {\"size\": 32}, \"font\": {\"size\": 16}, \"xaxis\": {\"title\": \"B (G)\", \"titlefont\": {\"size\": 22}, \"showgrid\": true, \"zeroline\": true, \"showline\": true, \"mirror\": \"ticks\", \"gridcolor\": \"#bdbdbd\", \"gridwidth\": 2, \"zerolinecolor\": \"#969696\", \"zerolinewidth\": 2, \"linecolor\": \"#636363\", \"linewidth\": 6}, \"yaxis\": {\"title\": \"S11 (dB)\", \"titlefont\": {\"size\": 22}, \"showgrid\": true, \"zeroline\": true, \"showline\": true, \"mirror\": \"ticks\", \"gridcolor\": \"#bdbdbd\", \"gridwidth\": 2, \"zerolinecolor\": \"#969696\", \"zerolinewidth\": 2, \"linecolor\": \"#636363\", \"linewidth\": 6}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\"})});</script>"
],
"text/vnd.plotly.v1+html": [
"<div id=\"0c29da7a-0c92-4ac0-b887-470c8fb591e2\" style=\"height: 525px; width: 100%;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"0c29da7a-0c92-4ac0-b887-470c8fb591e2\", [{\"type\": \"scatter\", \"x\": [21.8, 14.64, 7.2, 0.0, -7.159999999999999, -14.64, -21.32, -29.0, -36.2, -43.4, -50.839999999999996, -58.279999999999994, -65.72, -73.16, -80.36, -87.8, -95.24, -102.67999999999999, -109.6, -117.55999999999999, -124.24000000000001, -132.2, -139.12, -147.07999999999998, -154.0, -161.95999999999998, -169.64000000000001, -176.56, -184.52, -191.72, -199.4, -206.6, -214.04000000000002, -221.48000000000002, -229.16, -236.6, -244.04000000000002, -251.2, -258.91999999999996, -266.36, -274.04, -281.48, -288.91999999999996, -296.12, -303.8, -311.24, -318.68, -326.12, -333.56, -341.0, -348.44, -355.88, -363.32, -370.76, -378.44, -385.88, -393.08000000000004, -401.52, -408.68, -416.64, -423.84, -431.52, -438.96000000000004, -446.4, -453.84, -461.28000000000003, -468.71999999999997, -476.16, -483.6, -491.52, -498.71999999999997, -506.68, -514.12, -522.04, -528.96, -536.92, -544.36, -551.8, -559.24, -566.6800000000001, -574.12, -582.04, -589.76, -597.4399999999999, -604.64, -612.5600000000001, -619.76, -627.4399999999999, -634.88, -642.3199999999999, -650.0, -657.6800000000001, -665.36, -672.8399999999999, -680.76, -688.2, -695.64, -703.08, -710.52, -717.96, -725.64, -733.08, -741.04, -748.48, -756.4, -763.8399999999999, -771.28, -778.72, -786.64, -793.6, -801.52, -809.0, -817.1600000000001, -824.32, -832.04, -839.4799999999999, -846.9200000000001, -855.1200000000001, -861.8, -870.0, -877.4399999999999, -885.36, -892.5600000000001, -900.24, -907.68, -915.36, -922.8, -931.24, -938.4399999999999, -946.1200000000001, -953.5600000000001, -961.0, -968.4399999999999, -976.36, -983.6, -991.5200000000001, -999.4399999999999, -1006.8799999999999, -1014.32, -1021.76, -1029.6799999999998, -1037.16, -1045.08, -1052.28, -1060.2, -1067.6399999999999, -1075.08, -1082.52, -1089.96, -1097.4, -1105.3600000000001, -1113.04, -1120.96, -1128.16, -1135.84, -1143.28, -1150.96, -1158.16, -1166.3600000000001, -1174.04, -1181.72, -1189.16, -1196.6, -1204.28, -1211.72, -1219.6799999999998, -1227.3600000000001, -1235.04, -1242.24, -1249.92, -1257.3600000000001, -1265.04, -1272.24, -1280.44, -1287.8799999999999, -1295.56, -1303.24, -1310.6799999999998, -1318.1200000000001, -1325.8, -1334.0, -1340.96, -1349.1200000000001, -1356.3200000000002, -1364.0, -1371.44, -1378.8799999999999, -1386.6, -1394.52, -1401.6799999999998, -1409.6399999999999, -1416.84, -1424.76, -1432.2, -1439.6399999999999, -1447.08, -1454.8, -1462.48, -1470.4, -1477.84, -1485.52], \"y\": [3.0377502400000003, 3.0372381200000005, 3.0389576000000003, 3.0375075600000003, 3.0375599200000005, 3.03758884, 3.03793616, 3.03747152, 3.0370036000000002, 3.03756764, 3.03812184, 3.03874416, 3.03859552, 3.03837132, 3.0373834, 3.03815144, 3.0374774799999997, 3.03760312, 3.0364977599999996, 3.0374817999999997, 3.03792032, 3.0371804, 3.03752944, 3.03744156, 3.0381961200000007, 3.03829744, 3.0377584000000004, 3.03694476, 3.03844452, 3.0384173999999993, 3.03792024, 3.0381753600000003, 3.0379460400000005, 3.0381328400000003, 3.0374061199999995, 3.0395602399999997, 3.03709812, 3.03776168, 3.03738132, 3.0382654800000006, 3.03765448, 3.03886568, 3.03912756, 3.0371265999999997, 3.03690536, 3.0380764, 3.0384116, 3.03789536, 3.0373095599999997, 3.0397542399999997, 3.03842252, 3.03628508, 3.03884344, 3.0374473600000003, 3.03824716, 3.0374528, 3.0375365199999997, 3.0384535599999998, 3.03735016, 3.0380007200000003, 3.0381843200000005, 3.0367940799999995, 3.0375799600000004, 3.0376666, 3.03757132, 3.03764212, 3.0374980000000003, 3.0374322400000002, 3.03758948, 3.0387207999999997, 3.03829116, 3.0378460000000005, 3.03687232, 3.03687308, 3.03777312, 3.03831756, 3.037005, 3.03774588, 3.03636752, 3.0382876, 3.03796948, 3.0373808, 3.0373144400000003, 3.0385349999999995, 3.0384397200000004, 3.03741572, 3.03904876, 3.03775716, 3.0375024, 3.03850708, 3.03766524, 3.0374315600000004, 3.0377463999999996, 3.03789232, 3.03787472, 3.0370972800000002, 3.0370137999999995, 3.0386644800000004, 3.0392457999999998, 3.03881952, 3.0379205199999992, 3.03803788, 3.0378897599999997, 3.03724528, 3.0378592400000004, 3.0378936399999996, 3.038106, 3.0381987199999996, 3.0377226, 3.03706152, 3.0357501200000003, 3.036806, 3.03713608, 3.0357983600000003, 3.03668888, 3.03792388, 3.03807912, 3.03840712, 3.0374677599999997, 3.0385865199999995, 3.03851432, 3.03711116, 3.03758384, 3.0380485199999994, 3.0379727999999995, 3.0386824399999997, 3.03841572, 3.0364722399999997, 3.03817072, 3.0369794, 3.03783368, 3.0372764399999994, 3.0381715199999997, 3.0381676000000004, 3.0392506399999997, 3.0388512399999996, 3.03804624, 3.0365770800000003, 3.03769852, 3.0384360399999997, 3.0368162799999996, 3.0384901999999996, 3.0372990399999997, 3.0386249199999997, 3.03809468, 3.0383149200000004, 3.0374212, 3.03887604, 3.0387226, 3.03843904, 3.037353, 3.03856768, 3.0375456000000005, 3.0374952399999997, 3.03885396, 3.0384461600000003, 3.0384697199999997, 3.0392487200000002, 3.03806308, 3.037782, 3.0380041600000003, 3.03737704, 3.0383633600000004, 3.0379780399999996, 3.03861168, 3.03779568, 3.0376596, 3.0380656000000004, 3.0383548400000002, 3.03909372, 3.03798836, 3.0369806, 3.03690548, 3.0383060800000004, 3.0387213600000003, 3.03878812, 3.0380201999999996, 3.03760096, 3.03877928, 3.038241, 3.0377312, 3.03771176, 3.0379862799999997, 3.03855552, 3.03839092, 3.03853668, 3.03918708, 3.03796132, 3.0380427999999995, 3.03865044, 3.03852068, 3.03799764, 3.03753332, 3.03927036, 3.03825872, 3.03855376, 3.0388627599999998, 3.03740704, 3.0373753199999998, 3.0383327199999997, 3.0380768799999998], \"name\": \"Exp. S11\"}], {\"margin\": {\"l\": 110, \"r\": 50, \"b\": 70, \"t\": 50, \"pad\": 4}, \"title\": \"S11 without sample\", \"titlefont\": {\"size\": 32}, \"font\": {\"size\": 16}, \"xaxis\": {\"title\": \"B (G)\", \"titlefont\": {\"size\": 22}, \"showgrid\": true, \"zeroline\": true, \"showline\": true, \"mirror\": \"ticks\", \"gridcolor\": \"#bdbdbd\", \"gridwidth\": 2, \"zerolinecolor\": \"#969696\", \"zerolinewidth\": 2, \"linecolor\": \"#636363\", \"linewidth\": 6}, \"yaxis\": {\"title\": \"S11 (dB)\", \"titlefont\": {\"size\": 22}, \"showgrid\": true, \"zeroline\": true, \"showline\": true, \"mirror\": \"ticks\", \"gridcolor\": \"#bdbdbd\", \"gridwidth\": 2, \"zerolinecolor\": \"#969696\", \"zerolinewidth\": 2, \"linecolor\": \"#636363\", \"linewidth\": 6}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\"})});</script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import plotly.plotly as py\n",
"from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot, offline\n",
"init_notebook_mode(connected=True)\n",
"import plotly.graph_objs as go\n",
"\n",
"layout = go.Layout(\n",
" margin = dict(l = 110, r = 50, b = 70, t = 50, pad = 4),\n",
" title = 'S11 without sample',\n",
" titlefont = dict(size=32),\n",
" font = dict(size=16),\n",
" xaxis=dict(\n",
" title = 'B (G)',\n",
" titlefont=dict(\n",
" size=22,\n",
" ),\n",
" showgrid=True,\n",
" zeroline=True,\n",
" showline=True,\n",
" mirror='ticks',\n",
" gridcolor='#bdbdbd',\n",
" gridwidth=2,\n",
" zerolinecolor='#969696',\n",
" zerolinewidth=2,\n",
" linecolor='#636363',\n",
" linewidth=6\n",
" ),\n",
" yaxis=dict(\n",
" title = 'S11 (dB)',\n",
" titlefont=dict(\n",
" size=22,\n",
" ),\n",
" showgrid=True,\n",
" zeroline=True,\n",
" showline=True,\n",
" mirror='ticks',\n",
" gridcolor='#bdbdbd',\n",
" gridwidth=2,\n",
" zerolinecolor='#969696',\n",
" zerolinewidth=2,\n",
" linecolor='#636363',\n",
" linewidth=6\n",
" )\n",
")\n",
"\n",
"trace = go.Scatter(x=x, y=y, name='Exp. S11')\n",
"iplot({'data':[trace], 'layout':layout}, filename='S21')"
]
},
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"name": "Exp. S11",
"type": "scatter",
"x": [
16.6,
11.4,
5.6,
-0.6,
-6.4,
-12.4,
-18.4,
-24.4,
-29.4,
-35.4,
-41.4,
-47.4,
-53.4,
-59.4,
-65.4,
-71.4,
-77.2,
-83.2,
-89.2,
-95.2,
-101.2,
-107.2,
-113.2,
-119.2,
-125.2,
-131.2,
-137.2,
-143,
-149.2,
-155.2,
-161.2,
-167.2,
-173.2,
-179.2,
-185.2,
-191.2,
-197.2,
-203.2,
-209.2,
-215.2,
-221.2,
-227.2,
-233.2,
-239.2,
-245.2,
-251.2,
-257.2,
-263.2,
-269.2,
-275.2,
-281.4,
-287.2,
-293.6,
-299.4,
-305.8,
-311.4,
-318,
-324.2,
-330.2,
-336.2,
-342.2,
-348.2,
-354.2,
-360.2,
-366.2,
-372.2,
-378.2,
-384.6,
-390.4,
-396.8,
-403,
-409,
-414.8,
-421.2,
-427.2,
-433.2,
-439.2,
-445.2,
-451.2,
-457.2,
-463.4,
-469.6,
-475.6,
-482,
-488,
-494.2,
-500.2,
-506.2,
-512.2,
-518.2,
-524.6,
-530.4,
-537,
-543,
-549.2,
-555,
-561,
-567.2,
-573.2,
-579.2,
-585.6,
-591.8,
-598,
-604,
-610.2,
-616.2,
-622.2,
-628.2,
-634.4,
-640.2,
-647,
-652.8,
-659,
-665,
-671.2,
-677.4,
-683.2,
-689.8,
-695.8,
-702,
-708,
-714,
-720,
-726.2,
-732.2,
-738.6,
-744.8,
-751,
-757,
-763,
-769,
-775.2,
-781.2,
-787.6,
-793.4,
-800,
-806,
-812,
-818.2,
-824.2,
-830.2,
-836.2,
-843,
-848.8,
-855.2,
-861.2,
-867.2,
-873.2,
-879.4,
-885.6,
-892.2,
-897.6,
-904.2,
-910.2,
-916.2,
-922.2,
-928.2,
-934.2,
-941,
-947.2,
-953.2,
-959.2,
-965.2,
-971.2,
-977.4,
-984,
-989.8,
-996.2,
-1002.2,
-1008.2,
-1014.2,
-1020.2,
-1026.2,
-1032.8,
-1039,
-1045.2,
-1051.2,
-1057.2,
-1063.2,
-1069.2,
-1075.8,
-1081.8,
-1088,
-1094,
-1100.2,
-1106.2,
-1112.2,
-1118.4,
-1124.6,
-1130.6,
-1136.8,
-1142.8,
-1149.2,
-1155.2,
-1161.2,
-1167.4,
-1173.4,
-1179.4,
-1185.6,
-1191.4,
-1198
],
"y": [
-14.591924999999998,
-14.5917012,
-14.591374400000001,
-14.591552400000001,
-14.5904672,
-14.5908096,
-14.5864812,
-14.5882562,
-14.5861808,
-14.587324599999999,
-14.5887832,
-14.5885704,
-14.587496999999999,
-14.587809000000002,
-14.5885468,
-14.585541599999999,
-14.5895106,
-14.5875716,
-14.586334400000002,
-14.5913884,
-14.589625000000002,
-14.590620999999999,
-14.5893888,
-14.5880482,
-14.5877366,
-14.589084600000001,
-14.585136199999999,
-14.586704799999998,
-14.583901599999999,
-14.5847532,
-14.583128199999999,
-14.585862799999997,
-14.582967200000002,
-14.583633,
-14.581584999999999,
-14.582442599999998,
-14.583141000000001,
-14.583884799999998,
-14.5833536,
-14.5829666,
-14.5852058,
-14.5819406,
-14.583153200000002,
-14.5848902,
-14.583638399999998,
-14.586586,
-14.5876872,
-14.5864102,
-14.586446599999999,
-14.5857212,
-14.587284399999998,
-14.585447199999999,
-14.590037200000001,
-14.589795800000001,
-14.588033200000002,
-14.589343,
-14.590767199999998,
-14.590793,
-14.5895138,
-14.5922528,
-14.592346000000001,
-14.590557,
-14.592159800000001,
-14.591921000000003,
-14.589342199999999,
-14.592888399999998,
-14.5953688,
-14.5940244,
-14.597470199999998,
-14.5955458,
-14.596390600000001,
-14.5948602,
-14.595342800000001,
-14.5962886,
-14.594839400000001,
-14.5964914,
-14.5953422,
-14.594327400000001,
-14.5957786,
-14.596926999999999,
-14.596481200000003,
-14.597054199999999,
-14.5963678,
-14.5972462,
-14.598200600000002,
-14.5983844,
-14.5969722,
-14.597579200000002,
-14.6011022,
-14.6011768,
-14.600489,
-14.6012596,
-14.599295799999998,
-14.5999676,
-14.601307600000002,
-14.6043972,
-14.6031448,
-14.6048464,
-14.605777400000003,
-14.604668,
-14.604292199999998,
-14.605886800000002,
-14.6046738,
-14.607404200000001,
-14.6082024,
-14.6080118,
-14.6083372,
-14.608819599999999,
-14.6088242,
-14.6087682,
-14.609212399999999,
-14.609690599999999,
-14.6099712,
-14.613190800000002,
-14.612036400000003,
-14.610994199999999,
-14.610381800000003,
-14.612970199999998,
-14.613898,
-14.613038800000002,
-14.613770800000001,
-14.6141844,
-14.6114936,
-14.613243,
-14.614978400000002,
-14.613386,
-14.615978000000002,
-14.612573799999998,
-14.614106799999998,
-14.616723799999997,
-14.614768399999999,
-14.616080199999999,
-14.616628600000002,
-14.617048200000003,
-14.6183066,
-14.617717399999998,
-14.617912999999998,
-14.620367199999999,
-14.6199238,
-14.620664399999999,
-14.621993600000001,
-14.620274200000003,
-14.621560599999999,
-14.6221382,
-14.621301800000001,
-14.6186464,
-14.6179766,
-14.618693799999999,
-14.618634199999999,
-14.618905800000002,
-14.618654799999998,
-14.620172400000001,
-14.620947000000001,
-14.622097400000001,
-14.620870400000001,
-14.622753799999998,
-14.621101199999998,
-14.620987599999998,
-14.620014399999999,
-14.6221116,
-14.6216878,
-14.622519599999999,
-14.623034399999998,
-14.6210802,
-14.624004599999997,
-14.623113600000002,
-14.621967799999998,
-14.620972400000003,
-14.622527000000002,
-14.6210252,
-14.623340000000002,
-14.620522600000001,
-14.622807799999999,
-14.6236278,
-14.623116200000002,
-14.622205599999997,
-14.6252274,
-14.6225986,
-14.6243662,
-14.622920599999997,
-14.621168,
-14.6171212,
-14.61958,
-14.621494799999999,
-14.6216766,
-14.623302599999999,
-14.623780399999998,
-14.624793599999999,
-14.625619,
-14.622109799999999,
-14.6251342,
-14.619023600000002,
-14.6223968,
-14.620962800000001,
-14.620525800000001,
-14.621456600000002,
-14.623244600000001,
-14.6241614,
-14.623325,
-14.618365599999999,
-14.619358
]
}
],
"layout": {
"font": {
"size": 16
},
"margin": {
"b": 70,
"l": 110,
"pad": 4,
"r": 50,
"t": 50
},
"title": "S11 with sample",
"titlefont": {
"size": 32
},
"xaxis": {
"gridcolor": "#bdbdbd",
"gridwidth": 2,
"linecolor": "#636363",
"linewidth": 6,
"mirror": "ticks",
"showgrid": true,
"showline": true,
"title": "B (G)",
"titlefont": {
"size": 22
},
"zeroline": true,
"zerolinecolor": "#969696",
"zerolinewidth": 2
},
"yaxis": {
"gridcolor": "#bdbdbd",
"gridwidth": 2,
"linecolor": "#636363",
"linewidth": 6,
"mirror": "ticks",
"showgrid": true,
"showline": true,
"title": "S11 (dB)",
"titlefont": {
"size": 22
},
"zeroline": true,
"zerolinecolor": "#969696",
"zerolinewidth": 2
}
}
},
"text/html": [
"<div id=\"fe25c224-06aa-4c1b-aad2-ef96c574ff34\" style=\"height: 525px; width: 100%;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"fe25c224-06aa-4c1b-aad2-ef96c574ff34\", [{\"type\": \"scatter\", \"x\": [16.6, 11.4, 5.6, -0.6, -6.4, -12.4, -18.4, -24.4, -29.4, -35.4, -41.4, -47.4, -53.4, -59.4, -65.4, -71.4, -77.2, -83.2, -89.2, -95.2, -101.2, -107.2, -113.2, -119.2, -125.2, -131.2, -137.2, -143.0, -149.2, -155.2, -161.2, -167.2, -173.2, -179.2, -185.2, -191.2, -197.2, -203.2, -209.2, -215.2, -221.2, -227.2, -233.2, -239.2, -245.2, -251.2, -257.2, -263.2, -269.2, -275.2, -281.4, -287.2, -293.6, -299.4, -305.8, -311.4, -318.0, -324.2, -330.2, -336.2, -342.2, -348.2, -354.2, -360.2, -366.2, -372.2, -378.2, -384.6, -390.4, -396.8, -403.0, -409.0, -414.8, -421.2, -427.2, -433.2, -439.2, -445.2, -451.2, -457.2, -463.4, -469.6, -475.6, -482.0, -488.0, -494.2, -500.2, -506.2, -512.2, -518.2, -524.6, -530.4, -537.0, -543.0, -549.2, -555.0, -561.0, -567.2, -573.2, -579.2, -585.6, -591.8, -598.0, -604.0, -610.2, -616.2, -622.2, -628.2, -634.4, -640.2, -647.0, -652.8, -659.0, -665.0, -671.2, -677.4, -683.2, -689.8, -695.8, -702.0, -708.0, -714.0, -720.0, -726.2, -732.2, -738.6, -744.8, -751.0, -757.0, -763.0, -769.0, -775.2, -781.2, -787.6, -793.4, -800.0, -806.0, -812.0, -818.2, -824.2, -830.2, -836.2, -843.0, -848.8, -855.2, -861.2, -867.2, -873.2, -879.4, -885.6, -892.2, -897.6, -904.2, -910.2, -916.2, -922.2, -928.2, -934.2, -941.0, -947.2, -953.2, -959.2, -965.2, -971.2, -977.4, -984.0, -989.8, -996.2, -1002.2, -1008.2, -1014.2, -1020.2, -1026.2, -1032.8, -1039.0, -1045.2, -1051.2, -1057.2, -1063.2, -1069.2, -1075.8, -1081.8, -1088.0, -1094.0, -1100.2, -1106.2, -1112.2, -1118.4, -1124.6, -1130.6, -1136.8, -1142.8, -1149.2, -1155.2, -1161.2, -1167.4, -1173.4, -1179.4, -1185.6, -1191.4, -1198.0], \"y\": [-14.591924999999998, -14.5917012, -14.591374400000001, -14.591552400000001, -14.5904672, -14.5908096, -14.5864812, -14.5882562, -14.5861808, -14.587324599999999, -14.5887832, -14.5885704, -14.587496999999999, -14.587809000000002, -14.5885468, -14.585541599999999, -14.5895106, -14.5875716, -14.586334400000002, -14.5913884, -14.589625000000002, -14.590620999999999, -14.5893888, -14.5880482, -14.5877366, -14.589084600000001, -14.585136199999999, -14.586704799999998, -14.583901599999999, -14.5847532, -14.583128199999999, -14.585862799999997, -14.582967200000002, -14.583633, -14.581584999999999, -14.582442599999998, -14.583141000000001, -14.583884799999998, -14.5833536, -14.5829666, -14.5852058, -14.5819406, -14.583153200000002, -14.5848902, -14.583638399999998, -14.586586, -14.5876872, -14.5864102, -14.586446599999999, -14.5857212, -14.587284399999998, -14.585447199999999, -14.590037200000001, -14.589795800000001, -14.588033200000002, -14.589343, -14.590767199999998, -14.590793, -14.5895138, -14.5922528, -14.592346000000001, -14.590557, -14.592159800000001, -14.591921000000003, -14.589342199999999, -14.592888399999998, -14.5953688, -14.5940244, -14.597470199999998, -14.5955458, -14.596390600000001, -14.5948602, -14.595342800000001, -14.5962886, -14.594839400000001, -14.5964914, -14.5953422, -14.594327400000001, -14.5957786, -14.596926999999999, -14.596481200000003, -14.597054199999999, -14.5963678, -14.5972462, -14.598200600000002, -14.5983844, -14.5969722, -14.597579200000002, -14.6011022, -14.6011768, -14.600489, -14.6012596, -14.599295799999998, -14.5999676, -14.601307600000002, -14.6043972, -14.6031448, -14.6048464, -14.605777400000003, -14.604668, -14.604292199999998, -14.605886800000002, -14.6046738, -14.607404200000001, -14.6082024, -14.6080118, -14.6083372, -14.608819599999999, -14.6088242, -14.6087682, -14.609212399999999, -14.609690599999999, -14.6099712, -14.613190800000002, -14.612036400000003, -14.610994199999999, -14.610381800000003, -14.612970199999998, -14.613898, -14.613038800000002, -14.613770800000001, -14.6141844, -14.6114936, -14.613243, -14.614978400000002, -14.613386, -14.615978000000002, -14.612573799999998, -14.614106799999998, -14.616723799999997, -14.614768399999999, -14.616080199999999, -14.616628600000002, -14.617048200000003, -14.6183066, -14.617717399999998, -14.617912999999998, -14.620367199999999, -14.6199238, -14.620664399999999, -14.621993600000001, -14.620274200000003, -14.621560599999999, -14.6221382, -14.621301800000001, -14.6186464, -14.6179766, -14.618693799999999, -14.618634199999999, -14.618905800000002, -14.618654799999998, -14.620172400000001, -14.620947000000001, -14.622097400000001, -14.620870400000001, -14.622753799999998, -14.621101199999998, -14.620987599999998, -14.620014399999999, -14.6221116, -14.6216878, -14.622519599999999, -14.623034399999998, -14.6210802, -14.624004599999997, -14.623113600000002, -14.621967799999998, -14.620972400000003, -14.622527000000002, -14.6210252, -14.623340000000002, -14.620522600000001, -14.622807799999999, -14.6236278, -14.623116200000002, -14.622205599999997, -14.6252274, -14.6225986, -14.6243662, -14.622920599999997, -14.621168, -14.6171212, -14.61958, -14.621494799999999, -14.6216766, -14.623302599999999, -14.623780399999998, -14.624793599999999, -14.625619, -14.622109799999999, -14.6251342, -14.619023600000002, -14.6223968, -14.620962800000001, -14.620525800000001, -14.621456600000002, -14.623244600000001, -14.6241614, -14.623325, -14.618365599999999, -14.619358], \"name\": \"Exp. S11\"}], {\"margin\": {\"l\": 110, \"r\": 50, \"b\": 70, \"t\": 50, \"pad\": 4}, \"title\": \"S11 with sample\", \"titlefont\": {\"size\": 32}, \"font\": {\"size\": 16}, \"xaxis\": {\"title\": \"B (G)\", \"titlefont\": {\"size\": 22}, \"showgrid\": true, \"zeroline\": true, \"showline\": true, \"mirror\": \"ticks\", \"gridcolor\": \"#bdbdbd\", \"gridwidth\": 2, \"zerolinecolor\": \"#969696\", \"zerolinewidth\": 2, \"linecolor\": \"#636363\", \"linewidth\": 6}, \"yaxis\": {\"title\": \"S11 (dB)\", \"titlefont\": {\"size\": 22}, \"showgrid\": true, \"zeroline\": true, \"showline\": true, \"mirror\": \"ticks\", \"gridcolor\": \"#bdbdbd\", \"gridwidth\": 2, \"zerolinecolor\": \"#969696\", \"zerolinewidth\": 2, \"linecolor\": \"#636363\", \"linewidth\": 6}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\"})});</script>"
],
"text/vnd.plotly.v1+html": [
"<div id=\"fe25c224-06aa-4c1b-aad2-ef96c574ff34\" style=\"height: 525px; width: 100%;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"fe25c224-06aa-4c1b-aad2-ef96c574ff34\", [{\"type\": \"scatter\", \"x\": [16.6, 11.4, 5.6, -0.6, -6.4, -12.4, -18.4, -24.4, -29.4, -35.4, -41.4, -47.4, -53.4, -59.4, -65.4, -71.4, -77.2, -83.2, -89.2, -95.2, -101.2, -107.2, -113.2, -119.2, -125.2, -131.2, -137.2, -143.0, -149.2, -155.2, -161.2, -167.2, -173.2, -179.2, -185.2, -191.2, -197.2, -203.2, -209.2, -215.2, -221.2, -227.2, -233.2, -239.2, -245.2, -251.2, -257.2, -263.2, -269.2, -275.2, -281.4, -287.2, -293.6, -299.4, -305.8, -311.4, -318.0, -324.2, -330.2, -336.2, -342.2, -348.2, -354.2, -360.2, -366.2, -372.2, -378.2, -384.6, -390.4, -396.8, -403.0, -409.0, -414.8, -421.2, -427.2, -433.2, -439.2, -445.2, -451.2, -457.2, -463.4, -469.6, -475.6, -482.0, -488.0, -494.2, -500.2, -506.2, -512.2, -518.2, -524.6, -530.4, -537.0, -543.0, -549.2, -555.0, -561.0, -567.2, -573.2, -579.2, -585.6, -591.8, -598.0, -604.0, -610.2, -616.2, -622.2, -628.2, -634.4, -640.2, -647.0, -652.8, -659.0, -665.0, -671.2, -677.4, -683.2, -689.8, -695.8, -702.0, -708.0, -714.0, -720.0, -726.2, -732.2, -738.6, -744.8, -751.0, -757.0, -763.0, -769.0, -775.2, -781.2, -787.6, -793.4, -800.0, -806.0, -812.0, -818.2, -824.2, -830.2, -836.2, -843.0, -848.8, -855.2, -861.2, -867.2, -873.2, -879.4, -885.6, -892.2, -897.6, -904.2, -910.2, -916.2, -922.2, -928.2, -934.2, -941.0, -947.2, -953.2, -959.2, -965.2, -971.2, -977.4, -984.0, -989.8, -996.2, -1002.2, -1008.2, -1014.2, -1020.2, -1026.2, -1032.8, -1039.0, -1045.2, -1051.2, -1057.2, -1063.2, -1069.2, -1075.8, -1081.8, -1088.0, -1094.0, -1100.2, -1106.2, -1112.2, -1118.4, -1124.6, -1130.6, -1136.8, -1142.8, -1149.2, -1155.2, -1161.2, -1167.4, -1173.4, -1179.4, -1185.6, -1191.4, -1198.0], \"y\": [-14.591924999999998, -14.5917012, -14.591374400000001, -14.591552400000001, -14.5904672, -14.5908096, -14.5864812, -14.5882562, -14.5861808, -14.587324599999999, -14.5887832, -14.5885704, -14.587496999999999, -14.587809000000002, -14.5885468, -14.585541599999999, -14.5895106, -14.5875716, -14.586334400000002, -14.5913884, -14.589625000000002, -14.590620999999999, -14.5893888, -14.5880482, -14.5877366, -14.589084600000001, -14.585136199999999, -14.586704799999998, -14.583901599999999, -14.5847532, -14.583128199999999, -14.585862799999997, -14.582967200000002, -14.583633, -14.581584999999999, -14.582442599999998, -14.583141000000001, -14.583884799999998, -14.5833536, -14.5829666, -14.5852058, -14.5819406, -14.583153200000002, -14.5848902, -14.583638399999998, -14.586586, -14.5876872, -14.5864102, -14.586446599999999, -14.5857212, -14.587284399999998, -14.585447199999999, -14.590037200000001, -14.589795800000001, -14.588033200000002, -14.589343, -14.590767199999998, -14.590793, -14.5895138, -14.5922528, -14.592346000000001, -14.590557, -14.592159800000001, -14.591921000000003, -14.589342199999999, -14.592888399999998, -14.5953688, -14.5940244, -14.597470199999998, -14.5955458, -14.596390600000001, -14.5948602, -14.595342800000001, -14.5962886, -14.594839400000001, -14.5964914, -14.5953422, -14.594327400000001, -14.5957786, -14.596926999999999, -14.596481200000003, -14.597054199999999, -14.5963678, -14.5972462, -14.598200600000002, -14.5983844, -14.5969722, -14.597579200000002, -14.6011022, -14.6011768, -14.600489, -14.6012596, -14.599295799999998, -14.5999676, -14.601307600000002, -14.6043972, -14.6031448, -14.6048464, -14.605777400000003, -14.604668, -14.604292199999998, -14.605886800000002, -14.6046738, -14.607404200000001, -14.6082024, -14.6080118, -14.6083372, -14.608819599999999, -14.6088242, -14.6087682, -14.609212399999999, -14.609690599999999, -14.6099712, -14.613190800000002, -14.612036400000003, -14.610994199999999, -14.610381800000003, -14.612970199999998, -14.613898, -14.613038800000002, -14.613770800000001, -14.6141844, -14.6114936, -14.613243, -14.614978400000002, -14.613386, -14.615978000000002, -14.612573799999998, -14.614106799999998, -14.616723799999997, -14.614768399999999, -14.616080199999999, -14.616628600000002, -14.617048200000003, -14.6183066, -14.617717399999998, -14.617912999999998, -14.620367199999999, -14.6199238, -14.620664399999999, -14.621993600000001, -14.620274200000003, -14.621560599999999, -14.6221382, -14.621301800000001, -14.6186464, -14.6179766, -14.618693799999999, -14.618634199999999, -14.618905800000002, -14.618654799999998, -14.620172400000001, -14.620947000000001, -14.622097400000001, -14.620870400000001, -14.622753799999998, -14.621101199999998, -14.620987599999998, -14.620014399999999, -14.6221116, -14.6216878, -14.622519599999999, -14.623034399999998, -14.6210802, -14.624004599999997, -14.623113600000002, -14.621967799999998, -14.620972400000003, -14.622527000000002, -14.6210252, -14.623340000000002, -14.620522600000001, -14.622807799999999, -14.6236278, -14.623116200000002, -14.622205599999997, -14.6252274, -14.6225986, -14.6243662, -14.622920599999997, -14.621168, -14.6171212, -14.61958, -14.621494799999999, -14.6216766, -14.623302599999999, -14.623780399999998, -14.624793599999999, -14.625619, -14.622109799999999, -14.6251342, -14.619023600000002, -14.6223968, -14.620962800000001, -14.620525800000001, -14.621456600000002, -14.623244600000001, -14.6241614, -14.623325, -14.618365599999999, -14.619358], \"name\": \"Exp. S11\"}], {\"margin\": {\"l\": 110, \"r\": 50, \"b\": 70, \"t\": 50, \"pad\": 4}, \"title\": \"S11 with sample\", \"titlefont\": {\"size\": 32}, \"font\": {\"size\": 16}, \"xaxis\": {\"title\": \"B (G)\", \"titlefont\": {\"size\": 22}, \"showgrid\": true, \"zeroline\": true, \"showline\": true, \"mirror\": \"ticks\", \"gridcolor\": \"#bdbdbd\", \"gridwidth\": 2, \"zerolinecolor\": \"#969696\", \"zerolinewidth\": 2, \"linecolor\": \"#636363\", \"linewidth\": 6}, \"yaxis\": {\"title\": \"S11 (dB)\", \"titlefont\": {\"size\": 22}, \"showgrid\": true, \"zeroline\": true, \"showline\": true, \"mirror\": \"ticks\", \"gridcolor\": \"#bdbdbd\", \"gridwidth\": 2, \"zerolinecolor\": \"#969696\", \"zerolinewidth\": 2, \"linecolor\": \"#636363\", \"linewidth\": 6}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\"})});</script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"result_s = \"20180704_test_FMR_S21_Field 0~2000G_Freq 5G_0\"\n",
"x_s=0\n",
"y_s = 0\n",
"for i in range(1,6):\n",
" result_name = result_s+str(i)\n",
" data = pd.read_csv(result_name,sep=\"\\t\")\n",
" y_s = y_s + data['Field (G)'].values\n",
" x_s = x_s + data.index.get_values()\n",
"y_s = y_s/5\n",
"x_s = x_s/5\n",
"\n",
"layout_2 = go.Layout(\n",
" margin = dict(l = 110, r = 50, b = 70, t = 50, pad = 4),\n",
" title = 'S11 with sample',\n",
" titlefont = dict(size=32),\n",
" font = dict(size=16),\n",
" xaxis=dict(\n",
" title = 'B (G)',\n",
" titlefont=dict(\n",
" size=22,\n",
" ),\n",
" showgrid=True,\n",
" zeroline=True,\n",
" showline=True,\n",
" mirror='ticks',\n",
" gridcolor='#bdbdbd',\n",
" gridwidth=2,\n",
" zerolinecolor='#969696',\n",
" zerolinewidth=2,\n",
" linecolor='#636363',\n",
" linewidth=6\n",
" ),\n",
" yaxis=dict(\n",
" title = 'S11 (dB)',\n",
" titlefont=dict(\n",
" size=22,\n",
" ),\n",
" showgrid=True,\n",
" zeroline=True,\n",
" showline=True,\n",
" mirror='ticks',\n",
" gridcolor='#bdbdbd',\n",
" gridwidth=2,\n",
" zerolinecolor='#969696',\n",
" zerolinewidth=2,\n",
" linecolor='#636363',\n",
" linewidth=6\n",
" )\n",
")\n",
"\n",
"trace2 = go.Scatter(x=x_s, y=y_s, name='Exp. S11')\n",
"iplot({'data':[trace2], 'layout':layout_2}, filename='S11')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment