File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ enables the calibration table used during the BST observation).
133
133
134
134
To compare the result, the selected BST data, the beamformed data
135
135
using the calibration table and without using it (setting
136
- ``calibration="none"` `` ) are displayed together:
136
+ ``calibration="none"`) are displayed together:
137
137
138
138
.. code-block:: python
139
139
Original file line number Diff line number Diff line change 39
39
import dask .array as da
40
40
from dask .diagnostics import ProgressBar
41
41
42
+ import matplotlib as mpl
42
43
import matplotlib .pyplot as plt
43
44
from matplotlib import patheffects
44
45
from matplotlib .colorbar import ColorbarBase
45
46
from mpl_toolkits .axes_grid1 .inset_locator import inset_axes
46
47
import warnings
47
- from matplotlib .cm import get_cmap
48
48
from matplotlib .ticker import LinearLocator
49
49
from matplotlib .colors import Normalize
50
50
@@ -346,7 +346,7 @@ def plot(self, **kwargs):
346
346
warnings .simplefilter ("ignore" )
347
347
cb = ColorbarBase (
348
348
cax ,
349
- cmap = get_cmap ( name = cmap ) ,
349
+ cmap = mpl . colormaps [ cmap ] ,
350
350
orientation = 'vertical' ,
351
351
norm = Normalize (
352
352
vmin = vmin ,
Original file line number Diff line number Diff line change 39
39
from matplotlib .colorbar import ColorbarBase
40
40
from matplotlib .ticker import LinearLocator
41
41
from matplotlib .colors import Normalize
42
- from matplotlib .cm import get_cmap
43
42
from mpl_toolkits .axes_grid1 .inset_locator import inset_axes
44
43
import dask .array as da
45
44
from dask .diagnostics import ProgressBar
@@ -1792,7 +1791,7 @@ def save_png(
1792
1791
)
1793
1792
cb = ColorbarBase (
1794
1793
cax ,
1795
- cmap = get_cmap ( name = cmap ) ,
1794
+ cmap = mpl . colormaps [ cmap ] ,
1796
1795
orientation = "vertical" ,
1797
1796
norm = Normalize (
1798
1797
vmin = nf_image_min ,
You can’t perform that action at this time.
0 commit comments