Monthly Archives: August 2014

Matplotlib TkAgg

Now that Matplotlib 1.4 has been released, BEFORE upgrading matplotlib with sudo pip3 install –upgrade matplotlib consider first installing sudo apt-get install tk-dev libpng-dev libffi-dev dvipng texlive-latex-base You may want to type sudo pip3 install cairocffi

Find text string in file

I save a script named “findtext” that will look for specific text you want inside any file smaller than a maximum size (avoiding searching huge binary file) you can find this and several other useful scripts at

Cohen-Sutherland line clipping in Python

Here is my version of Cohen-Sutherland line clipping for Python:

Cygwin64 HDF5 load() crash fix

Currently, Octave 3.8.1 in Cygwin64 was compiled with headers 1.8.12 but HDF5 library 1.8.13. This causes Octave to seg fault Warning! ***HDF5 library version mismatched error*** and exit. To avoid having to recompile, you can type HDF5_DISABLE_VERSION_CHECK=1 octave to startup octave you can perhaps add to your ~/.bashrc file the line: alias octave=”HDF5_DISABLE_VERSION_CHECK=1 octave -q”

Maximum Entropy Regularization on Python

I have ported to Python the maxent.m function now called This is for maximum entropy regularization, from PC Hansen’s Regutools.

Matplotlib 3D plotting: how to import

For 3D plotting to work in Matplotlib, near the beginning of the first .py file you use to start your program, you must have imports in this order: import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt If you try importing Axes3D in a later function that actually does the 3D plotting, […]

Getting a metal enclosure for Ettus USRP B200/B210

Current (Aug. 2014) USRP B200/B210 come with Micro-USB 3.0 connector, and the custom housing is available direct from Takachi Electronics Enclousure Co, Ltd.. Request a quote for the MXA3-11-16SSH The current price is about $200 in single quantities and Fedex overnight shipping is about $30 currently. It takes a few business days for them to […]