Skip to content
Browse files

fixing display labels

  • Loading branch information...
1 parent e0494a3 commit ae20c5b01ce2738fc52ef2fbc245ed507946deda Eva Schiffer committed Feb 24, 2014
Showing with 6 additions and 1 deletion.
  1. +6 −1 pyglance/glance/figures.py
View
7 pyglance/glance/figures.py
@@ -501,7 +501,12 @@ def create_mapped_figure(data, latitude, longitude, baseMapInstance, boundingAxe
if not (len(dataRangeNames) is (len(dataRanges) - 1)) :
cbar.ax.set_yticklabels(dataRangeNames)
else : # we will want to label the ranges themselves
- cbar.ax.set_yticklabels(dataRangeNames) # todo, this line is temporary
+ # FUTURE this is not a general solution for getting the labels right
+ newNames = []
+ newNames.extend(dataRangeNames)
+ newNames.append("")
+ newNames = [x + '\n\n\n' for x in newNames]
+ cbar.ax.set_yticklabels(newNames)
doLabelRanges = True
else :
# add the units to the colorbar

0 comments on commit ae20c5b

Please sign in to comment.
Something went wrong with that request. Please try again.