Re: [Matplotlib-users] weird matplotlib imread question for png

2015-04-16 Thread oyster
Firstly, thanks, Fabrice Silva I have checked my picture files again. For python-gray.png, now it is attacched here or can be downloaded from http://bbs.blendercn.org/data/attachment/forum/201504/16/222351w3952n3o9968m9a5.png. xnview says it is 128*128*8, but print

Re: [Matplotlib-users] weird matplotlib imread question for png

2015-04-16 Thread oyster
Two 8bpp(Gimp, xnview say so) graylevel png files can be downloaded The first (ramp-gray.png) which gives right array shape is http://bbs.blendercn.org/data/attachment/forum/201504/17/090627ejhixti8vdthdnnn.png The second one (python-gray.png) which gives 'wrong' array shape, at least to me, is

[Matplotlib-users] weird matplotlib imread question for png

2015-04-14 Thread oyster
I am using anaconda(Python 2.7.6 |Anaconda 1.9.2 (32-bit)| (default, Nov 11 2013, 10:50:31) [MSC v.1500 32 bit (Intel)] on win32) on windows 7 64 bits And the matplotlib is 1.4.3, numpy is 1.9.2, and scipy is 0.15.1, which are all been updated by 'conda update xx' As

[Matplotlib-users] how to use non-western characters in xkcd style?

2014-09-26 Thread oyster
hi, all following is a simple plot. however, if I turn on xkcd(), the legend shows Chinese as ??. I think this is because the Chinese characters can not be found in a western font. Is there a way to fix this? thanks [code begin] #coding=utf-8 import math from pylab import * x=range(0,

[Matplotlib-users] why legend does not show in matplotlib-1.2.1 py2.7

2013-05-22 Thread oyster
the following code runs ok with py2.4 and matplotlib.0.98.3 however no legend appears with py2.7.3 and matplotlib-1.2.1/1.3. and I get [quote] e:\prg\py\python-2.7.3\lib\site-packages\_matplotlib\matplotlib\legend.py:629: U serWarning: Legend does not support [matplotlib.patches.Wedge object at

[Matplotlib-users] sketch bar?

2010-05-07 Thread oyster
I know matplotlib mimics matlab, which offers scientific look. but can we use matplotlib to get a skecth(in other words, hand-drawing) style for bar/pie/etc in none formalist paper? for example, http://teethgrinder.co.uk/open-flash-chart/gallery-bar-7.php thanks