Gutza / octave-daemon

The PHP network daemon for GNU Octave
http://projects.moongate.ro/octave-daemon/
GNU Affero General Public License v3.0
16 stars 2 forks source link

outputting plots with octave-daemon #4

Closed rmaitra closed 11 years ago

rmaitra commented 11 years ago

I'm new to github, so tell me if this isn't the right spot for this post. I am using the octave-daemon in a web thing right now. I've been trying to grind through the different classes in http://projects.moongate.ro/octave-daemon/ to figure out if there is a way to use a simple function like ->run('plot(1:10)') or ->query('plot(1:10)') to output a plot for some diagnostics im running, and possibly just output the files onto a window. Wondering if this is accounted for.

Gutza commented 11 years ago

It's not the perfect place to ask questions, but it'll do. Use Octave's native functions to SAVE the plot to a file (use o-d's run() if you don't expect output, or query() if you do), then call o-d's retrieve() to retrieve the file.