Skip to content

Commit adaa24f

Browse files
committed
New notebook, about partial overlaps with D wigner matrices. Also, added python version to notebooks.
1 parent d564ab1 commit adaa24f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1271
-142
lines changed

CodeSnippetsPython/ParOWigD.ipynb

Lines changed: 1110 additions & 0 deletions
Large diffs are not rendered by default.

CodeSnippetsPython/ScientificPlotBasic1D.ipynb

Lines changed: 12 additions & 17 deletions
Large diffs are not rendered by default.

CodeSnippetsPython/ScientificPlotBasic1DEj2.ipynb

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"import matplotlib.pyplot as plt\n",
1919
"%matplotlib inline\n",
2020
"import matplotlib as mpl\n",
21+
"import sys\n",
2122
"label_size = 18\n",
2223
"mpl.rcParams['xtick.labelsize'] = label_size \n",
2324
"mpl.rcParams['ytick.labelsize'] = label_size \n",
@@ -47,7 +48,7 @@
4748
},
4849
{
4950
"cell_type": "code",
50-
"execution_count": 7,
51+
"execution_count": 2,
5152
"metadata": {},
5253
"outputs": [],
5354
"source": [
@@ -148,18 +149,19 @@
148149
"name": "stdout",
149150
"output_type": "stream",
150151
"text": [
151-
"--------------------------------------------------\n",
152-
"... numpy == 1.14.0\n",
153-
"... matplotlib == 2.1.2\n",
154-
"__________________________________________________\n"
152+
"Python version: 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) \n",
153+
"[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]\n",
154+
" \n",
155+
"numpy == 1.14.0\n",
156+
"matplotlib == 2.1.2\n"
155157
]
156158
}
157159
],
158160
"source": [
159-
"print(\"--\"*25)\n",
160-
"print(\"... numpy == \", np.__version__)\n",
161-
"print(\"... matplotlib == \", mpl.__version__)\n",
162-
"print(\"__\"*25)"
161+
"print(f\"Python version: {sys.version}\")\n",
162+
"print(\" \")\n",
163+
"print(\"numpy == \", np.__version__)\n",
164+
"print(\"matplotlib == \", mpl.__version__)"
163165
]
164166
}
165167
],

CodeSnippetsPython/ScientificPlotBasic2DContourEj1.ipynb

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"import matplotlib.pyplot as plt\n",
1818
"%matplotlib inline\n",
1919
"import matplotlib as mpl\n",
20+
"import sys\n",
2021
"label_size = 18\n",
2122
"mpl.rcParams['xtick.labelsize'] = label_size \n",
2223
"mpl.rcParams['ytick.labelsize'] = label_size \n",
@@ -124,25 +125,26 @@
124125
},
125126
{
126127
"cell_type": "code",
127-
"execution_count": 2,
128+
"execution_count": 3,
128129
"metadata": {},
129130
"outputs": [
130131
{
131132
"name": "stdout",
132133
"output_type": "stream",
133134
"text": [
134-
"--------------------------------------------------\n",
135-
"... numpy == 1.14.0\n",
136-
"... matplotlib == 2.1.2\n",
137-
"__________________________________________________\n"
135+
"Python version: 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) \n",
136+
"[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]\n",
137+
" \n",
138+
"numpy == 1.14.0\n",
139+
"matplotlib == 2.1.2\n"
138140
]
139141
}
140142
],
141143
"source": [
142-
"print(\"--\"*25)\n",
143-
"print(\"... numpy == \", np.__version__)\n",
144-
"print(\"... matplotlib == \", mpl.__version__)\n",
145-
"print(\"__\"*25)"
144+
"print(f\"Python version: {sys.version}\")\n",
145+
"print(\" \")\n",
146+
"print(\"numpy == \", np.__version__)\n",
147+
"print(\"matplotlib == \", mpl.__version__)"
146148
]
147149
}
148150
],

CodeSnippetsPython/ScientificPlotBasic2DContourEj2.ipynb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"import matplotlib.pyplot as plt\n",
1818
"%matplotlib inline\n",
1919
"import matplotlib as mpl\n",
20+
"import sys\n",
2021
"label_size = 18\n",
2122
"mpl.rcParams['xtick.labelsize'] = label_size \n",
2223
"mpl.rcParams['ytick.labelsize'] = label_size \n",
@@ -121,18 +122,19 @@
121122
"name": "stdout",
122123
"output_type": "stream",
123124
"text": [
124-
"--------------------------------------------------\n",
125-
"... numpy == 1.14.0\n",
126-
"... matplotlib == 2.1.2\n",
127-
"__________________________________________________\n"
125+
"Python version: 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) \n",
126+
"[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]\n",
127+
" \n",
128+
"numpy == 1.14.0\n",
129+
"matplotlib == 2.1.2\n"
128130
]
129131
}
130132
],
131133
"source": [
132-
"print(\"--\"*25)\n",
133-
"print(\"... numpy == \", np.__version__)\n",
134-
"print(\"... matplotlib == \", mpl.__version__)\n",
135-
"print(\"__\"*25)"
134+
"print(f\"Python version: {sys.version}\")\n",
135+
"print(\" \")\n",
136+
"print(\"numpy == \", np.__version__)\n",
137+
"print(\"matplotlib == \", mpl.__version__)"
136138
]
137139
}
138140
],

CodeSnippetsPython/ScientificPlotBasic2DContourEj3.ipynb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": 2,
12+
"execution_count": 1,
1313
"metadata": {},
1414
"outputs": [],
1515
"source": [
1616
"import numpy as np\n",
1717
"import matplotlib.pyplot as plt\n",
1818
"%matplotlib inline\n",
1919
"import matplotlib as mpl\n",
20+
"import sys\n",
2021
"label_size = 18\n",
2122
"mpl.rcParams['xtick.labelsize'] = label_size \n",
2223
"mpl.rcParams['ytick.labelsize'] = label_size \n",
@@ -114,25 +115,26 @@
114115
},
115116
{
116117
"cell_type": "code",
117-
"execution_count": 3,
118+
"execution_count": 2,
118119
"metadata": {},
119120
"outputs": [
120121
{
121122
"name": "stdout",
122123
"output_type": "stream",
123124
"text": [
124-
"--------------------------------------------------\n",
125-
"... numpy == 1.14.0\n",
126-
"... matplotlib == 2.1.2\n",
127-
"__________________________________________________\n"
125+
"Python version: 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) \n",
126+
"[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]\n",
127+
" \n",
128+
"numpy == 1.14.0\n",
129+
"matplotlib == 2.1.2\n"
128130
]
129131
}
130132
],
131133
"source": [
132-
"print(\"--\"*25)\n",
133-
"print(\"... numpy == \", np.__version__)\n",
134-
"print(\"... matplotlib == \", mpl.__version__)\n",
135-
"print(\"__\"*25)"
134+
"print(f\"Python version: {sys.version}\")\n",
135+
"print(\" \")\n",
136+
"print(\"numpy == \", np.__version__)\n",
137+
"print(\"matplotlib == \", mpl.__version__)"
136138
]
137139
}
138140
],

CodeSnippetsPython/ScientificPlotBasic2DContourEj4.ipynb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"import matplotlib.pyplot as plt\n",
1818
"%matplotlib inline\n",
1919
"import matplotlib as mpl\n",
20+
"import sys\n",
2021
"label_size = 18\n",
2122
"mpl.rcParams['xtick.labelsize'] = label_size \n",
2223
"mpl.rcParams['ytick.labelsize'] = label_size \n",
@@ -122,18 +123,19 @@
122123
"name": "stdout",
123124
"output_type": "stream",
124125
"text": [
125-
"--------------------------------------------------\n",
126-
"... numpy == 1.14.0\n",
127-
"... matplotlib == 2.1.2\n",
128-
"__________________________________________________\n"
126+
"Python version: 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) \n",
127+
"[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]\n",
128+
" \n",
129+
"numpy == 1.14.0\n",
130+
"matplotlib == 2.1.2\n"
129131
]
130132
}
131133
],
132134
"source": [
133-
"print(\"--\"*25)\n",
134-
"print(\"... numpy == \", np.__version__)\n",
135-
"print(\"... matplotlib == \", mpl.__version__)\n",
136-
"print(\"__\"*25)"
135+
"print(f\"Python version: {sys.version}\")\n",
136+
"print(\" \")\n",
137+
"print(\"numpy == \", np.__version__)\n",
138+
"print(\"matplotlib == \", mpl.__version__)"
137139
]
138140
}
139141
],

CodeSnippetsPython/ScientificPlotBasic2DDensityEj1.ipynb

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"import matplotlib.pyplot as plt\n",
1818
"%matplotlib inline\n",
1919
"import matplotlib as mpl\n",
20+
"import sys\n",
2021
"label_size = 18\n",
2122
"mpl.rcParams['xtick.labelsize'] = label_size \n",
2223
"mpl.rcParams['ytick.labelsize'] = label_size \n",
@@ -124,25 +125,26 @@
124125
},
125126
{
126127
"cell_type": "code",
127-
"execution_count": 2,
128+
"execution_count": 3,
128129
"metadata": {},
129130
"outputs": [
130131
{
131132
"name": "stdout",
132133
"output_type": "stream",
133134
"text": [
134-
"--------------------------------------------------\n",
135-
"... numpy == 1.14.0\n",
136-
"... matplotlib == 2.1.2\n",
137-
"__________________________________________________\n"
135+
"Python version: 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) \n",
136+
"[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]\n",
137+
" \n",
138+
"numpy == 1.14.0\n",
139+
"matplotlib == 2.1.2\n"
138140
]
139141
}
140142
],
141143
"source": [
142-
"print(\"--\"*25)\n",
143-
"print(\"... numpy == \", np.__version__)\n",
144-
"print(\"... matplotlib == \", mpl.__version__)\n",
145-
"print(\"__\"*25)"
144+
"print(f\"Python version: {sys.version}\")\n",
145+
"print(\" \")\n",
146+
"print(\"numpy == \", np.__version__)\n",
147+
"print(\"matplotlib == \", mpl.__version__)"
146148
]
147149
}
148150
],

