From: John H. <jdh...@ac...> - 2004-03-06 16:28:45
|
>>>>> "Andrew" == Andrew Straw <str...@as...> writes: Andrew> G'day all! I'm back to using matplotlib after a few Andrew> months away. I'm very impressed with the recent progress! Thanks. It's good to see you back around in these parts :-) Andrew> I often plot the instantaneous variance of repeated Andrew> recordings made under the same conditions using a shaded Andrew> area to surround the mean. I'm trying to find a way to do Andrew> this with matplotlib. Included below is a "filly" (fill Andrew> y) function I wrote to attempt to do this. It doesn't Andrew> quite work yet, and I'd like some help. (BTW, I don't Andrew> know of how this would be done in Matlab, so if there's a Andrew> more compatible way, I'd be happy to change the approach.) Andrew> 1) How do I make the data fill the axes automatically, Andrew> such as the "plot" function? Andrew> 2) Is it a bug that the polygon is not filled, or am I Andrew> missing something? Andrew> I've only tried this in the PS backend -- I'm having Andrew> troubles with the others at the moment. Also, this is Andrew> using the version of matplotlib I checked out with CVS. Andrew> This version fails to build the agg backend with: Andrew> running build_py package init file 'ttfquery/__init__.py' Andrew> not found (or not a regular file) package init file Andrew> 'FontTools/__init__.py' not found (or not a regular file) Andrew> package init file 'FontTools/fontTools/__init__.py' not Andrew> found (or not a regular file) package init file Andrew> 'FontTools/fontTools/encodings/__init__.py' not found (or Andrew> not a regular file) error: package directory Andrew> 'FontTools/fontTools/misc' does not exist I won't get a chance to look at your fill code til Monday (which BTW is something I've been wanting to add for a while), but the main problem here is that CVS doesn't have a complete version of the FontTools* and ttf* that are needed to build from src. The 0.51 release is actually quite up to date and you would probably be best off just working in that tree for now. vis-a-vis FontTools and ttfquery - an increasing number of matplotlib backends need ttf font finding capabilitlities which FontTools and ttfquery provide. However, they are big and a pain to install and Paul Barrett has been working on a replacement. At one point I added them to CVS since I was distributing them with matplotlib but thought twice about it and tried to remove them. However despite multiple attempts I have not been able to get them out of CVS (a free beer to anyone with commit privs who can purge these bastards). No in a nutshell there is an incomplete version of FontTools and ttfquery in CVS. If you want to build from CVS, copy the agg, FontTools* and ttfquery dirs/files from the 0.51 src distro into the CVS tree and build from there. This will all be cleared up in a few weeks time. JDH |