Skip to content

Commit ed99cd8

Browse files
committed
Added --cblabel to label the color bar
1 parent 4817a53 commit ed99cd8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

bin/feedgnuplot

+6-3
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,12 @@ sub interpretCommandline
115115

116116
'3d!', 'colormap!', 'lines!', 'points!', 'circles',
117117
'legend=s{2}', 'autolegend!',
118-
'xlabel=s', 'x2label=s', 'ylabel=s', 'y2label=s', 'zlabel=s',
118+
'xlabel=s', 'x2label=s', 'ylabel=s', 'y2label=s', 'zlabel=s', 'cblabel=s',
119119
'title=s', 'xlen=f',
120120
'xmin=s', 'xmax=s', 'x2min=s', 'x2max=s',
121121
'ymin=f', 'ymax=f', 'y2min=f', 'y2max=f',
122122
'zmin=f', 'zmax=f',
123+
'cbmin=f', 'cbmax=f',
123124
'x2=s@', 'y2=s@', 'x1y2=s@', 'x2y1=s@', 'x2y2=s@',
124125
'style=s{2}', 'curvestyle=s{2}', 'curvestyleall=s', 'styleall=s', 'with=s',
125126
'extracmds=s@', 'cmds=s@',
@@ -796,6 +797,7 @@ sub mainThread
796797
print(PIPE "set ylabel \"$options{ylabel }\"\n") if defined $options{ylabel};
797798
print(PIPE "set y2label \"$options{y2label}\"\n") if defined $options{y2label};
798799
print(PIPE "set zlabel \"$options{zlabel }\"\n") if defined $options{zlabel};
800+
print(PIPE "set cblabel \"$options{cblabel}\"\n") if defined $options{cblabel};
799801
print(PIPE "set title \"$options{title }\"\n") if defined $options{title};
800802

801803
if($options{square})
@@ -2003,10 +2005,11 @@ instance C<--set 'xrange [20:10]'> to set the given inverted bounds.
20032005
20042006
=item
20052007
2006-
C<--xlabel/x2label/ylabel/y2label/zlabel xxx>
2008+
C<--xlabel/x2label/ylabel/y2label/zlabel/cblabel xxx>
20072009
20082010
Label the given axis. The x2/y2-axis labels do not apply to 3d plots while the
2009-
z-axis label applies I<only> to 3d plots.
2011+
z-axis label applies I<only> to 3d plots. The "cblabel" applies to the colorbar,
2012+
if there is one.
20102013
20112014
=item
20122015

completions/bash/feedgnuplot

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ complete -W \
6666
--zlabel \
6767
--zmax \
6868
--zmin \
69+
--cblabel \
6970
--xticlabels \
7071
--using \
7172
--usingall \

completions/zsh/_feedgnuplot

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ _arguments -S
1414
'--ylabel:Y-axis label:' \
1515
'--y2label:Y2-axis label:' \
1616
'--zlabel:Z-axis label:' \
17+
'--cblabel:Colorbar label:' \
1718
'--title:Plot title:' \
1819
'--autolegend[Label each plot with its data ID]' \
1920
'(--3d)--xlen[the size of the x-window to plot]:window size:' \

0 commit comments

Comments
 (0)