small issue with hist

The left is the matplotlib plot – notice the slight rightward shift of the drawn histogram with respect to the solid black line. The right is the pdf produced from the same plot, which is exactly where it should be. Same deal, but with ‘Agg’ backend and printed to png

ipython + matplotlib crashing

I’ve been having this problem ever since I changed to 1.0.1. It’s not clear if it is ipython’s fault or matplotlib’s fault. Today I got the first error message before segfault: objc[56139]: FREED(id): message removeFromSuperviewWithoutNeedingDisplay sent to freed object=0x19b37470 And Mac OS X error report: Date/Time: 2011-07-15 21:47:54.500 -0400OS Version: Mac OS X 10.5.8 (9L30)Report… Read More ipython + matplotlib crashing

Bug in STIX fonts

Grumble, grumble. MathML on Firefox on mac was going great guns, until I find that \mathcal{N} gives me garbage (but \mathcal{M} looks fine). I see from this bugreport, that this is an issue with the STIX fonts.

Making up a GET request in bottle

Problem: I’m using bottle for a desktop browser based app. I needed to call a page view from an action. The page view normally gets some parameters encoded in a GET request. Solution: The GET request can be faked by doing: request.GET.append(key, value) Since request.GET is just a dictionary.