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.


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

See related articles to this posting

comp.soft-sys.matlab 203251 articles. 527 followers. Post

0 Replies
107 Views

Similar Articles

[PageSpeed] 19


Reply:

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 <rpna...@gmail.com> 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="http://forums.ni.com/attachments/ni/170/308335/2/roi%20scratch.jpg"> 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: http://www.congress.org/congressorg/issues/votes/?votenum=189&chamber=S&congress=1092 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. ...

Bug when using colored land fill on maps with cgm device?
The code below creates strange results when turning on the cgm and the land_fill. The colored areas get messed up. This is obviously related to the clipping. When taking out the 'clip=0' in the call to map_set, it all looks fine. And when plotting to e.g. the screen the problem is not seen. Looks like a bug? ------------------------------------------------------------------------ PRO Maptest, cgm=cgm, fill_land=fill_land IF KEYWORD_SET(cgm) THEN set_plot,'cgm' loadct, 39 !P.color = 0 !P.background = !D.n_colors-1 ;..map projection defined here: P0lat = 90 ...

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....

Want to fill color on the specific region on the graph generated by using plot.
Hi all, I use the following matlab script to obtain the band structure of my DFT calcultation result: -------------- clear all; data=[ 0.000000 -25.768200 0.007552 -25.767700 0.015103 -25.766100 0.022655 -25.763300 0.030207 -25.759500 0.037758 -25.754600 0.045310 -25.748600 0.052862 -25.741400 0.060413 -25.733200 0.067965 -25.724000 0.075517 -25.713600 0.083068 -25.702100 0.090620 -25.689500 0.098171 -25.675800 0.105723 -25.661100 ...

How to change the color bar under fill/back color icon on toolbar and use last color setting
I created custom toolbar icons that look and function similar to the standard MS Access Fill/Back Color and Fill/Fore Color toolbar icons. My custom icons call a function that uses the Terry Kreft and Stephan Lebans 'aDialogColor' function. I modified the function slightly to open the full color palette with CC_FULLOPEN + CC_RGBINIT and pass to the function the color that I want to set initially before calling ChooseColor. My issue is, I would like to set the color bar that appears beneath the actual Fill/Back Color and Fill/Fore Color icon on my custom icons exactly like it does on ...

Map a PANTONE color to a CMYK color
Hi. I would need some help here please. This might be a stupid question; is there any algorithm to determine the CMYK color that is nearest to a given PANTONE color? I doubt. If not, are there any public mapping tables available out there that maps PANTONE colors to their nearest CMYK representation, respectively? Thank you, Dennis >This might be a stupid question; >is there any algorithm to determine the CMYK color that is nearest to a >given PANTONE color? The Pantone colours are not systematic; you would have to work with a table of colours and find the closest one. "C...

How to find out which CX color codes map to what colors?
I'm trying to learn SAS graph. My question is to how to find out what the colors that start with "cx" = translate to. For instance, in experimentation I have found out that: cx000000 =3D black=20 cx010000 =3D black cx590000 =3D brown=20 cxff0000 =3D red=20 1. Is there a list of the major cx characters somewhere? 2. Is there some way to get what the cx color number is from knowing = the RGB and hue numbers? For instance, I can determine in MS Access = that light blue is: Hue=3D120, Sat=3D240, Lum=3D180, Red=3D128, Green=3D255, Blue=3D255 (MS = access color 16777088...

Re: How to find out which CX color codes map to what colors?
--On 2/7/2008 11:28 AM -0600 Mary wrote: > My question is to how to find out what the colors that start with "cx" > translate to. > > For instance, in experimentation I have found out that: > cx000000 = black > cx010000 = black > cx590000 = brown > cxff0000 = red [...] > 2. Is there some way to get what the cx color number is from knowing the > RGB and hue numbers? For instance, I can determine in MS Access that > light blue is: > > Hue=120, Sat=240, Lum=180, Red=128, Green=255, Blue=255 (MS access color > 16777088) > > Would there ...

code for color ordering and color mapping in palette images
i am doing project in adaptive data hiding using color ordering and color mapping in palette images.can any one tell about it immediately. ...

Can a Color Box display the transparent color [16777216]?
I was trying to force a Color Box to display the transparent color [16777216 = "2 to the 24th"], but I didn't have much luck.<br><br>Instead of displaying transparent, the Color Box wanted to paint a replica of the coloring tool's "transparent" icon, which is a small "T" on a white background.<br><br>Is it possible to make a Color Box display the transparent color?<br><br>[See attached VI.] Transparent Color Box.vi: http://forums.ni.com/attachments/ni/170/101194/1/Transparent Color Box.vi I do not think you can.<br...

FW: How to find out which CX color codes map to what colors?
The RGBDM function works in the other direction too. You can get the RGB value for a color: init: txtClr=rgbdm("cxf00000"); put txtClr=; txtClr=rgbdm("red",rgbcolor); put txtClr= rgbcolor=; return; SAS log: txtClr=ORANGE txtClr=RED rgbcolor=CX800000 -----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Randy Herbison Sent: Thursday, February 07, 2008 2:07 PM To: Mary; SAS-L@LISTSERV.UGA.EDU Subject: RE: How to find out which CX color codes map to what colors? If you have SAS/AF, you can use the SCL function...

Is there any library that can convert RGB colors to ANSI colors?
Convert RGB colors to the closest ANSI colors. For example, given RGB color FF0000, it should print [31m. On Nov 30, 4:39=A0pm, ZelluX <zel...@gmail.com> wrote: > Convert RGB colors to the closest ANSI colors. For example, given RGB > color FF0000, it should print [31m. Maybe ... but you could write it yourself quickly enough; the code is a trivial loop over a list of the RGB values of the 8 possible colours, and would fit easily on a 24x80 terminal :-) Why don't you have a try at it and come back if you have any problems? Cheers, John On Nov 30, 8:04=A0pm, John Machin <...

Marker fill color and different marker edge color
Dear all, using gnuplot I try to plot data from a file with points such us squares or circles and I would like to achieve a certain fill color, let's say red, but a different marker edge color, say black. As terminal I use postscript eps enhanced color. Do you have any hints? Best Regards, Henning In article <g69vba$fl0$1@news.albasani.net>, Henning Haida <losmintos@midnightallstars.de> wrote: >Dear all, > >using gnuplot I try to plot data from a file with points such us squares >or circles and I would like to achieve a certain fill color...

How can I plot line with a color gradient instead of a solid color?
How can I change the 'RED' color below to a gradient instead? (a RedBlue gradient for example) ------------------------ LayeredGraphPlot[{1 -> 2, 1 -> 3}, EdgeRenderingFunction -> ({Red, Arrow[#1, 0.1]} &)] ------------------------ ...

Mapping grayscale image into a colored image with two primary colors
Hey guys, For a problem I need to work out some way to map a grayscale image into a colored image with two colors- lets say blue and yellow. To make it more clear lets say we have a grayscale image and we want to make it colored but it only consists of blue and yellow ( or any other colors). However, I want to preserve the details of the image, so hue and saturation must stay the same and all shadow effects and such still available in transformed picture. Just lets say all the dark parts of the image map to blue and light parts map to yellow . something like that . any1 has any idea how to d...

Re: How to find out which CX color codes map to what colors? #5
If you have SAS/AF, you can use the SCL function RGBDM to get the color associated with an RGB value: init: txtclr=rgbdm("cxf00000"); put txtclr=; return; SAS log: txtclr=ORANGE The SCL can easily be parameterized and optionally wrapped in a macro for convenient use within a SAS program. Let me know if you are interested, and I'll provide example code. -Randy -----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Mary Sent: Thursday, February 07, 2008 12:28 PM To: SAS-L@LISTSERV.UGA.EDU Subject: How to find ou...

Re: How to find out which CX color codes map to what colors? #6
Thanks to all very much. I did find a site that shows the HEX numbers = for the standard MS color wheel- it is: http://html-color-codes.com/ In SAS Graph, one refers to these with cx in front of them, such as: cframe=3D"cx80FFFF"; for light blue.=20 -Mary Mary wrote: > Thanks to all very much. I did find a site that shows the HEX > numbers = for the standard MS color wheel- it is: A final note, in your SAS install root, there should be a folder "graph\sasmacro" containing the file "colormac.sas". In your SAS session simply submit %colormac(HE...