Skip to content

Provide support for starting gnuplot process and keep it running #3

Description

@protobits

What I mean is, provide support for doing:

gnuplot = Gnuplot.open
....
gnuplot.close

This way you can start gnuplot and have the process running and do multiple graphs from different parts of your code. This avoids starting up a gnuplot process for each plotting operation.

This could be achieved by simply doing:

if (block_given?) IO::popen( cmd, "w") { |io| yield io }
else IO::popen( cmd, "w")

at the openmethod

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions