-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
5,498 additions
and
1,916 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import matplotlib.pyplot as plt\n", | ||
"import json\n", | ||
"import numpy as np\n", | ||
"from lcs import *" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"with open(\"Data/frac_vs_beta.json\") as file:\n", | ||
" data = json.load(file)\n", | ||
"beta = np.array(data[\"beta\"], dtype=float)\n", | ||
"frac = np.array(data[\"fraction\"], dtype=float)\n", | ||
"ps = np.array(data[\"ps\"], dtype=float)\n", | ||
"sps = np.array(data[\"sps\"], dtype=float)\n", | ||
"fce = np.array(data[\"fce\"], dtype=float)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import cmasher as cmr\n", | ||
"\n", | ||
"cmap = cmr.sunburst\n", | ||
"cmap = cmr.ember\n", | ||
"\n", | ||
"ps_summary = ps.mean(axis=2).T\n", | ||
"\n", | ||
"c = plt.imshow(\n", | ||
" to_imshow_orientation(ps_summary),\n", | ||
" extent=(min(frac), max(frac), min(beta), max(beta)),\n", | ||
" aspect=\"auto\",\n", | ||
" cmap=cmap,\n", | ||
")\n", | ||
"plt.xlabel(r\"$f$\")\n", | ||
"plt.ylabel(r\"$\\beta$\")\n", | ||
"plt.colorbar(c)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import cmasher as cmr\n", | ||
"\n", | ||
"cmap = cmr.sunburst\n", | ||
"cmap = cmr.ember\n", | ||
"\n", | ||
"sps_summary = sps.mean(axis=2).T\n", | ||
"\n", | ||
"c = plt.imshow(\n", | ||
" to_imshow_orientation(sps_summary),\n", | ||
" extent=(min(frac), max(frac), min(beta), max(beta)),\n", | ||
" aspect=\"auto\",\n", | ||
" cmap=cmap,\n", | ||
")\n", | ||
"plt.xlabel(r\"$f$\")\n", | ||
"plt.ylabel(r\"$\\beta$\")\n", | ||
"plt.colorbar(c)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import cmasher as cmr\n", | ||
"\n", | ||
"cmap = cmr.sunburst\n", | ||
"cmap = cmr.ember\n", | ||
"\n", | ||
"fce_summary = fce.mean(axis=2).T\n", | ||
"\n", | ||
"c = plt.imshow(\n", | ||
" to_imshow_orientation(fce_summary),\n", | ||
" extent=(min(frac), max(frac), min(beta), max(beta)),\n", | ||
" aspect=\"auto\",\n", | ||
" cmap=cmap,\n", | ||
")\n", | ||
"plt.xlabel(r\"$f$\")\n", | ||
"plt.ylabel(r\"$\\beta$\")\n", | ||
"plt.colorbar(c)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "hyper", | ||
"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.10.0" | ||
}, | ||
"orig_nbformat": 4 | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.