map plotting

This is a discussion on map plotting within the Idl-pvwave forums in Programming Languages category; Hello, I have a code that plots the coordinates in a global map. I just wanna use the same procedure but i need to differentiate the coordinates with different colors and I tried using color tables but the color of any of the points in the map not getting changed. Can anyone help me fix this? I'm appending the code that I have to plot these points on the map. All I want is to change the color of the points that I have on the map. The code below just plots the asterisks on the map... I just wanna ...

Go Back   Application Development Forum > Programming Languages > Idl-pvwave

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-07-2008, 04:06 AM
mkmvarma@gmail.com
Guest
 
Default map plotting

Hello,
I have a code that plots the coordinates in a global map. I just
wanna use the same procedure but i need to differentiate the
coordinates with
different colors and I tried using color tables but the color of any
of the points in the map not getting changed. Can anyone help me fix
this? I'm appending the code that I have to plot these points on the
map. All I want is to change the color of the points that I have on
the map. The code below just plots the asterisks on the map... I just
wanna change the color of those asterisks.
Thanks,
Mahesh
---------------------------------------------------------------------------***-------------------------
LOADCT, 26
;color_tab = [0,2,20,31,42,47,50,55,60, 65,80,89,96,
100,109,112,114,127,130,133,144,$
;169,183,192,199,210,214,3, 10,230,240,246,255,203,142,157]
set_plot,'ps'
;!p.font = 0
;device,filename=strmid(file3,56,19)+'timeseries'+ '.ps'
device,filename=strmid(file3,56,23)+'timeseries'+' .ps'
;plot,findgen(100),/nodata,background=!d.n_colors-1
;!P.background=!d.n_colors-1
map_set , /hammer,limit = [-40,-180,40,180],color=0;,/hires
;map_set , /mercator,limit = [0,50,40,100],color=0

map_continents,/continents,/countries,color=0
oplot,lon,lat,psym=2,symsize=1.0,color=25
oplot,[-180,180],[0,0],color=180,linestyle=1
map_grid, color=0,latdel=10,londel=20
---------------------------------------------------------------------------****----------------------------------
Reply With Quote
  #2  
Old 09-07-2008, 10:21 AM
ben.bighair
Guest
 
Default Re: map plotting

On Sep 7, 4:06 am, mkmva...@gmail.com wrote:
> Hello,
> I have a code that plots the coordinates in a global map. I just
> wanna use the same procedure but i need to differentiate the
> coordinates with
> different colors and I tried using color tables but the color of any
> of the points in the map not getting changed. Can anyone help me fix
> this? I'm appending the code that I have to plot these points on the
> map. All I want is to change the color of the points that I have on
> the map. The code below just plots the asterisks on the map... I just
> wanna change the color of those asterisks.
> Thanks,
> Mahesh
> ---------------------------------------------------------------------------***-------------------------
> LOADCT, 26
> ;color_tab = [0,2,20,31,42,47,50,55,60, 65,80,89,96,
> 100,109,112,114,127,130,133,144,$
> ;169,183,192,199,210,214,3, 10,230,240,246,255,203,142,157]
> set_plot,'ps'
> ;!p.font = 0
> ;device,filename=strmid(file3,56,19)+'timeseries'+ '.ps'
> device,filename=strmid(file3,56,23)+'timeseries'+' .ps'
> ;plot,findgen(100),/nodata,background=!d.n_colors-1
> ;!P.background=!d.n_colors-1
> map_set , /hammer,limit = [-40,-180,40,180],color=0;,/hires
> ;map_set , /mercator,limit = [0,50,40,100],color=0
>
> map_continents,/continents,/countries,color=0
> oplot,lon,lat,psym=2,symsize=1.0,color=25
> oplot,[-180,180],[0,0],color=180,linestyle=1
> map_grid, color=0,latdel=10,londel=20
> ---------------------------------------------------------------------------****----------------------------------


Hi,

Check out http://dfanning.com/documents/tips.html#PostScript

Cheers,
Ben
Reply With Quote
  #3  
Old 09-08-2008, 04:11 PM
Ed Hyer
Guest
 
Default Re: map plotting

On Sep 7, 1:06*am, mkmva...@gmail.com wrote:
> map. All I want is to change the color of the points that *I have on
> the map. The code below just plots the asterisks on the map... I just
> wanna change the color of those asterisks.


Do you mean that you want the color of each XY point to be specified
in a third array (Z)? To do that, you will need the routine OPLOTS,
which is a simple extension to OPLOT to take care of things like that.
Search this group to find the routine, and call it like:

oplots,X,Y,psym=2,color=COLOR_INDICES

--Edward H.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:15 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.