Skip to content

Commit 5e0055f

Browse files
committed
Fix Plot#[]
1 parent 6f3dd78 commit 5e0055f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gnuplot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def unset ( var )
140140
# gnuplot process.
141141

142142
def [] ( var )
143-
v = @settings.rassoc( var )
143+
v = @settings.reverse.rassoc( var )
144144
if v.nil? or v.first == :unset
145145
nil
146146
else

0 commit comments

Comments
 (0)