another problem with patch
Petr Mikulik
mikulik at physics.muni.cz
Tue Dec 11 17:07:18 CST 2007
> If you try the following:
>
> octave:53> phi=linspace(0,2*pi);
> octave:54> patch(sin(phi),cos(phi),'r')
> octave:55> axis([0 1 0 1])
>
> one would expect that a quarter of a circle should be drawn. It seems
> that gnuplot drops all points outside of the plotting window, therefore
> only a segment of a circle is drawn. Can this be handled in gnuplot
> correctly?
Unfortunately no. Gnuplot can clip only points and lines, but not 2D
polygons. (Implementation of clipping for gnuplot's filledcurves would be
welcome.)
---
PM
More information about the Bug-octave
mailing list