mathtext and postscript backend

       Hello, I have a problem to obtain a good ps file

    > (with mathematical symbol) with matplotlib. That's work
    > very good with a png file but not with a postscript.

    > I tried to define the TTFPATH and AFMPATH but that change
    > nothing. I think that I miss one configuration somewhere
    > but I can't arrive to find what...

    > Thank you for this soft, I just begin to use but it's
    > seems very interesting

I haven't yet added mathtext to the postscript backend, though I will
as soon as I get the time. See the mathtext documentation at
http://matplotlib.sf.net/matplotlib.mathtext.html for the latest
information about mathtext, which backends it works on, etc...

mathtext is designed around the BaKoMa truetype fonts. There are also
postscript versions of these fonts. Paul Barrett has been working on
unifying the interface between AFM (postscript) and truetype fonts,
but we're not there yet. When this is done, it will be easier to
rewrite mathtext to work with either kind of font. Another
possibility is to modify the postscript backend to use postscript
level 3, which supports truetype fonts. This would be very nice
because it would improve compatibility between the postscript, image
and GUI backends.

Another thing that needs to be done is to add image support to the
postscript backend (draw_image). This shouldn't be too hard. The
matplotlib freetype module ft2font has a method to get the font raster
as a bitmap, which could be placed on the PS canvas with draw_image.
This wouldn't be an ideal solution because it's not scalable, but it
would be a fairly easy temporary solution.

Volunteers welcome!
JDH

Hi everyone:

I was wondering whether it is possible to tell matplotlib how/when to connect data points. Consider this simple script:

from matplotlib.matlab import *
figure(1)
t = [0,1,2,3,4,5,105,106,107]
s = [1,4,5,3,9,11,-5,-8,3]
plot(t, s, antialiased=False)
grid(True)
show()

There are no data points between t=5 and t=105. By default the points (5,11) and (105,-5) are connected, but I would like to tell matplotlib NOT to do so. In my case I would like to pass the plot function a variable telling it what to do. So for example would have:

plot(t, s, max_delta=40)

This would mean that the points are only to be connected if the difference between the adjacent t values is less than 40.

In my case this is relevant because sometimes there are "holes" in my data, and connecting the points makes the plots look very messy.

Would anyone find something like this useful? Would it be difficult to implement?

Thanks.
Peter