Skip to content

Commit

Permalink
colors.get_cmap -> cm.get_cmap
Browse files Browse the repository at this point in the history
  • Loading branch information
yudgugger committed May 22, 2024
1 parent 954d63c commit 6a01e59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PySSPFM/utils/nanoloop/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import numpy as np
import matplotlib.pyplot as plt
from matplotlib import colors
from matplotlib import cm
import matplotlib as mpl
from mpl_toolkits.axes_grid1 import make_axes_locatable
Expand Down Expand Up @@ -57,7 +56,7 @@ def plot_ckpfm(loop_dict, dict_str=None):
# Plot the colorbar
divider = make_axes_locatable(ax)
cax = divider.append_axes('right', size='3%', pad=0.4)
cmap = colors.get_cmap('jet')
cmap = cm.get_cmap('jet')
norm = mpl.colors.Normalize(vmin=min(loop_dict['write volt']),
vmax=max(loop_dict['write volt']))
s_m = plt.cm.ScalarMappable(cmap=cmap, norm=norm)
Expand Down Expand Up @@ -412,7 +411,7 @@ def plot_all_loop(loops_tab, pha_calib, dict_str=None, del_1st_loop=False):
'x lab': label_x, 'y lab': label_y,
'title': 'superposed loops'}
plot_graph(ax_1, [], [], plot_dict=plot_dict)
cmap = colors.get_cmap('jet')
cmap = cm.get_cmap('jet')

# Plot subplot 1 : multi loop
for cont, (elem_x_left, elem_x_right, elem_y_left, elem_y_right) \
Expand Down

0 comments on commit 6a01e59

Please sign in to comment.