@@ -768,7 +768,7 @@ class gnuplotlib has a separate gnuplot process and a plot window. If multiple
768768The 'cb' axis represents the color axis, used when color-coded plots are being
769769generated
770770
771- - xlabel, ylabel, zlabel, y2label
771+ - xlabel, ylabel, zlabel, y2label, cblabel
772772
773773These specify axis labels
774774
@@ -1121,7 +1121,7 @@ class gnuplotlib has a separate gnuplot process and a plot window. If multiple
11211121 'y2max' , 'y2min' , 'y2range' , 'y2inv' , 'y2label' ,
11221122 'ymax' , 'ymin' , 'yrange' , 'yinv' , 'ylabel' ,
11231123 'zmax' , 'zmin' , 'zrange' , 'zinv' , 'zlabel' ,
1124- 'cbmin ' , 'cbmax ' , 'cbrange' ))
1124+ 'cbmax ' , 'cbmin ' , 'cbrange' , 'cblabel ' ))
11251125
11261126knownCurveOptions = frozenset (( 'with' , # both a plot option and a curve option
11271127 'legend' , 'y2' , 'tuplesize' , 'using' ,
@@ -1369,10 +1369,9 @@ def _massageSubplotOptionsAndGetCmds(subplotOptions):
13691369 for axis in ('x' , 'y' , 'y2' , 'z' , 'cb' ):
13701370
13711371 # set the curve labels
1372- if not axis == 'cb' :
1373- if axis + 'label' in subplotOptions :
1374- cmds .append ('set {axis}label "{label}"' .format (axis = axis ,
1375- label = subplotOptions [axis + 'label' ]))
1372+ if axis + 'label' in subplotOptions :
1373+ cmds .append ('set {axis}label "{label}"' .format (axis = axis ,
1374+ label = subplotOptions [axis + 'label' ]))
13761375
13771376 # I deal with range bounds here. These can be given for the various
13781377 # axes by variables (W-axis here; replace W with x, y, z, etc):
0 commit comments