Re: texture for filling?
- To: mathgroup at smc.vnet.net
- Subject: [mg115066] Re: texture for filling?
- From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
- Date: Thu, 30 Dec 2010 04:10:03 -0500 (EST)
Hi,
on a first glance it seems the Filling can not provide such things.
Knowing a bit of the inside of the created Graphics object (and you get
this inside by looking at the InputForm of your created plot) leads to:
p = Normal[
Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, PlotStyle -> Thick,
Filling -> {1 -> {{2}, Lighter[Gray]}}]]
tex = Texture[ExampleData[{"ColorTexture", "FloralPattern1"}]];
p /. Polygon[pointset_] :> {tex,
Polygon[pointset, VertexTextureCoordinates -> pointset]}
Hope this helps,
Cheers
Patrick
On Wed, 2010-12-29 at 05:56 -0500, agua wrote:
> Greetings to all.
> It is possible that instead of using color, apply
> some texture to fill an area between two curves.
> For example, fill the region with slanted lines or dots instead of
> gray:
>
> Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, Filling -> {1 -> {{2},
> Lighter[Gray]}}]
>
> Tk.
>