SuperMongo is a plotting program that is excellent for plotting in 2D (just don't fall in love with it like some professors) To start supermongo cd into your working directory and type sm at the prompt cl>sm : This is what the sm command prompt looks like You can enter commands one at a time in the command line but the best way to work is to write a SM script and run it. Write a script and save it as "file.sm" Run scritp with: : input file.sm ------------------------------------------------------------------------------------------------------------- # The all important comment character ##### Galaxy Luminosity Function ##### #You need a space before your commands (yes Mike, I know its retarded) device x11 -bg white #sets the device to output to # device postfile sample.ps erase #erases any data in the device define TeX_strings 1 #turns on Latex fonts expand 1.0001 #changes font size ctype black #changes color to black ############################## limits -24 -15 0 7 #sets limits of plotting area window 1 2 1 2 #1x2 windows, working on window 1,2 box #draws axis of current window xlabel Absolute magnitude (M_r) #labels x-axis ylabel Log N #labels y-axis relocate -23 5 #relocates using local dimensions label Sample label 1 \omega #writes label data redlum.dat #tells SM which data file to open read {mag 1 nr 2} #inputs column 1 into array mag and column 2 into array nr set lgn=lg(nr) #takes log of arran n and puts it into array lgn ctype red #changes color to red hist mag lgn #draws histogram ctype black #changes color back to black window 1 2 1 1 box xlabel Absolute magnitude (M_r) ylabel Log N data bluelum.dat read {mag 1 nb 2} set lgn=lg(nb) ctype blue hist mag lgn ctype black set total=nr + nb set lgtot=lg(total) ptype 4 0 points mag lgtot connect mag lgtot ##Decorations window 1 1 1 1 #sets back to sigle window ctype black ltype 0 toplabel Luminosity function #labels top of figure relocate (7000 27000) #relocates in an absolute sense label Sample label 2 \Beta ------------------------------------------------------------------------------------------------------------ type "ls" at the command prompt to get a list of all the commands available type "help command" to get information on any command useful commands to look up: ticksize makes log ticks get_hist bins up your data for you box controls axis labels lines controls what lines to read from file add_ctype you can define your own color ltype line type ptype point type chdir change directory Macros can help to unclutter your script. http://webusers.astro.umn.edu/~caustin/sm.html