From: Chao Y. <cha...@gm...> - 2011-05-18 16:49:28
|
Dear all, When making plots, you want an log transfer of axis, but there are data whose value is zero, at this time matplotlib prompts "Cannot take log of nonpositive value", but in most cases maybe you just want to check if the log axis make the plot more nice-looking. So is it possible just change the function to make it accept zero value when making log transfer and set the the zero value on the log-transfered plot remain as zero? By this way we don't have to change the zero value in the data to a very small value just for realizing the axis log transfer? My matplotlib version is 0.91.2, Maybe in the new versions this has already been done? much thanks, Chao -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 77 30 Portable Phone (Mobil phone) : (33) 07 60 54 23 71 ************************************************************************************ |