Created using Colab

This commit is contained in:
udlbook
2024-04-18 16:11:35 -04:00
parent 8fe07cf0fb
commit 862ac6e4d3

View File

@@ -128,7 +128,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"source": [ "source": [
"draw_2D_heatmap(dist_mat,'Distance $|i-j|$', my_colormap)" "draw_2D_heatmap(dist_mat,r'Distance $|i-j|$', my_colormap)"
], ],
"metadata": { "metadata": {
"id": "G0HFPBXyHT6V" "id": "G0HFPBXyHT6V"
@@ -197,7 +197,7 @@
"cell_type": "code", "cell_type": "code",
"source": [ "source": [
"TP = np.array(opt.x).reshape(10,10)\n", "TP = np.array(opt.x).reshape(10,10)\n",
"draw_2D_heatmap(TP,'Transport plan $\\mathbf{P}$', my_colormap)" "draw_2D_heatmap(TP,r'Transport plan $\\mathbf{P}$', my_colormap)"
], ],
"metadata": { "metadata": {
"id": "nZGfkrbRV_D0" "id": "nZGfkrbRV_D0"