[Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread konstellationen
Hi, I am making plots for a publication using matplotlib which requires the use of heavy fonts. I am rendering text in the graph with Latex, which has a limited capability to make fonts more heavy. I partially solved the problem using the \boldmath Latex command for the axis-labels and text

Re: [Matplotlib-users] Problems using bar() with left containing an array of float

2010-03-26 Thread timothee cezard
Thanks Friedrich, I though the width was calculated on the fly. does it make sense to use something like plt.bar(bins, nb_per_bin, width=(max(bins)-min(bins)) / (1.5*len(bins))) If I want something more generic Tim Friedrich Romstedt wrote: You must give a proper :param width: argument:

[Matplotlib-users] imshow is incorrect at the bottom axis

2010-03-26 Thread Konstantin Klementiev
* The problem is universally seen on WinXP, WinVista and Ubuntu 9.10. * print matplotlib.__version__ = 0.99.1 * mpl was obtained from pythonxy on Windows and EPD on Linux * no customizations to matplotlibrc The attached example shows a square picture with equal settings for X and Y axes. While

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 3:06 AM, konstellationen konstellatio...@gmail.comwrote: Hi, I am making plots for a publication using matplotlib which requires the use of heavy fonts. I am rendering text in the graph with Latex, which has a limited capability to make fonts more heavy. I partially

Re: [Matplotlib-users] unconnected points

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 3:23 AM, Ruben Moor ruben.m...@gmail.com wrote: Hello, I use the following plot command plot(tdata, vdata, '.-') with an unexpected result (s. attached png). Some points are not connected. If I plot with linestyle '-' you can't even see them. Is that a known issue

Re: [Matplotlib-users] unconnected points

2010-03-26 Thread Michael Droettboom
This may be the fault of the known bug in path simplification. If you set the rcParam path.simplify to False does that resolve it? (If that's the case, this bug should be fixed in the next release). Mike On 03/26/2010 11:12 AM, Gökhan Sever wrote: On Fri, Mar 26, 2010 at 3:23 AM, Ruben

[Matplotlib-users] Setting colors for hist

2010-03-26 Thread Jeff Klukas
In the extended histogram demo: http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo_extended.html?highlight=codex%20hist Multiple data are shown in parallel with different colors, using a single hist command. These colors seem to be automatically chosen, however, and I

Re: [Matplotlib-users] unconnected points (Michael Droettboom)

2010-03-26 Thread Ruben Moor
Hello, pylab.rcParams['path.simplify'] = false did the job. Thank you very much! -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread konstellationen
You can try: xticklabels = getp(gca(), 'xticklabels') yticklabels = getp(gca(), 'yticklabels') setp(xticklabels, fontsize=14, weight='bold') setp(yticklabels, fontsize=14, weight='bold') I've tried this, but since I've set rc('text', usetex=True), the ticklabels are only responsive to fontsize

[Matplotlib-users] Strange import error

2010-03-26 Thread Ken Dere
Hi, I am trying to import pylab into an application running under an Apache wsgi server. The error I get is that if it tries to import matplotlib.cbook. The application can import numpy, scipy etc just fine. the error message is that matplotlib has no module cbook. I can import matplotlib

Re: [Matplotlib-users] Setting colors for hist

2010-03-26 Thread Jeff Klukas
I was not aware of color cycles, but it looks like this is the way to go about solving my problem. Below is an example that actually works. -- import pylab as P mu, sigma = 200, 25 x0 = mu + sigma*P.randn(1) x1 = mu + sigma*P.randn(7000) x2 = mu +

Re: [Matplotlib-users] Strange import error

2010-03-26 Thread Rune V . Sjøen
Hi, Does the box have multiple python versions installed, and are you sure that apache is using the same version and/or site packages as when you run it from the command line ? Regards, Rune V. Sjøen On Fri, Mar 26, 2010 at 8:07 PM, Ken Dere kpd...@verizon.net wrote: Hi, I am trying to

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 12:42 PM, konstellationen konstellatio...@gmail.com wrote: You can try: xticklabels = getp(gca(), 'xticklabels') yticklabels = getp(gca(), 'yticklabels') setp(xticklabels, fontsize=14, weight='bold') setp(yticklabels, fontsize=14, weight='bold') I've tried this,

Re: [Matplotlib-users] Problems using bar() with left containing an array of float

2010-03-26 Thread Friedrich Romstedt
2010/3/26 timothee cezard tcez...@staffmail.ed.ac.uk: does it make sense to use something like plt.bar(bins, nb_per_bin, width=(max(bins)-min(bins)) / (1.5*len(bins))) I think that should work, although you should use (max(bins) - min(bins) / 1.5 / (len(bins) - 1), but I would suggest: bounds

[Matplotlib-users] SciPy 2010 Tutorials: brainstorming and call for proposals

2010-03-26 Thread Brian Granger
Greetings everyone, This year, there will be two days of tutorials (June 28th and 29th) before the main SciPy 2010 conference. Each of the two tutorial tracks (intro, advanced) will have a 3-4 hour morning and afternoon session both days, for a total of 4 intro sessions and 4 advanced sessions.

[Matplotlib-users] Making a data-driven colormap

2010-03-26 Thread Ariel Rokem
Hi everyone, I am trying to make a color-map which will respond to the range of values in the data itself. That is - I want to take one of the mpl colormaps and use parts of it, depending on the range of the data. In particular, I am interested in using the plt.cm.RdYlBu_r colormap. If the data