help-octave
[Top][All Lists]
Advanced

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

Re: Different plot behavior in octave and gnuplot


From: Francesco Potortì
Subject: Re: Different plot behavior in octave and gnuplot
Date: Wed, 12 Sep 2012 23:28:34 +0200

>>Because a plot is made of segments between points.  But if you have a
>>single point you cannot draw a line.  To get a horizontal line at y=5 do
>> plot([5,5])
>
>Thank you Francesco, this makes sense.  I'm curious though, when making this
>plot using gnuplot itself,  plot(y=5) works.  Why is this so if octave is
>ultimately calling calling gnuplot?

Note that this is "plot(y=5)", not "plot(5)".  The former is Gnuplot
syntax (not Octave's) which means "try to plot this function in a
sensible way".

This is similar to Octave's fplot function: look at it in the manual for
an example.

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Fax:    +39.050.315.2040  
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it


reply via email to

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