[Matplotlib-users] quiver with angles

2009-09-11 Thread n.l.o
Im a bit confused of how I should use the "quiver" plotting function. My data is 2D, a 512x512 data array, where every entry is an angle (polarimetry). I also have an array with the degree of polarization which would be nice to colour-code in to the arrows. So: How do I use my angles to control t

Re: [Matplotlib-users] segfault on plot

2009-09-11 Thread Dave
Eric Firing writes: > > Dave wrote: > > I upgraded my numpy to 1.4.0.dev7375 and scipy to 0.8.0.dev5920. After > > doing so I get a segfault upon calling the plot command (see below) > > What happens if you simply do > > x = randn(100) > > or > > plot([1,2,3,2,1]) > > > My guess is that yo

Re: [Matplotlib-users] logarithmic colormaps for imshow

2009-09-11 Thread John [H2O]
Must be something about asking the right question... This works perfectly. For those interested, my code is now as: dmn = 0.1 dmx = 100 logspace = 10.**np.linspace(dmn, dmx, 100) clevs = logspace colmap = pyplot.get_cmap('gist_ncar') im = m.imshow(topodat,cmap=

[Matplotlib-users] Barchart with dates on X-axis

2009-09-11 Thread Alexander Bruy
Hi list, I need to plot a barchart with dates on X-axis and values on Y-axis. This barchart must show the presence or absence of some factors in a some time. I try to use the "barchart_demo.py" as example, but in my case (X-values are dates in datetime format) this not quite fit. I want to get

[Matplotlib-users] Math text produces garbage output

2009-09-11 Thread Kamran Riaz Khan
Matplotlib's built-in mathematical expression parser produces garbage output for math text: http://img3.imageshack.us/img3/8194/matplotlibmathtext.png I'm using the distribution packages from Fedora 11. I guess there's an issue with the fonts on my system but I can't figure out how to proceed wit

Re: [Matplotlib-users] Math text produces garbage output

2009-09-11 Thread Michael Droettboom
Can you add "verbose.level : debug-annoying" to your ~/.matplotlib/matplotlibrc file and send us the output produced? FWIW, I just tested the matplotlib package on FC11 and it seems to work fine on my system, so it's possibly a configuration issue. You might want to try removing for font cache

Re: [Matplotlib-users] Math text produces garbage output

2009-09-11 Thread Kamran Riaz Khan
On 09/11/2009 07:28 PM, Michael Droettboom wrote: > Can you add > > "verbose.level : debug-annoying" > > to your ~/.matplotlib/matplotlibrc file and send us the output produced? > > FWIW, I just tested the matplotlib package on FC11 and it seems to work > fine on my system, so it's possibly a co

[Matplotlib-users] Documentation

2009-09-11 Thread Sebastian Pająk
Hi Where can I download current mpl documentation in HTML format? Because there is now way to build it under win32 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your repor

Re: [Matplotlib-users] segfault on plot

2009-09-11 Thread Andrew Straw
Dave wrote: > > I resolved the issue by compiling matplotlib from source on my windows box > which I'm happy to report wasn't too difficult! It seems to work for my usual > interactive use however it segfaults when running the tests :| > > http://pastebin.com/m5ee30885 > Thanks for running this

Re: [Matplotlib-users] Math text produces garbage output

2009-09-11 Thread Michael Droettboom
The log doesn't show any actual plotting. Did you run the same example with debug-annoying turned on? Turning debugging on shouldn't change any behavior -- only output more debugging information to the console. Cheers, Mike Kamran Riaz Khan wrote: > On 09/11/2009 07:28 PM, Michael Droettboom

[Matplotlib-users] adjusting width of subplot columns

2009-09-11 Thread per freem
hi all, i have a 3x2 subplot figure, and i would like to adjust the relative width of the second column. in other words, if i have: import matplotlib.pyplot as plt plt.subplot(3, 2, 1) # plot stuff plt.subplot(3, 2, 2) # plot, etc... i want to make it so the second column occupies less width in

[Matplotlib-users] error bars getting cut off when plotting

2009-09-11 Thread per freem
hi all, i have the following simple plot using the 'errorbars' function. when i plot it, one of the error bars is cut off: from numpy import * from scipy import * from mpl_toolkits.axes_grid.axislines import SubplotZero fig = plt.figure() ax = SubplotZero(fig, 3, 2, 1) fig.add_subplot(ax) ax.axis

Re: [Matplotlib-users] quiver with angles

2009-09-11 Thread Eric Firing
n.l.o wrote: > Im a bit confused of how I should use the "quiver" plotting function. > > My data is 2D, a 512x512 data array, where every entry is an angle > (polarimetry). > I also have an array with the degree of polarization which would be nice to > colour-code in to the arrows. > So: > How do

[Matplotlib-users] Little help needed with pqt ...

2009-09-11 Thread Laurent Dufrechou
Hello, I face a very boring problem. Here is a little modified pyqt widget example found on matplotlib website. Basicaly I've just added a tab widget and inside it a matplotlib widget. Sadly, on creation the widget don't get the full size of the PA_tab widget :( BUT once I resize manually the app

[Matplotlib-users] Re :Re: Little help need ed with pqt ...

2009-09-11 Thread laurent . dufrechou
Hi Darren, Thanks for your answer. ... I've updated to matplotlib 0.99 since the last email... and the bug disappeared :) Must be a bug of previous version since I had ever added a layout to the central widget! Thanks anyway for your help! On Fri, Sep 11, 2009 at 5:52 PM, Laurent Dufrecho

Re: [Matplotlib-users] Re :Re: Little help needed with pqt ...

2009-09-11 Thread Darren Dale
I think this was fixed in 0.99 by the removal of a call to processEvents, which was causing segfaults in other contexts. On Fri, Sep 11, 2009 at 6:32 PM, wrote: > Hi Darren, > > Thanks for your answer. > ... I've updated to matplotlib 0.99 since the last email... and the bug > disappeared :) > M

[Matplotlib-users] plt.gray dont' work with plt.scatter?

2009-09-11 Thread lotrpy
Hello, Sorry for my broken english. I copy the source code from http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo.html Just Insert one line "gray()" before the last line "show()". But the picture is sitll colorful. not a gray picture. It there somethig I missed. Thanks in adva