[Matplotlib-users] Need quicker text drawing

2007-03-16 Thread Joel Hedlund
Hi! I'm using matplotlib and I'm writing a viewer for multiple sequence alignments (read: large matrices of uppercase characters). It's coming along nicely and matplotlib is a real charm to work with. Unfortunately, I may have run into a showstopper. I've tried all tricks I can think of, I've

[Matplotlib-users] Help needed: Rendering of multiple text labels is very slow.

2007-02-01 Thread Joel Hedlund
ect better performance? Does anyone have a better idea? Thanks for an awesome plotting package! /Joel Hedlund # Change this to see change in rendering speed: SHOW_LETTERS = False import matplotlib matplotlib.use('GTKAgg') import pylab from numpy import array, uint8 RED = array([229, 51, 25], uin

Re: [Matplotlib-users] Bug: Image transparency varies periodically for imshow(img, aspect='auto') at high magnification

2007-02-01 Thread Joel Hedlund
> I think that it was also connected with very slow rendering. I second that. Rendering is very slow when this occurs. A workaround is to slice the image and just plot the visible pixels, and then to use the 'extent' keyword argument to position the slice on the axis, e.g: imagesc(img[a:b,ymin:y

[Matplotlib-users] Bug: Image transparency varies periodically for imshow(img, aspect='auto') at high magnification

2007-02-01 Thread Joel Hedlund
ib/python2.4/site-packages/matplotlib/mpl-data'] loaded ttfcache file /home/bioinfo/yohell/.matplotlib/ttffont.cache backend WXAgg version 2.6.1.2pre In this example I used the WXAgg backend, but GTKAgg shows the same results. I've also reproduced this bug on a WinXP machine. Thanks for