How can I fill additional region with color on the colored map

  • Permalink
  • submit to reddit
  • Email
  • Follow

I use surfm with caxis [a b] and additionally should fill a certain region
on the map with the certain color. I can do it with help of functions fillm,
patchm, patchesm etc. These functions require as the arguments of the vector
of the apexes of the polygons, but I have only array of data grid. I can
calculate the vector of the apexes with help of  C = contourm(Z,R) . But in
C values there isn't NaN values, which are necessary for function fillm for
limiting the subregions. The simple version of substitution in data grid NaN
values out of the region and the repeated use surfm does not approach -
spoils initial colormap. I assume this sufficiently standard situation (in
other products layers are used). Cannot someone help?

Thanks in advance.

Reply bsstrukov (1) 4/14/2006 12:14:35 PM

See related articles to this posting
comp.soft-sys.matlab 201246 articles. 513 followers. Post

0 Replies

Similar Articles

[PageSpeed] 15


Similar Artilces:

Can I get the default color map ?
Hi there,   I've been doing some analysis of some grey scale video images in labview.   When I display the images using the "Draw flattened Pixmap" vi, I leave the color map terminal unwired and get a really useful display, with Labview's default color map enhancing the contrast in the monochrome images very nicely.   I now want to write these images to disk, so I can re-assemble them into an AVI file, unfortunately in order to get the bmp files on disk to use the same color map as the on-screen display, I'd need a copy of the default color map...

Can I use transparency as a fill color????
Hi, I got some clip art that are jpg files with a white background. I was able = to add a transparency channel and started to use the erase tool to chnage t= he white background to transparency, is thier a way to set the fill color t= o transparency and just use the paint bucket to chnage the white to transpa= rency????? - Ted Am 14.01.2013 22:09, schrieb Ted Pottel: > Hi, > I got some clip art that are jpg files with a white background. I was able to add a transparency channel and started to use the erase tool to chnage the white background to transparency, is thier a way to s...

setting the fill color for a region fillstlye
Hi, I was using the "filledcurves" option to plot a filled polygonal region. I use: set style fill solid 0.1 This gives me a solid fill of red by default. How do I change the fill color? I checked the documentation and it mentions that the region would be filled with the current default color. How do I change this to, say, gray? And then how do I revert? I did try the manual and demos; maybe I just didn't find the relevant spot! -Rahul On Feb 27, 5:20 pm, Rahul <> wrote: > Hi, > > I was using the "filledcurves&q...

Re: How can i fill a ROI with color and save it ?
In taking a look at a very old topic...This doesn't prove helpful to me at all, perhaps it is needed to only have 1 ROI for selection and filling.<img src=""> This image is a brush scratch and the ROIs need to be filled to bring the multiple scratches into one solid scratch.&nbsp; Simply filling the ROIs with a 255 pixel count and redrawing the image is what needs to be done.&nbsp; Each attempt of mine simply results in one of the ROI selections being displayed and/or filled with a 0/255 count.The VI ...

How can i display an initial color of extracted region?
Hi; i use label2rgb at the end of my program to display a region of interest extracted. but color region displayed is not appropriate. i want to display this region colored with other color (like its original one)and to have black background. can you help me please? my program is : image=imread('im-toulouse.JPG'); figure(1),imshow(image),title('image') I=image(:,:,1); if(isrgb(image)) I=double(rgb2gray(image)); end if ~ (isrgb(image)) I=double(image); end [M,N]=size(I); [y,x]=getpts; x1=round(x); y1=round(y); seed=I(x1...

how can I control the fill colors in stacked histograms?
I'm using gnuplot 4.2 to create a stacked histogram, and I haven't been able to figure out how to get anything other than the default colors. I had assumed there would be something analogous to set style line 1 lt rgbcolor <colorspec> for the fill colors, but if so, I can't find documentation --- and the documentation I _do_ find about fill colors frankly might as well be in Greek. ---Alex P.S. Details, for anyone who might care: Here's an example of the kind of data I'm working with: $ head sample.dat Data_Source eggs cheesecakes ...

Generate map on the fly, specifying colors for defined regions?
I'd like to generate maps of the U.S. on the fly, in which each state is colored according to info stored in a database. Like this: That pages generates the image from a script like so: /MapImage/?AZ=006600&MD=990000&IL=990000&ME=006600& ... The image map coords are included in that page for the rollovers, so I imagine there's a way to employ them in the image generation script as well. Is there a class or bit of code that will enable me to do this with the GB (or another) l...

How can I draw a thin line between different color regions?
Hi, I want to label the pixels of each color region. To get it separated I need to draw a thin line between different color regions. Is there anything in Matlab that used to automate this task? and How? Many thanks, Basela. ...

nested color-shaded regions that can break across pages?
Hello! Is there a LaTeX2e-package by means of which you can create nested color-shaded regions that can break across pages? I would like to use this for documenting source-code-listings -e.g. TeX-macros or Pascal/C++ : Structures at deeper levels, e.g. procedures/functions/macros often have the same name. If you work in TeX, macros can even redefine themselves during execution. I would like to have in the documentation thereof each new definition within some shaded area -- by using shade-areas and colored boxes, you can in such cases point out the definition which is intended to get applied....