Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

draw arbitrary polygon on plot and floodfill.

1,469 views
Skip to first unread message

Rahul

unread,
Feb 25, 2008, 6:17:03 PM2/25/08
to
Hi,

I needed to shade (solid-color / hatch) a particular area of my graph.
Is there a way to draw an arbitrary polygon in gnuplot? I saw one
could draw rectangles in the demos but my region is trapezoidal.

Worst case: Can I draw a set of line segments and then floodfill?

I plan to use a eps enhanced device. (I've noticed that a lot of the
advanced functionality is output device dependent)

Any suggestions?

Thanks!

-Rahul

Ethan Merritt

unread,
Feb 25, 2008, 7:23:52 PM2/25/08
to
In article <b59e6c92-6afb-4a52...@q33g2000hsh.googlegroups.com>,

Rahul <rpn...@gmail.com> wrote:
>Hi,
>
>I needed to shade (solid-color / hatch) a particular area of my graph.
>Is there a way to draw an arbitrary polygon in gnuplot? I saw one
>could draw rectangles in the demos but my region is trapezoidal.

You can draw arbitrary polygons as actual plots using the "with filledcurves"
style.

See:

http://gnuplot.sourceforge.net/demo/fillcrvs.html


>I plan to use a eps enhanced device. (I've noticed that a lot of the
>advanced functionality is output device dependent)

It is device dependent, yes, but most of the modern devices support
all the various new features. Just don't count on being able to
draw transparent filled histograms on an Atari [*]


[*] I don't say it couldn't be done, but the atari drivers have not
been updated in a loooong time.


--
Ethan A Merritt

Rahul

unread,
Feb 25, 2008, 8:04:53 PM2/25/08
to
Thanks again Ethan! That should work.

> It is device dependent, yes, but most of the modern devices support
> all the various new features. Just don't count on being able to
> draw transparent filled histograms on an Atari [*]
>
> [*] I don't say it couldn't be done, but the atari drivers have not
> been updated in a loooong time.
>
> --
> Ethan A Merritt

Point taken! I must say gnuplot developers: you must be exceptionally
magnanimous to even support devices like those in today's versions.
Frankly, are there any people around who are using gnuplot on an
Atari! :-)

-Rahul

0 new messages