Matthieu Brucher wrote: > I manage to do what I wanted to do, it was not that easy - the colours > were in an array I had to transform into an array of tuples, the > autoscale did not function, I had to put in the fig.subplot the correct > xlim and ylim -, but now it works like a charm. > Many thanks.
What version of mpl are you using? In recent versions, the collections should accept 2D numpy arrays as well as any sequence of tuples (and several other possibilities). Autoscaling does not work well with arbitrary collections because there is a chicken-and-egg problem: a collection member may be drawn in pixels or other physical units, in which case its size in data units cannot be determined until it is drawn with a given xlim and ylim (and sometimes dpi). Eric ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users