PyScripter

Oooo, shiny. PyScripter is awesome. From my spoilt python brat wishlist we have: Tabbed interface like Notepad++ and SciTE [CHECK] Remember session like Notepad++ [CHECK] Code context like IDLE editor [And More CHECK] Line numbers like SciTE [duh, CHECK] Adjustable tabbing and smart indent like SciTE (And not like IDLE; shudder) [OK, can’t figure this… Read More PyScripter

Word 2007…

… They only inserted bugs in Word 2003 so that people would be so relieved when 2007 came along. Any how, exporting to pdf via Word 2007 was glitch free (for a 186 page thesis, with several figures). Thanks to Ben for the pointer to word 2007.

Diassembling a HDD

Old plastic is brittle You need to take off all the screws, some of which are hidden under the stickers [here] The lid of the HDD comes off very easily The HDD platter is SHINY. The magnets that are part of the head assembly are strong! Fun!

IDE for Python (II)

Following up on a previous post about IDEs for Python, my current wishlist would be: Tabbed interface like Notepad++ and SciTE Remember session like Notepad++ Code context like IDLE editor Line numbers like SciTE Adjustable tabbing and smart indent like SciTE (And not like IDLE; shudder) Autocompletion like IDLE Debugger would be nice, but IPython… Read More IDE for Python (II)

matplotlib : subplot with polar

Polar plots in matplotlib are generated using the polar(theta, R) command. The source for this command is simply (from the amazing ‘??’ feature of IPython): In [37]: m.polar??Type: functionBase Class: String Form: Namespace: InteractiveFile: c:\python25\lib\site-packages\matplotlib-0.91.2-py2.5-win32.egg\matplotlib\pyplot.pyDefinition: m.polar(*args, **kwargs)Source:def polar(*args, **kwargs): “”” POLAR(theta, r) Make a polar plot. Multiple theta, r arguments are supported, with format strings,… Read More matplotlib : subplot with polar

Set figure size

In matplotlib you set figure size as follows [from here]: import pylab as mf = m.figure()f.set_size_inches((2,6)) which will make the figure 2in wide and 6in tall which works at least for SVG export