Re: [matplotlib-devel] Unicode to Tex symbols, Type1 names, and vice versa

2006-06-23 Thread Edin Salković
Look what happened to my beautiful code :( '''A script for seemlesly copying the data from the stix-tbl.ascii* file to a set of python dicts. Dicts are then saved to .py coresponding files, for later retrieval. Currently used table file: http://www.ams.org/STIX/bnb/stix-tbl.ascii-2005-09-24 '''

Re: [matplotlib-devel] Unicode to Tex symbols, Type1 names, and vice versa

2006-06-23 Thread Edin Salković
Thanks John and Fernando, You're right. I'll change the scripts to generate pure Python modules, but I'll leave the "manual" module. As for Unicode, I fully understand what you mean John, and I'm planing to try to get mathtext to work with the fonts I mentioned to you a while ago: http://canopus.

[matplotlib-devel] One short question

2006-06-23 Thread Edin Salković
In the Non-PostScript font classes in mathtext.py the set_canvas_size is def set_canvas_size(self, w, h): 'Dimension the drawing canvas; may be a noop' self.width = int(w) self.height = int(h) for font in self.fonts.values(): font.set_bitmap_size(int(w), int(h)) While in th

Re: [matplotlib-devel] patches for: bar() and barh() ignore rcparams patch.facecolor and patch.endcolor

2006-06-23 Thread John Hunter
> "Martin" == Martin Spacek <[EMAIL PROTECTED]> writes: Martin> Whoops. Forgot to include the patches for CHANGELOG and Martin> API_CHANGES. I updated barh_demo.py as well, and tested Martin> the rest of the bar demos. Here's the combined patch Martin> against 2515. Martin

Re: [matplotlib-devel] patches for: bar() and barh() ignore rcparams patch.facecolor and patch.endcolor

2006-06-23 Thread Martin Spacek
Whoops. Forgot to include the patches for CHANGELOG and API_CHANGES. I updated barh_demo.py as well, and tested the rest of the bar demos. Here's the combined patch against 2515. Sorry for the hassle, I'm a bit new at this. Cheers, Martin John Hunter wrote: "Martin" == Martin Spacek <[EMAIL

Re: [matplotlib-devel] patches for: bar() and barh() ignore rcparams patch.facecolor and patch.endcolor

2006-06-23 Thread John Hunter
> "Martin" == Martin Spacek <[EMAIL PROTECTED]> writes: Martin> Ah, I was just working off the axes.py file from Martin> viewcvs. I've checked out now from /trunk/matplotlib/ Martin> (using tortoise svn). Hopefully this new patch file will Martin> work. Making progress - I was

Re: [matplotlib-devel] patches for: bar() and barh() ignore rcparams patch.facecolor and patch.endcolor

2006-06-23 Thread Martin Spacek
John Hunter wrote: > I can live with that -- did you test your work with the table_demo? I just tried table_demo, looks good, bars are nicely centered (had to set my rcparams axes.hold to True to get all four colours of bars). I'm having trouble applying your patch because of the way the file

Re: [matplotlib-devel] Unicode to Tex symbols, Type1 names, and vice versa

2006-06-23 Thread Fernando Perez
On 6/23/06, John Hunter <[EMAIL PROTECTED]> wrote: > > "Edin" == Edin Salkovi§ <[EMAIL PROTECTED]> writes: > Edin> The reason why I used pickle - from the Python docs: = > > I have had bad experiences in the past with pickle files created with > one version that don't load with another.

Re: [matplotlib-devel] Unicode to Tex symbols, Type1 names, and vice versa

2006-06-23 Thread John Hunter
> "Edin" == Edin Salkovi§ <[EMAIL PROTECTED]> writes: Edin> I thought that the idea was to allow users to write unicode Edin> strings directly in TeX (OK, this isn't much of an excuse No, this is not the reason. Someone may want to do that one day so it is good to keep the possibilit

Re: [matplotlib-devel] Unicode to Tex symbols, Type1 names, and vice versa

2006-06-23 Thread John Hunter
> "Edin" == Edin Salkovi§ <[EMAIL PROTECTED]> writes: Edin> The reason why I used pickle - from the Python docs: = I have had bad experiences in the past with pickle files created with one version that don't load with another. I don't know if that is a common problem or if others have

Re: [matplotlib-devel] patches for: bar() and barh() ignore rcparams patch.facecolor and patch.endcolor

2006-06-23 Thread John Hunter
> "Martin" == Martin Spacek <[EMAIL PROTECTED]> writes: Martin> I suppose I'm a bit jaded towards edges because I tend to Martin> make histograms and not bar graphs, but we can have it Martin> both ways. I can live with that -- did you test your work with the table_demo? Mart

Re: [matplotlib-devel] Unicode to Tex symbols, Type1 names, and vice versa

2006-06-23 Thread Edin Salković
On 6/22/06, John Hunter <[EMAIL PROTECTED]> wrote: > Since you asked :-) > > I may not have mentioned this but the style conventions for mpl code > are > > functions : lower or lower_score_separated > variables and attributes : lower or lowerUpper > classes : Upper or MixedUpper OK > Also,