Skip to content

Commit e8ab189

Browse files
committed
Use r-strings in cbar labels with LaTeX math
1 parent 4bdf5a3 commit e8ab189

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

notebooks/05-dcr/fwd_dcr_3d.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@
610610
"cbar = mpl.colorbar.ColorbarBase(\n",
611611
" ax2, cmap=mpl.cm.RdYlBu_r, norm=norm, orientation=\"vertical\"\n",
612612
")\n",
613-
"cbar.set_label(\"$\\sigma$ [S/m]\", rotation=270, labelpad=15, size=16)"
613+
"cbar.set_label(r\"$\\sigma$ [S/m]\", rotation=270, labelpad=15, size=16)"
614614
]
615615
},
616616
{

notebooks/05-dcr/inv_dcr_2d.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399
" plot_type=\"contourf\",\n",
400400
" ax=ax1,\n",
401401
" scale=\"log\",\n",
402-
" cbar_label=\"$\\Omega m$\",\n",
402+
" cbar_label=r\"$\\Omega m$\",\n",
403403
" mask_topography=True,\n",
404404
" contourf_opts={\"levels\": 20, \"cmap\": mpl.cm.RdYlBu},\n",
405405
")\n",

notebooks/06-ip/fwd_ip_3d.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@
539539
"cbar = mpl.colorbar.ColorbarBase(\n",
540540
" ax2, cmap=mpl.cm.RdYlBu_r, norm=norm, orientation=\"vertical\"\n",
541541
")\n",
542-
"cbar.set_label(\"$\\sigma$ [S/m]\", rotation=270, labelpad=15, size=16)"
542+
"cbar.set_label(r\"$\\sigma$ [S/m]\", rotation=270, labelpad=15, size=16)"
543543
]
544544
},
545545
{

notebooks/08-tdem/fwd_utem_3d.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@
935935
"cbar = mpl.colorbar.ColorbarBase(\n",
936936
" ax2, cmap=mpl.cm.plasma, norm=norm, orientation=\"vertical\"\n",
937937
")\n",
938-
"cbar.set_label(\"$\\sigma$ [S/m]\", rotation=270, labelpad=15, size=16)"
938+
"cbar.set_label(r\"$\\sigma$ [S/m]\", rotation=270, labelpad=15, size=16)"
939939
]
940940
},
941941
{

0 commit comments

Comments
 (0)