Re: rasterarray border?
- To: mathgroup at smc.vnet.net
- Subject: [mg56069] Re: [mg55989] rasterarray border?
- From: yehuda ben-shimol <bsyehuda at gmail.com>
- Date: Thu, 14 Apr 2005 08:56:38 -0400 (EDT)
- References: <200504130510.BAA09486@smc.vnet.net>
- Reply-to: yehuda ben-shimol <bsyehuda at gmail.com>
- Sender: owner-wri-mathgroup at wolfram.com
your code is working. However since you didn't give here your definitions of von, I assume that somehow it has values that are not changed into graphics primitives according to your replacement rules. For example if you test your code with von=Table[i,{i,-1,2},{4}] it will work but with von=Table[i,{i,-1,3},{5}] it will not, since for the value 3 there is no replacement rule yehuda On 4/13/05, Manuel Marques-Pita <m.marques-pita at ed.ac.uk> wrote: > hello, > > I am drawing a rasterarray in which I need to draw a border/stroke round > some of the elements in the array (all the ones != -1 below). > > Show[Graphics[RasterArray[von /. > {-1 -> RGBColor[1, 1, 1], > 0 -> RGBColor[0.97, 0.97, 1], > 1 -> RGBColor[0.3, 0, 0], > 2 -> RGBColor[1, .78, .78]}]], > AspectRatio -> Automatic]; > > I haven't found a way to do this yet, any ideas/suggestions? > > Thanks in advance! > > Manuel > >
- References:
- rasterarray border?
- From: Manuel Marques-Pita <m.marques-pita@ed.ac.uk>
- rasterarray border?