ContactDownloadsThesisForumCV

Main Menu
Home
Ph.D. Pursuit
Materials
EM Topics
F A Q
All Else

 Subscribe in a reader

Enter your email address:

Delivered by FeedBurner


Recommendations

Life as a Physicist

Ars Technica

Macenstein

strawberry hedgehog vegan bath products


Advertisements

July's Recommended Post: Diary of a Graduate Thesis Experiment

Plotting Routine for IDL
Tuesday, 28 February 2006

Details

About

This is a basic plotting routine that I have written to save myself time when using IDL. All of the default behaviors are the typical settings that I use for plotting. Since I use the command line in IDL, this routine allows me to type the fewest possible characters in order to achieve the plot output I desire. A rainbow color table can be loaded automatically and the main plot color can be set. An image file can be generated through this routine.

Since this routine is basically a shortcut for generating plots, I will add new features to it as I need them. This will likely include a plot-within-a-plot feature and automatic range determination.

The routine is not fancy, and it may serve its best purpose as an example for people who are new to IDL.

Examples

The following examples are plots of a sine wave. There is a time axis and the actual sine function. Figure 1 is a plot illustrating the most basic usage and was generated with the following command:

IDL> plomake, time, sine, sf = 'plomake_001'

basic example of plomake output
Basic example of plomake output.


Figure 2 demonstrates the labeling methods. This image was generated with the following command:

IDL> plomake, time, sine, xlab = 'Time', ylab = 'Amplitude', t = 'Example', /nf, sf = 'plomake_002'

fully labeled output from plomake
Fully labeled output from plomake.

 

 

Changelog

  • 02/28/2006 - Commented for public release.
  • 03/20/2006 - Major revisions, essentially a new routine.

Tags: ,

Last Updated ( Friday, 15 February 2008 )
 
< Prev   Next >

 

© 2000-2008 David Pace
Design by David Pace