Skip to content

Commit

Permalink
fix warnings in docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Sep 20, 2023
1 parent 51d469c commit 9b3b0d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
10 changes: 5 additions & 5 deletions docs/notebooks/XFaster_Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
"source": [
"import xfaster as xf\n",
"import matplotlib.pyplot as plt\n",
"from matplotlib import colors\n",
"from matplotlib import colors, colormaps\n",
"import numpy as np"
]
},
Expand Down Expand Up @@ -1300,12 +1300,12 @@
"source": [
"### Figure for looking at how sum(qbCbl) changes with iteration to match data\n",
"figtmp = plt.figure()\n",
"tmpplot = plt.imshow(np.zeros((2,2)), cmap=plt.cm.get_cmap('viridis'),vmin=0, vmax=len(iters))\n",
"tmpplot = plt.imshow(np.zeros((2,2)), cmap='viridis',vmin=0, vmax=len(iters))\n",
"plt.close(figtmp)\n",
"fig_dat, ax_dat = plt.subplots(2,3, figsize=(15,10))\n",
"ax_dat = ax_dat.flatten()\n",
"specs = ['tt', 'ee', 'bb', 'te', 'tb', 'eb']\n",
"colors = plt.cm.get_cmap('viridis', len(iters)).colors\n",
"colors = colormaps['viridis'].resampled(len(iters)).colors\n",
"for s, spec in enumerate(specs):\n",
" ax_dat[s].set_title(spec)\n",
"for i, bp0 in enumerate(iters):\n",
Expand Down Expand Up @@ -1341,10 +1341,10 @@
"source": [
"### Figure for looking at how qb for each bandpower changes with iteration\n",
"figtmp = plt.figure()\n",
"tmpplot = plt.imshow(np.zeros((2,2)), cmap=plt.cm.get_cmap('viridis'),vmin=0, vmax=len(iters))\n",
"tmpplot = plt.imshow(np.zeros((2,2)), cmap='viridis',vmin=0, vmax=len(iters))\n",
"plt.close(figtmp)\n",
"specs = ['tt', 'ee', 'bb', 'te', 'tb', 'eb']\n",
"colors = plt.cm.get_cmap('viridis', len(iters)).colors\n",
"colors = colormaps['viridis'].resampled(len(iters)).colors\n",
"scatter = 1. / 50.\n",
"for comp in ['cmb']:\n",
" fig_dat, ax_dat = plt.subplots(3,2, figsize=(20,15))\n",
Expand Down

0 comments on commit 9b3b0d3

Please sign in to comment.