Skip to content

Commit 7539e04

Browse files
authored
Merge pull request #53 from darthjee/plot_bug_fix
Fix Gnuplot::Plot#[]
2 parents b24e10d + 5e0055f commit 7539e04

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)