[Matplotlib-users] using STIX sans serif fonts for non-mathtext

2010-02-27 Thread j s oishi
Hi, I am a fan of the STIX sans serif typeface for mathtext, but I was wondering if it was possible to use this typeface for non-mathtext text as well. My main use for this is ticklabels, which seem to render in the non-mathtext font no matter what I do. I have tried using ax.xaxis.set_major_form

Re: [Matplotlib-users] mplot3d stays?

2010-02-27 Thread Friedrich Romstedt
http://www.friedrichromstedt.org/python/pyclip/a01.Zerteilung.pdf (It's unfortunately in german, but the graphics are self-explaining) A school mate working together with me on the project has worked that out. H = number of corners of the front triangle lying inside of the back triangle V = numbe

[Matplotlib-users] Optimal positioning of text

2010-02-27 Thread Andrea Gavana
Hi All, I am trying to visualize some more text in an already rather crowded 2D plot. As this new information I want to display is optional (it depends on a use choice) but possibly very useful as information, I would like to add it as text inside my plot, and possibly to add it in a "smart" w

Re: [Matplotlib-users] imshow size limitations?

2010-02-27 Thread David Goldsmith
Hi, folks! I'm again encountering the problem - imshow generating a MemoryError exception trying to image a very large array - discussed in this thread I started almost a year and a half ago. Question 1) has anything changed in MPL in that time interval which would provide an "easy" solution? Qu

Re: [Matplotlib-users] TeX and the PDF Backend

2010-02-27 Thread Jae-Joon Lee
I believe it is not just the size of font but the font itself should match. Depending on your setting, the tex file generated by matplotlib include preambles related with font setting. For example, below is mine. \documentclass{article} \usepackage{type1cm} \renewcommand{\rmdefault}{pnc} \usepacka

Re: [Matplotlib-users] Cannot change the fontsize in table.

2010-02-27 Thread Jae-Joon Lee
It seems that you must turn off autoFontsize first. the_table.auto_set_font_size(False) then change th font size. the_table.set_fontsize(10) -JJ On Thu, Feb 25, 2010 at 12:48 PM, afancy wrote: > Hi, > > I want to generate a graph with line, and table at the bottom. However, I > found that th

Re: [Matplotlib-users] Cursor?

2010-02-27 Thread Jae-Joon Lee
Did you try to turn off "useblit" option? As mentioned in the comment, that option is only supported in the agg backend. Regards, -JJ On Thu, Feb 25, 2010 at 10:45 PM, David Arnold wrote: > All, > > I tried this code from:   > http://matplotlib.sourceforge.net/examples/widgets/cursor.py > > fr

Re: [Matplotlib-users] Optimal positioning of text

2010-02-27 Thread Jae-Joon Lee
On Sat, Feb 27, 2010 at 12:29 PM, Andrea Gavana wrote: > This code is not doing anything useful as I always get a badness of 0, > although I can see that the new text overlaps quite a lot of other > artists. > > Does anyone have some suggestion on how to improve the code? > A snippet of code seld

Re: [Matplotlib-users] Optimal positioning of text

2010-02-27 Thread Andrea Gavana
On 28 February 2010 01:18, Jae-Joon Lee wrote: > On Sat, Feb 27, 2010 at 12:29 PM, Andrea Gavana > wrote: >> This code is not doing anything useful as I always get a badness of 0, >> although I can see that the new text overlaps quite a lot of other >> artists. >> >> Does anyone have some suggest

Re: [Matplotlib-users] Optimal positioning of text

2010-02-27 Thread Jae-Joon Lee
If I read your correctly, for l, b in zip(x, y): # And here I work with data coordinates (!) dashBox = Bbox.from_bounds(l, b, width+5, height+5) badness = 0 for line in lines: if line.intersects_bbox(dashBox): b

Re: [Matplotlib-users] imshow size limitations?

2010-02-27 Thread Ryan May
On Sat, Feb 27, 2010 at 2:23 PM, David Goldsmith wrote: > Question 2) is there some way I can add pieces of the array incrementally to > the image into their proper place, i.e., modify the following code: > >     ax.imshow(image[0:ny/2+1, 0:nx/2+1]) # upper left corner of image >     ax.hold(True)

Re: [Matplotlib-users] mplot3d stays?

2010-02-27 Thread Ben Axelrod
Interesting, but I think subdividing triangles like this is unnecessary. For most cases, when one triangle completely covers the other, all that is required it to Z order the triangles. This is what mplot3d does already. The only case we have yet to handle is when one triangle "pierces" the o

[Matplotlib-users] display image as (r, g, b) from a (3xMxN) nympy.array

2010-02-27 Thread Massimo Di Stefano
Hi All, i've data store in a multydimension numpy.array, it is composed by 3 MxN normalized (0 - 1) array but tring to display it using "imshow" i get an error, " TypeError: Invalid dimensions for image data " please can you help me to fix this problem ? my data is : In [119]: dd[0] Out[11

Re: [Matplotlib-users] display image as (r, g, b) from a (3xMxN) nympy.array

2010-02-27 Thread Ryan May
On Sat, Feb 27, 2010 at 11:04 PM, Massimo Di Stefano wrote: > Hi All, > > i've data store in a multydimension numpy.array, > it is composed by 3 MxN normalized (0 - 1) array > but tring to display it using "imshow" i get an error, > " TypeError: Invalid dimensions for image data " > please can you