help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adjust dashlength / line pattern length in octave


From: Ben Abbott
Subject: Re: Adjust dashlength / line pattern length in octave
Date: Thu, 13 Dec 2012 13:53:32 -0500

On Dec 13, 2012, at 5:37 AM, Ruben van Rennings wrote:

> Dear All,
> 
> I wonder, if there is a way to set the "dash length" or "length of the line 
> style pattern" from octave, as you might want to call it?
> 
> The equivalent in gnuplot would be the "dashlength" option of all terminals.
> 
> Thanks in advance.
> 
> Best regards
> 
> 
> Ruben

You have two options.  Each require some expertise with gnuplot.  First you can 
try the gnuplot package available from OctaveForge.

        http://octave.sourceforge.net/gnuplot/overview.html

Second, you can output the gnuplot plot-stream, edit it, and then run it from 
gnuplot.  To output the plot stream, produce your plot and then use drawnow() 
to output the plot stream.

 -- Built-in Function:  drawnow ()
 -- Built-in Function:  drawnow ("expose")
 -- Built-in Function:  drawnow (TERM, FILE, MONO, DEBUG_FILE)
     Update figure windows and their children.  The event queue is
     flushed and any callbacks generated are executed.  With the
     optional argument `"expose"', only graphic objects are updated and
     no other events or callbacks are processed.  The third calling
     form of `drawnow' is for debugging and is undocumented.

For example ...

        plot (rand (3))
        drawnow ('postscript eps', 'test.eps', false, 'test.gp')

Then edit test.gp to produce the desired line type and run it through gnuplot.

Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]