X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 Aug 2020 01:47 PM by  Ben Castellani
plotting points on maps
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Ben Felzer



New Member


Posts:8
New Member


--
21 May 2020 02:11 PM
    I am trying to plot filled and unfilled circles on a map - the unfilled circles appear as white circles, but I would like them to have a black outline around them. Is that possible (here are the commands I am using).

    A = FIndGen(47) * (!PI*2/46.)
    UserSym, cos(A), sin(A), /fill
    PLOTS,lon,lat,a,PSYM=8,SYMSIZE=0.75, LINESTYLE=0, COLOR=vcolors, THICK=5

    Ben Felzer



    New Member


    Posts:8
    New Member


    --
    22 May 2020 08:11 AM
    Well, I have found one work-around - just make grey circles instead of white, so they show on a white background. Just thought there should be a way to create both filled and unfilled circles.

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    03 Aug 2020 01:47 PM
    Ben, the "fill" of the circle is coming from your call to UserSym with the /FILL keyword. Removing that will make your circles unfilled. The color you set in the PLOTS call will then be the color of the circle outline (unfilled). A small example is below.

    set_plot,'win'
    DEVICE, DECOMPOSED=0
    LOADCT, 5

    !p.background=255
    erase

    MAP_SET, /Satellite, 36.3000, -111.200, 0,sat_p=[10,0.0,0.0],$
    /cont,/USA,zvalue=0,/hires,/noborder,/grid,/horizon,color=0

    a = FIndGen(47) * (!PI*2/46.)
    UserSym, cos(a), sin(a)

    lat = [40,40,40] & lon = [-110,-90,-60]
    PLOTS,lon,lat,0,PSYM=8,SYMSIZE=5, LINESTYLE=0, COLOR=122, THICK=5


    You are not authorized to post a reply.