|
From: Eric F. <ef...@ha...> - 2008-12-10 17:55:54
|
Andrea Gavana wrote: > Hi Mauro & All, > > On Wed, Dec 10, 2008 at 10:32 AM, Mauro Cavalcanti wrote: >> Dear Andrea, >> >> Greetings. I have tried your script here. >> >> 2008/12/10 Andrea Gavana <and...@gm...>: >>> I attach my small sample to the message. Am I doing something worng in >>> my call to contour? Why I am unable to see the 20 contour I specified >>> in my vector V? >> But you can. Simply change the line below to: >>> CS = plt.contourf(X, Y, Z, V=V) >>> CS = plt.contourf(X, Y, Z, V) >> (I did not understand the reason behind the "V=V" in the argument list?) > > Ah! I thought "V" was a keyword argument. Shame on me. Thank you for the hint. > >>> Another related problem is with contourf: if I modify the attached >>> sample to use contourf and clabel, I get this error: >> Well, this one I do not understand myself. > > Uhm, I will wait for further suggestions. Maybe I am doing something > stupid, again ;-) Not stupid at all; it just happens that clabel works only with contour, not with contourf. Clabel operates on the LineCollection generated by contour, but contourf generates a PolyCollection. It should be possible to call contourf, then contour, then clabel, and then make the LineCollection from contour invisible, but I don't have time now to come up with an example. Eric > > Thank you! > > Andrea. > > "Imagination Is The Only Weapon In The War Against Reality." > http://xoomer.alice.it/infinity77/ > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |