[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 h

[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. T

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

2010-03-26 Thread Friedrich Romstedt
2010/3/26 timothee cezard : > 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 = {some N + 1 array} cent

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

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 12:42 PM, konstellationen 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, but sinc

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 wrote: > Hi, > > I am trying to import pylab into an

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 + sigma*P.ran

[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 OK

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

[Matplotlib-users] little help with timeseries and spans

2010-03-26 Thread David Carmean
I need help finding the right path to accomplish some custom "visual masking" and corresponding array-mask construction: For much of what I need, scikits.timeseries initially sounded useful but either I misunderstand how to use it, or it just can't do most of what I want, which is: 1: create

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® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune appl

[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 cannot

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 Mo

Re: [Matplotlib-users] unconnected points

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 3:23 AM, Ruben Moor 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 ? What do I

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

2010-03-26 Thread Gökhan Sever
On Fri, Mar 26, 2010 at 3:06 AM, konstellationen wrote: > 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

[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 the

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] unconnected points

2010-03-26 Thread Ruben Moor
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 ? What do I do wrong ? <>--

[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 insi