Tag Archives: python
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
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
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
See this post at AstroBetter.
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:
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