From: Ying-Tsao on 26 May 2010 04:38 i load a figure ,get from GoogleEarth and i want to add some points at this figure i transfore the pixel data to latitude/longitude,that i can plot the points i need but when i plot this figure( using pcolor) ,color will be changed. how can i save this new figure with the GoogleEarth's color? thanks!
From: us on 26 May 2010 05:39 "Ying-Tsao " <pinewolf(a)xuite.net> wrote in message <htimlc$479$1(a)fred.mathworks.com>... > i load a figure ,get from GoogleEarth > and i want to add some points at this figure > > i transfore the pixel data to latitude/longitude,that i can plot the points i need > but when i plot this figure( using pcolor) ,color will be changed. > > how can i save this new figure with the GoogleEarth's color? > > thanks! a hint: - try to retrieve the original color map... - then, apply the cmap... us
From: Walter Roberson on 26 May 2010 10:08 Ying-Tsao wrote: > i load a figure ,get from GoogleEarth > and i want to add some points at this figure > > i transfore the pixel data to latitude/longitude,that i can plot the > points i need > but when i plot this figure( using pcolor) ,color will be changed. > how can i save this new figure with the GoogleEarth's color? pcolor scales the colors according to the actual range of data unless you tell it otherwise. http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pcolor.html The minimum and maximum elements of C are assigned the first and last colors in the colormap. Colors for the remaining elements in C are determined by a linear mapping from value to colormap element. pcolor(C) draws a pseudocolor plot. The elements of C are linearly mapped to an index into the current colormap. The mapping from C to the current colormap is defined by colormap and caxis.
|
Pages: 1 Prev: how can i generate a White Gaussian Noise in Matlab 2009 Next: Create a S-Function in a GUI |