Skip to content

Commit

Permalink
fix simplehists plotutils
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Jan 17, 2024
1 parent 94a2e63 commit cc4257d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def _mpl_get_cmap( arg ):
#Recommended since matplotlib 3.7:
return matplotlib.colormaps.get_cmap( arg )
#Deprecated in matplotlib 3.7:
return matplotlib.cm.get_cmap(cm)
return matplotlib.cm.get_cmap(arg)

def _has_cmap(cm):
if cm in plt.cm.datad:
Expand Down Expand Up @@ -1176,9 +1176,9 @@ def overlay(hists,labels,colors=None,
else:
fig,ax=figure,axes

if title!=False: ax.set_title(title)#not making dragable (center seems to be always the right choice)
if xlabel!=False: ax.set_xlabel(xlabel,picker=True)#todo: should snap to center/right ...
if ylabel!=False: ax.set_ylabel(ylabel,picker=True)#todo: ... or have a shortcut key
if title is False: ax.set_title(title)#not making dragable (center seems to be always the right choice)
if xlabel is False: ax.set_xlabel(xlabel,picker=True)#todo: should snap to center/right ...
if ylabel is False: ax.set_ylabel(ylabel,picker=True)#todo: ... or have a shortcut key

lines=[]
proxy_artists=[]
Expand Down

0 comments on commit cc4257d

Please sign in to comment.