

GPScriptName = tempname() gp = fopen( GPScriptName, 'w') įdisp( gp, 'set term pdfcairo size 30cm,20cm noenhanced' ) įdisp( gp, sprintf( 'set output "%s"', outputFileName ) ) įdisp( gp, 'plot "-" using 1:2 with lines title "The sin(x) function", \' ) įdisp( gp, ' "-" using 1:2 with lines title "Integrated sin(x) function", \' ) įdisp( gp, ' cos(x) title "The cos(x) function"' ) Ĭmd = sprintf( 'gnuplot -persist "%s"', GPScriptName ) Using that approach below works well for me, is very readable in my opinion, and does not result in unnecessary files (at least not visibly on your workspace). see my previous similar answer here for an sqlite example )
#Octave cplot portable
Creating a temporary script and running it is often even more straightforward and portable than cumbersome libraries (e.g. Honestly, I think you're overthinking it. _graw_, which also doesn't exist anymore, and some outdated documentation sites mention gplot, which still exists but with an entirely different purpose. In some older discussions I find references to e.g. ) but had them demoted to an internal implementation detail. Ironically, some much older versions of octave (up until around 2005, 2006) had this capability ( gset, graw. Is there any straight-forward way to obtain similar functionality?

Gp set term pdfcairo size 30cm,20cm noenhanced Octave can use gnuplot as a backend, but in order to preserve the advantages I would prefer directly using gnuplot commands, say: dx = 0.1 These advantages are sabotaged by putting any language-wrapper between gnuplot and the user, but pure gnuplot (intentionally) lacks capabilities for doing any non-trivial preprocessing (e.g. its comprehensive interactive help features.its strong library of demo examples, and.On the other hand I find Gnuplot to be the easiest-to-use tool for data-visualization because of I generally find Octave to be the easiest-to-use tool for data evaluation, but cumbersome for data-visualization.
