Suppress axes in IDL plots

Some control of the axes in an IDL plot can be done through the [xyz]style keyword.

Value Description
1 Force exact axis range (from data)
2 Extend axis range
4 Suppress entire axis. This will eliminate plotting the axes at all. Useful if you want to use the axis procedure later to fill in the axes.
8 Draw axis only on one side.
16 Inhibit setting the Y axis minimum value to 0 (only works on y axis)

These keywords are bitwise so they can be added together to get a combination of effects.

NOTE: if you want to just suppress the text and tick marks in one of the axes:

plot, x, y, yticks = 1, ytickname = [' ', ' ']

This will set the plot to have only one major tick interval at the top and bottom of the axis and name them with a string with an empty space.

Using EPS files in PDFlatex

pdflatex is a good alternative to using the regular latex command because it bypasses the standard .dvi. to .ps to .pdf straight into making a PDF. It can also insert regular graphics files like JPEG, PNG, etc. However, it cannot by default handle postscript files like .eps files. Fortunately, most latex distributions will have the epstopdf package that can be used in conjunction with the graphicx package. Just include them in the header:


usepackage{graphicx}
usepackage{epstopdf}

More information can be found here.

Some Key Codes for Terminal.app

Some useful key codes for Terminal.app. The default behavior appears to be that the keys Page Up and Page Down will go up and down the Terminal.app buffer and not sent to the terminal program. This can be very annoying for interacting with programs like Emacs when it’s running in the terminal. The following are a few non-printing characters and their key bindings for use in the Terminal.app keyboard options. (From a post in the macosxhints.com forums)


Pause = 32
Macro = 3 # Break (Shift-Pause)
Home = 33[1~
Insert = 33[2~
Remove = 33[3~ # Delete
End = 33[4~
PageUp = 33[5~
PageDown = 33[6~

Apache and PHP on Mac OS X

Apache is automatically installed on OS X but is not enabled by default. To enable, go to System Preferences->Sharing and check the Web Sharing box.

By default, each of the users will have a website at /Users/username/Sites/ which can be accessed at http://localhost/~username/

A possible problem can come if this was an update to OS X 10.5 from a different version. If a “Forbidden 403” error shows up when going to a user homepage, it is missing probably a file in the users directory of the apache configurations (/etc/apache2/users/). Follow the directions at the Apple help site to fix.

Apache has PHP turned off by default, but can be enabled by editing the configuration file at /private/etc/apache2/httpd.conf and uncommenting the line: #LoadModule php5_module.

To get PHP working, need to make the php.ini file, this can be done easily by just moving the default file:
mv /private/etc/php.ini.default /private/etc/php.ini.

Further help on getting PHP working with Apache on OS X 10.5 can be found here.