Tag Archives: python

matplotlib.rc customizations for fonts

I’ve long struggled with modifying the fonts for matplotlib plots from the default “Bitstream Vera Sans” until I found this post recently. The steps outlined there worked quite well for changing the general font used for the plots, but escaped … Continue reading

Posted in Tips, Uncategorized | Tagged , , | Leave a comment

Homebrew python: default interactive plotting with Matplotlib

One thing I noticed with my homebrew installation of matplotlib was that the interactive plotting was disabled by default. Turning it on was a simple matter of finding and editing the matplotlibrc file: I set the following lines: # backend … Continue reading

Posted in Tips | Tagged | Leave a comment

Install PyMC on OSX, Python2.7

I came across a number of compile problems when trying to install PyMC with the latest STSCI_PYTHON and Python2.7. The main problem appears to stem from the version of gfortran that the install scripts found in /sw/bin, perhaps shipped with … Continue reading

Posted in install, Tips, Uncategorized | Tagged , , | Leave a comment

Read tables with ATpy

See this post at AstroBetter.

Posted in install | Tagged , , , | Leave a comment

Install python-sao

Python-sao is an interface for communicating with DS9 via Python. Installing with STSCI_PYTHON is done as follows: This is the error you get if you don’t set CC=gcc-4.0:

Posted in install | Tagged , , , | Leave a comment

Install Python Shapely

Shapely is a Python package developed for GIS and geosciences that contains geometric utilities that could be useful for astronomy. Requires libgeos_c , which is available from MacPorts as geos, though it needs to be compiled by hand with gcc-4.0 … Continue reading

Posted in install | Tagged , , | Leave a comment

New Mac Setup

I recently bought a new MacBook Pro to replace my aging Macbook.  If you have a recent SuperDuper backup, it is very easy to directly sync the new system to the old.  My old setup was a bit of a mess, … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment