Re: [Matplotlib-users] Repost: problem exporting mathtext to eps file in 0.91.2

2008-03-18 Thread Bernhard Voigt
eps, the > greek symbols don't show up. Confirmed on several windows machines. Python > 2.4. mpl 0.91.2. (but it worked fine under 0.90.1). Does anybody else have > this problem? > > It is starting to look like a bug. Thanks, Mark > > > On Fri, Mar 14, 2008 at 5:06 PM, Bernh

Re: [Matplotlib-users] shared xaxis and set_xticklabels([])

2008-03-14 Thread Bernhard Voigt
the set_visible method of the axis object should do the trick: ax1.get_xaxis().set_visible(False) same for ax2. bernhard On Thu, Mar 13, 2008 at 5:01 PM, Marcus Hauser < [EMAIL PROTECTED]> wrote: > Dear all, > > is it possible to use a shared xaxis for several plots and switch off > the xtic

Re: [Matplotlib-users] Repost: problem exporting mathtext to eps file in 0.91.2

2008-03-14 Thread Bernhard Voigt
what are the values of pdf and ps fonttype in your rc file? try using this: ps.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) pdf.fonttype : 3 # Output Type 3 (Type3) or Type 42 (TrueType) this includes the missing symbols into the ps/pdf file, if you choos

Re: [Matplotlib-users] Scatterplot problem

2008-02-28 Thread Bernhard Voigt
> How do I get rid of the redundant ticks on the top and right edges? pylab.gca().get_xaxis().set_ticks_postion('bottom') same for yaxis > Is there any way to stop some of my text labels from overlapping? don't know > Why is there such a big gap between the plot itself and the axes ticks?

Re: [Matplotlib-users] distinct colors in colorbar for linecollection

2008-02-25 Thread Bernhard Voigt
rs(), linecl.get_linewidth()) Thanks! Bernhard > > Eric > > Bernhard Voigt wrote: > > Dear all! > > > > I'm folowing the line_collection2.py example to create a LineCollection > > plot with a colorbar. > > How can I force the colorbar to show distin

[Matplotlib-users] distinct colors in colorbar for linecollection

2008-02-24 Thread Bernhard Voigt
Dear all! I'm folowing the line_collection2.py example to create a LineCollection plot with a colorbar. How can I force the colorbar to show distinct lines like it does in contour plots for a LineCollection plot? Thanks! Bernhard ---

Re: [Matplotlib-users] plot a histogram of relative percentage of data

2008-02-24 Thread Bernhard Voigt
Hi! You could also use the bar method and do the histogram with numpy: import numpy as n import pylab as p foo = n.random.normal(size=100) p.hist(foo, 20) p.twinx() counts, bins = n.histogram(foo, 20) counts = counts.astype(float)/len(foo) width = (bins[1]-bins[0]) * .9 p.bar(bins ,counts, width

[Matplotlib-users] STIX font baseline shifted in screen and png backend

2008-02-20 Thread Bernhard Voigt
Hi! Using the STIX fonts, the baseline of mathtext glyphs is corrupt using screen backands like GTK or TK. The problem does not appear using the ps or pdf backend. Attached is png and eps file of a semilogy plot with a mathtext xlabel. The ytick labes and the xlabel are skrewed in the png. Best w

Re: [Matplotlib-users] stix fonts don't work with ghostscript

2008-02-04 Thread Bernhard Voigt
etty > certain this is due to the size of the font file. For that reason, > Type3 is just a better option anyway, so I don't consider it a high > priority -- but if you have a use case where it really matters, > certainly let me know. > > Cheers, > Mike > > > Be

[Matplotlib-users] stix fonts don't work with ghostscript

2008-01-31 Thread Bernhard Voigt
I've been trying to use the STIXGeneral font that comes with matplotlib (my version is 0.91.1). It's rendered ok on the screen, however, when saving the fig as an eps file my postscript processor (ghostscript) can't read the font information included in the eps file (ps.fonttype 42 in config file).

Re: [Matplotlib-users] title when using subplot

2008-01-30 Thread Bernhard Voigt
Hi, I was using something like this: f = pylab.figure() f.text(.4, .95, 'My Title') # coordinates are window coordinates from 0 to 1 pylab.subplot(421) ... This could be made more robust by checking the extend and location of the subplots and length of the title... Cheers! Bernhard On 1/24/08

Re: [Matplotlib-users] semilogy question

2007-10-25 Thread Bernhard Voigt
A simple solution would be: numbers, text = yticks() mytext = ['%.2f' % n for n in numbers] yticks(numbers, mytext) If you need fancier formatting look at Ticker and Formatter API http://matplotlib.sourceforge.net/matplotlib.ticker.html For sure there's something about this in the examples as wel

Re: [Matplotlib-users] legend outside the plot

2007-08-29 Thread Bernhard Voigt
Here's a legend function which allows you to specify loc='outer right'. The part for 'outer left' doesn't work. It basically wrappes the pylab.legendmethod, it rescales the plot and sets the location of the legend to coordinates outside of the current axes. def legend(*args, **kwargs): """

Re: [Matplotlib-users] Multiple Y-axis

2007-05-22 Thread Bernhard Voigt
Is there any documentation or example presenting similar graphs ? Take a look at two_scales.py from the examples ( http://matplotlib.sourceforge.net/matplotlib_examples_0.90.0.zip) Bernhard - This SF.net email is sponsore

[Matplotlib-users] newline in mathtex

2007-05-15 Thread Bernhard Voigt
Dear all, is it possible to insert newlines in mathtex text? neither \newline, nor \\ seem to be understood: In [20]: text(.5,.5, r'$This is the first line \\ this is the second line$') Results in a single line. By the way, when there is an error in the tex string, the caching behind the scen