On Sat, Aug 9, 2014 at 7:44 PM, Yuanchao Xu <xuyuancha...@gmail.com> wrote: > 1. I wonder in python, is there any more fast way to generate this kind of > map, as a whole, not a series of shapes, i think that would be faster??
You mean like collecting all the shapes into a single sparse array and passing the single array to contourf? Why would that be faster? > 2. I have tried using contourf, as below, but it says "out of bounds for > axis 1", but actually, I printed X,Y and cordi, they have the same shape, > why still out of bounds? I don't know. If you're going to ask about an error, it would be helpful if you would include the full stack trace. > 3. Some kind person has suggested me to use imshow to plot. I checked the > explanation of imshow, it deals more about images not plots, and it needs a > 3D array to plot, in which for each pixel it needs 3 values to show the > color. I also tried, not so acceptable. According to the documentation, it will also accept an MxN array of greyscale or colormapped data. > The interfaces of each color are so > vague, and besides, when the data is large, it just failed to present. So, > if I use imshow, could I have some way to avoid those two problems? Failed how? As posed, this question is too vague to answer. -- https://mail.python.org/mailman/listinfo/python-list