Re: [Matplotlib-users] How to calculate relative positions between objects

2010-02-01 Thread Jae-Joon Lee
Here is a slightly revised version of your script. It has a separate axes for labeling whose width is determined by the maximum width of the labels (using MaxExtent from axes_grid toolkit). Give it a try and see if it fits your needs. Regards, -JJ import numpy as np import matplotlib.pyplot

[Matplotlib-users] How to calculate relative positions between objects

2010-01-31 Thread Renato Alves
Hi everyone I've been going around matplotlib objects trying to find a way to pre-calculate positions depending on input. I'm trying to create a function that draws two barplots facing opposite directions. This is what I managed so far: ### import numpy as np import matplotlib.pyplot as plt