comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » plotting a tropical cyclone symbol
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: plotting a tropical cyclone symbol [message #94530 is a reply to message #94501] Tue, 27 June 2017 08:10 Go to previous messageGo to previous message
Kenneth Bowman is currently offline  Kenneth Bowman
Messages: 86
Registered: November 2006
Member
On Wednesday, June 14, 2017 at 1:23:43 PM UTC-5, Brian McNoldy wrote:

> Thanks for the suggestion, but I do not have or know of a TTF file with those characters/symbols. They are pretty hard to come by, but since NCL offers all of them, it would make sense that IDL would want to remain competitive.

You can draw an arbitrary filled or unfilled symbol using USERSYM and plot it with PLOTS.

We used it to create the outline of an airplane for animations of flight tracks (including rotating the direction of the plane).

This creates a filled or unfilled circular plotting symbol for when you need a finite-sized dot (as opposed to PSYM = 3).

Unfortunately you can only have on e USERSYM at at time, so you will have to redefine the symbol when switching between filled and unfilled.

Ken

PRO USERSYM_CIRCLE, FILL = fill, NPOINT = npoints

;+
; Name:
; USERSYM_CIRCLE
; Purpose:
; Define a circular plotting symbol using USERSYM.
; Calling sequence:
; USERSYM_CIRCLE
; Inputs:
; None
; Output:
; Changes definition of user-defined symbol (PSYM = 8).
; Keywords:
; FILL : If set, make the symbol filled
; Author and history:
; K. Bowman. 2006-07-11
;-

COMPILE_OPT IDL2 ;Set compile options

IF (N_ELEMENTS(npoints) EQ 0) THEN npoints = 17

USERSYM, 0.5*COS(2.0*!PI*FINDGEN(npoints)/npoints), $ ;Create circular plotting symbol
0.5*SIN(2.0*!PI*FINDGEN(npoints)/npoints), $
FILL = fill

END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Pretty maps in IDL?
Next Topic: More that 2800 Solutions Manuals (Part 2)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:56:08 PDT 2025

Total time taken to generate the page: 0.00422 seconds