From: Andrzej <wa...@ga...> - 2004-06-10 07:58:52
|
Ethan Merritt <merritt <at> u.washington.edu> writes: > I found a pattern-fill extension to metapost on the web, but it requires > a whole new wrapper layer on top of metapost which is probably more > trouble than it is worth for this purpose. > http://www.tug.org/tex-archive/graphics/metapost/macros/mpattern/ > Also there is this document, which I am sure you can evaluate > better than I can > http://www.gust.org.pl/PDF/BIUL/09/06-pb.pdf I have seen these sites last weekend, in my initial investigation on what is available around. But know I have seen what kind of patterns we are talking about (like those at the output of test in x11 terminal aren't we?). I think drawing such simple pattern is sufficiently easy with basic commands, to avoid dependency on this extra packages. > > What is the chance that gnuplot will support pattern filling for other > > shapes than boxes in future? > > There's already a patch on SourceForge (#908456) that extends > it to general polygons and filled curves. But has only been implemented > for the cgm gd pdf post svg and x11 terminal types. Then I think I will do my "pattern" patch so that it is easily used for filling other shapes. In MetaPost one basically needs to fill in a bounding box instead of the box, and then clip. I guess that I should add pattern-filled polygons to this function: TERM_PUBLIC void MP_filled_polygon __PROTO((int, gpiPoint *)); But what is the interface for filled curves? Oh, and I will have to learn using pm3d to test this :). Andrzej |