alexras/boomslang — Issue #4: Automatically make room for tick labels
Author: alexras
Created: 2012-02-15 23:14:34+00:00
State: open

http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels describes how to automatically adjust margins so that tick labels aren't cut off. This should be added to Boomslang, along with a similar modification that adjusts for the axis labels as well.

Looked into this briefly, and found out a few things:

* It won't be as easy as I originally thought to implement this within Boomslang, since we don't have any globally-scoped variables for the event handler presented in the example to use. However, we shouldn't need to use the event handler to do this

* Bounding boxes of things like labels can only be retrieved after draw() has been called because labels' internal references to the appropriate renderer are not updated until then. Presumably we will have to update plot() and save() to perform these adjustments after show() and save() are called on the figure.