Skip to content

Fix Gnuplot::Plot#[] #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 26, 2019
Merged

Fix Gnuplot::Plot#[] #53

merged 1 commit into from
Nov 26, 2019

Conversation

darthjee
Copy link
Contributor

@darthjee darthjee commented Nov 26, 2019

This PR fixes the method Gnuplot::Plot#[]

example:

plot = Gnuplot::Plot.new do |p|
  p.title 'My Title'
  p.unset 'title'
end

plot['title'] # should return nil

The old code was fetching the first occurrence of set title

The tests for this are introduced in #52

@rdp rdp merged commit 7539e04 into rdp:master Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants