On Fri, Apr 24, 2009 at 8:41 AM, granquet <granq...@wyplay.com> wrote:

> Hello,
> I just discovered matplotlib (and python).
> I got things running pretty fast/easily (thx to the good documentation)
> but I got a problem with texts and subplots.
>
> -text tend to overlap previous subplots. this is more annoying than a
> real issue ... but still, It looks blatantly dirty... I had no success
> with zorder
>
> -text overlaps, is there a way to "automagically place" text so that
> overlapping is minimal?
> taking into account that my text labels are only constrained on X and
> can be moved freely on Y
> I would happily get the boundaries of the text labels and sort my x/y
> coordinates myself, but I couldn't find such boundaries.
>
> for the record: I'm plotting some system datas (like cpu/ram/disk usage)
> over time and placing dbus calls over that
> at the moment, I got 5 subplots vertically arranged sharing the same x axis
> I represent dbus calls with axvlines and annotate them with some dbus
> infos (usually 15 chars)


Matplotlib doesn't have the ability to automatically space out the text.
You can force your subplots to be further apart (and leave room for more
text) using the pyplot.subplots_adjust command.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to