7427 Rate this article:
No rating

An update to the CURRENT keyword

Mark Alonzo
(Note: I'm out of town this week; this is a short post I banked earlier in the year.) The IDL 8 (a.k.a. New) Graphics CURRENT keyword got a useful update in IDL 8.2.2: instead of being a Boolean, it now accepts a window reference, which allows me to place a plot in a specific window. For example, if I make two empty windows, W1 and W2:
w1 = window(window_title='Window #1')
w2 = window(window_title='Window #2')
and I want to ensure that a new plot goes into the first window, W1, I can set the CURRENT keyword like so:
p = plot(/test, current=w1, title='I''d like this to be in Window #1')
Check! Prior to IDL 8.2.2, the SetCurrent method would also do the trick, but I think this syntax is nicer.
MOST RECENT

A Technical Dive into Creating Accurate Digital Terrain Models

6/27/2018

Live Webinar | July 25 Creating accurate digital terrain models (DTMs) is essential for modeling areas of... more »

The Science, and Art, of Hyperspectral Image Analysis

6/7/2018

Harris Geospatial Solutions – June 7, 2018 Automation is being touted as the wave of the future for... more »

SIGN UP & STAY INFORMED

Sign up to receive the latest news, events, technologies and special offers.

SIGN ME UP