CodeSnippetsPython/ScientificPlotBasic2DDensityEj2.ipynb

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": 9,
12+
"execution_count": 1,
1313
"metadata": {},
1414
"outputs": [],
1515
"source": [
@@ -18,6 +18,7 @@
1818
"%matplotlib inline\n",
1919
"import matplotlib as mpl\n",
2020
"import pandas as pd\n",
21+
"import sys\n",
2122
"import datashader as ds\n",
2223
"from datashader import transfer_functions as tf\n",
2324
"from datashader.colors import Greys9, inferno, viridis\n",
@@ -347,29 +348,30 @@
347348
},
348349
{
349350
"cell_type": "code",
350-
"execution_count": 12,
351+
"execution_count": 2,
351352
"metadata": {},
352353
"outputs": [
353354
{
354355
"name": "stdout",
355356
"output_type": "stream",
356357
"text": [
357-
"--------------------------------------------------\n",
358-
"... numpy == 1.14.0\n",
359-
"... matplotlib == 2.1.2\n",
360-
"... pandas == 0.22.0\n",
361-
"... datashader == 0.6.5\n",
362-
"__________________________________________________\n"
358+
"Python version: 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) \n",
359+
"[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]\n",
360+
" \n",
361+
"numpy == 1.14.0\n",
362+
"matplotlib == 2.1.2\n",
363+
"pandas == 0.22.0\n",
364+
"datashader == 0.6.5\n"
363365
]
364366
}
365367
],
366368
"source": [
367-
"print(\"--\"*25)\n",
368-
"print(\"... numpy == \", np.__version__)\n",
369-
"print(\"... matplotlib == \", mpl.__version__)\n",
370-
"print(\"... pandas == \", pd.__version__)\n",
371-
"print(\"... datashader == \", ds.__version__)\n",
372-
"print(\"__\"*25)"
369+
"print(f\"Python version: {sys.version}\")\n",
370+
"print(\" \")\n",
371+
"print(\"numpy == \", np.__version__)\n",
372+
"print(\"matplotlib == \", mpl.__version__)\n",
373+
"print(\"pandas == \", pd.__version__)\n",
374+
"print(\"datashader == \", ds.__version__)"
373375
]
374376
}
375377
],

CodeSnippetsPython/ScientificPlotBasic2DDensityEj3-Colors.ipynb

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"%matplotlib inline\n",
1919
"import matplotlib as mpl\n",
2020
"import pandas as pd\n",
21+
"import sys\n",
2122
"import datashader as ds\n",
2223
"from datashader import transfer_functions as tf\n",
2324
"from datashader.colors import Greys9, inferno, viridis\n",
@@ -391,31 +392,32 @@
391392
},
392393
{
393394
"cell_type": "code",
394-
"execution_count": 16,
395+
"execution_count": 2,
395396
"metadata": {},
396397
"outputs": [
397398
{
398399
"name": "stdout",
399400
"output_type": "stream",
400401
"text": [
401-
"--------------------------------------------------\n",
402-
"... numpy == 1.14.0\n",
403-
"... matplotlib == 2.1.2\n",
404-
"... pandas == 0.22.0\n",
405-
"... datashader == 0.6.5\n",
406-
"... numba == 0.36.2\n",
407-
"__________________________________________________\n"
402+
"Python version: 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) \n",
403+
"[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]\n",
404+
" \n",
405+
"numpy == 1.14.0\n",
406+
"matplotlib == 2.1.2\n",
407+
"pandas == 0.22.0\n",
408+
"datashader == 0.6.5\n",
409+
"numba == 0.36.2\n"
408410
]
409411
}
410412
],
411413
"source": [
412-
"print(\"--\"*25)\n",
413-
"print(\"... numpy == \", np.__version__)\n",
414-
"print(\"... matplotlib == \", mpl.__version__)\n",
415-
"print(\"... pandas == \", pd.__version__)\n",
416-
"print(\"... datashader == \", ds.__version__)\n",
417-
"print(\"... numba == \", numba.__version__)\n",
418-
"print(\"__\"*25)"
414+
"print(f\"Python version: {sys.version}\")\n",
415+
"print(\" \")\n",
416+
"print(\"numpy == \", np.__version__)\n",
417+
"print(\"matplotlib == \", mpl.__version__)\n",
418+
"print(\"pandas == \", pd.__version__)\n",
419+
"print(\"datashader == \", ds.__version__)\n",
420+
"print(\"numba == \", numba.__version__)"
419421
]
420422
}
421423
],

0 commit comments

Comments
 (0)