Re: Convert hexadecimal characters to ascii

2008-11-29 Thread Durand
Wow, I didn't expect so many responses! Thanks! I will have to try out all those solutions when I have access to my computer.. What I meant was that when the string was printed onto a text file, it showed lots of boxes that are usually associated with unknown characters...When I tried to work out w

Convert hexadecimal characters to ascii

2008-11-29 Thread Durand
Hi, I've got this weird problem where in some strings, parts of the string are in hexadecimal, or thats what I think they are. I'm not exactly sure...I get something like this: 's\x08 \x08Test!' from parsing a log file. From what I found on the internet, x08 is the backspace character but I'm s

Re: Overlapping axis text

2008-09-06 Thread Durand
Err...made a mistake there. days= WeekdayLocator() # every monday months = MonthLocator() # every month That doesn't change my question though. Thanks -- http://mail.python.org/mailman/listinfo/python-list

[matplotlib] Overlapping axis text

2008-09-06 Thread Durand
I got a really annoying problem with datetime graphs. The problem is that with a long range time graph, the text on the x axis keeps overlapping like here: http://durand.zephyrhosting.net/tremcs/graph_all.png Would there be any way to fix this? I was thinking of rotating the text so that there was

Re: quake like multicoloured text

2008-09-06 Thread Durand
On Sep 5, 10:32 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 05 Sep 2008 16:24:08 -0300, Durand <[EMAIL PROTECTED]> escribió: > > > > > > > I'm wondering how I could render text with PIL in which different > > parts of th

Re: quake like multicoloured text

2008-09-05 Thread Durand
Oops, I meant, "I'm wondering how I could render text with PIL in which different parts of the text are different *colours*." -- http://mail.python.org/mailman/listinfo/python-list

[PIL] quake like multicoloured text

2008-09-05 Thread Durand
I'm wondering how I could render text with PIL in which different parts of the text are different characters. This is for a game stats script where names are written like: ^1Red ^2Green ^3Yellow, etc. The problem is that I currently use text in the ImageDraw module but the only way I can think of r

Re: matplotlib: Plotting a graph against time

2008-07-20 Thread Durand
On Jul 20, 8:55 am, arsyed <[EMAIL PROTECTED]> wrote: > On Jul 19, 3:09 pm, Durand <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I'm trying to plot a simple graph against date or time using matplotlib. > > I've read about date_plot but I'm not

matplotlib: Plotting a graph against time

2008-07-19 Thread Durand
Hi, I'm trying to plot a simple graph against date or time using matplotlib. I've read about date_plot but I'm not really sure how to use it. At the moment, I have some data arranged into lists, where list1 contains x values (time) and list2 contains y values just like is needed for the normal

Re: PIL: Transparent PNGs and im.paste: ValueError: bad transparency mask

2008-07-10 Thread Durand
I posted this too soon. Converting the images to png with image magick's convert did the trick...However, I'm still not sure why I need to convert the images in the first place. Are there different types of PNGs? -- http://mail.python.org/mailman/listinfo/python-list

PIL: Transparent PNGs and im.paste: ValueError: bad transparency mask

2008-07-10 Thread Durand
Hi! I'm trying to paste a png with a transparent layer into an image using "image.paste(tesla,(20,10), tesla)" but I'm getting this error: ValueError: bad transparency mask I have used im.paste(image,box,image) sucessfully before to paste an image with transparency, however, it doesn't seem to

Re: Python & Oracle

2007-03-14 Thread Jean-Philippe Durand
So do I ! 2007/3/14, Josh Bloom <[EMAIL PROTECTED]>: > I would suggest using cx_Oracle as I have had good experience with it. > http://www.cxtools.net/default.aspx?nav=cxorlb > > -Josh > > > On 3/14/07, Facundo Batista <[EMAIL PROTECTED]> wrote: > > Hi! I need to connect to Oracle. > > > > I found