Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread Alan G Isaac
On 12/1/2008 7:27 PM Mike Hearne apparently wrote: > The long answer is: I have a map with a varying background. I'd like to be > able to create a white drop-shadow behind darker text, so that the text can stand out reasonably clearly against most colored backgrounds. OK. I can imagine thi

Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread Mike Hearne
The long answer is: I have a map with a varying background. I'd like to be able to create a white drop-shadow behind darker text, so that the text can stand out reasonably clearly against most colored backgrounds. The short answer is that my customers want it. --Mike Alan G Isaac <[EMAIL P

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Fago, Matt - AES
> From: Ryan May [mailto:[EMAIL PROTECTED] > Fago, Matt - AES wrote: > > I suppose the issue is: what is correct? Or is it a matter of > definition? [...] > Yeah, scaling by a factor of two for one-sided is definitely correct now > that I think about it. Note, however, that the scaling by the leng

Re: [Matplotlib-users] Toggling points and legends

2008-12-01 Thread Mauro Cavalcanti
Dear Ryan, Thank your very much for your kind reply. I had already a couple of solutions to that problem, and your adds nicely to them! I am very grateful to everyone who have been so helpful and can assure you will also be formally acknowledged at the conclusion of this project. With warmest re

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
Fago, Matt - AES wrote: > I suppose the issue is: what is correct? Or is it a matter of definition? > > I don't have Stoica and Moses, but Bendat and Piersol eqn 11.102: > > One_Sided_PSD = 2/(n_d * N * dt) * Sum(FFT^2) > > where there are n_d is the number of averages and N is the number of

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-01 Thread Xavier Gnata
John Hunter wrote: > On Mon, Dec 1, 2008 at 1:08 PM, Eric Emsellem > <[EMAIL PROTECTED]> wrote: >> Hi >> >> this may be a known problem (didn't find anything on this issue) but here it >> is: >> >> - when I start a session with "ipython -pylab" I often get crashes with my >> session. When I mean "

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Fago, Matt - AES
I suppose the issue is: what is correct? Or is it a matter of definition? I don't have Stoica and Moses, but Bendat and Piersol eqn 11.102: One_Sided_PSD = 2/(n_d * N * dt) * Sum(FFT^2) where there are n_d is the number of averages and N is the number of points in the FFT. That seems to be

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 3:40 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: > I appreciate the work you're doing on this, and while I don't have any > very strong opinions on the API questions you raise, I would request > that you include in the docstrings information at least at the level of > the ab

Re: [Matplotlib-users] Toggling points and legends

2008-12-01 Thread Ryan May
Mauro Cavalcanti wrote: > Dear ALL, > > Is there any example of toggling points on and off a MPL Basemap? I > see that there matplotlib artists have a handy "set_visible()" method, > but if I have a map with plotted points and use > "ax.set_visible(False)", the entire map is made invisible! Sorry

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Andrew Straw
Ryan May wrote: > Fago, Matt - AES wrote: >> I cannot really compute the example without the pad_to support in svn. >> Nevertheless, using something similar (nfft=128, noffset=64) gives similarly >> erroneous results. >> >> Did you add 'pad_to'? If so, thanks! > > Good to know. I recently (withi

Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread twentypoundtrout
Alan G Isaac wrote: > > Mike Hearne wrote: > > Along similar lines, has anyone figured out a way to have a drop shadow > effect for text on a plot? > > Out of curiosity, what is the payoff > (in communication or aesthetics) > of such a thing? > > I don't think that it communicates any more

Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 2:43 PM, twentypoundtrout <[EMAIL PROTECTED]> wrote: > So there is no way to say plot a line. Grab that image. Apply a standard > SVG filter (like Gaussian). And overlay the blur? I do not know the PIL > well enough to know if this is feasible. You can do this using an e

Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread Alan G Isaac
Mike Hearne wrote: > Along similar lines, has anyone figured out a way to have a drop shadow > effect for text on a plot? Out of curiosity, what is the payoff (in communication or aesthetics) of such a thing? Thanks, Alan Isaac -

Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread Mike Hearne
Along similar lines, has anyone figured out a way to have a drop shadow effect for text on a plot? twentypoundtrout <[EMAIL PROTECTED]> 12/01/08 01:43 PM To matplotlib-users@lists.sourceforge.net cc Subject Re: [Matplotlib-users] plot with drop shadow John Hunter-4 wrote: > > On Mo

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
Fago, Matt - AES wrote: > I cannot really compute the example without the pad_to support in svn. > Nevertheless, using something similar (nfft=128, noffset=64) gives similarly > erroneous results. > > Did you add 'pad_to'? If so, thanks! Good to know. I recently (within the last month) did a bu

Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread twentypoundtrout
John Hunter-4 wrote: > > On Mon, Dec 1, 2008 at 9:17 AM, Nate <[EMAIL PROTECTED]> wrote: >> Is there a way to plot lines with drop shadows? >> > > Nothing built-in -- but you can fake it:: > > import matplotlib.pyplot as plt > import numpy as np > > t = np.arange(0.0, 2.0, 0.01)

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 1:08 PM, Eric Emsellem <[EMAIL PROTECTED]> wrote: > Hi > > this may be a known problem (didn't find anything on this issue) but here it > is: > > - when I start a session with "ipython -pylab" I often get crashes with my > session. When I mean "often", it means really often

Re: [Matplotlib-users] Ovality of a perturbed circular path

2008-12-01 Thread Matt Foster
On Wed, Nov 26, 2008 at 7:11 AM, Nils Wagner <[EMAIL PROTECTED]> wrote: > Hi all, > > I would like to visualize the ovality of a perturbed > circular path by a polar plot. > How can I improve the view wrt to scaling and ticks ? Is: from pylab import ylim, ytics figure(2) polar(theta,(r+noise)/r)

Re: [Matplotlib-users] Font sizes for web application

2008-12-01 Thread Christopher Barker
Jesper Larsen wrote: > I have a web application in which I would like to scale the plots down > if the users horizontal screen size is less than 800. http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA

[Matplotlib-users] pylab or not... crashes or not

2008-12-01 Thread Eric Emsellem
Hi this may be a known problem (didn't find anything on this issue) but here it is: - when I start a session with "ipython -pylab" I often get crashes with my session. When I mean "often", it means really often like once everything 1/2h or so. A crash means that the command I just sent gets stuck

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
Ryan May wrote: > Fago, Matt - AES wrote: >> I found bug number 1859027 and have appended the below to the bug report. >> >> When is the next release due and how likely is this to get fixed? I >> might have time myself >> to help in a week or so, but would appreciate some help if someone >> else

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
Fago, Matt - AES wrote: > I found bug number 1859027 and have appended the below to the bug report. > > When is the next release due and how likely is this to get fixed? I might > have time myself > to help in a week or so, but would appreciate some help if someone else has > time too (who > has

Re: [Matplotlib-users] Make markers in legend to appear only once

2008-12-01 Thread Manuel Metz
Manuel Metz wrote: > Alejandro Weinstein wrote: >> On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz <[EMAIL PROTECTED]> wrote: >>> You can use the keyword "numpoints" in the legend method: >> Thank you! It did the trick. >> >> Now how you conclude that from the documentation is a mystery: >> >> >From th

Re: [Matplotlib-users] Plotting edges between nodes

2008-12-01 Thread twentypoundtrout
Mauro Cavalcanti wrote: > > The above code works quite well. However, I do *not* want to have the > plot done for each edge inside the for loop; instead, I would like to > have the x,y points stored for being plotted at once, using a plot > command issued outside the loop. It seems that it could

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Fago, Matt - AES
I found bug number 1859027 and have appended the below to the bug report. When is the next release due and how likely is this to get fixed? I might have time myself to help in a week or so, but would appreciate some help if someone else has time too (who has looked at the source before...) Tha

Re: [Matplotlib-users] Save a plot background

2008-12-01 Thread Jeff Whitaker
Hrafnkell Pálsson wrote: > Any chance of further help? > John? > > Hrafnkell > Hrafnkell: I'm pretty sure this is a fundamental limitation of canvas.restore_region - everything gets draw on top of it. If I recall correctly, you'd like to save the map with coastlines drawn, and just redraw co

Re: [Matplotlib-users] plot with drop shadow

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 9:17 AM, Nate <[EMAIL PROTECTED]> wrote: > Is there a way to plot lines with drop shadows? > Nothing built-in -- but you can fake it:: import matplotlib.pyplot as plt import numpy as np t = np.arange(0.0, 2.0, 0.01) s = np.sin(2*np.pi*t) fig = plt.figu

Re: [Matplotlib-users] Make markers in legend to appear only once

2008-12-01 Thread Manuel Metz
Alejandro Weinstein wrote: > On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz <[EMAIL PROTECTED]> wrote: >> You can use the keyword "numpoints" in the legend method: > > Thank you! It did the trick. > > Now how you conclude that from the documentation is a mystery: > >>From the docs: > " > numpoints:

[Matplotlib-users] plot with drop shadow

2008-12-01 Thread Nate
Is there a way to plot lines with drop shadows? Thanks, Nate - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand

Re: [Matplotlib-users] Make markers in legend to appear only once

2008-12-01 Thread Alejandro Weinstein
On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz <[EMAIL PROTECTED]> wrote: > You can use the keyword "numpoints" in the legend method: Thank you! It did the trick. Now how you conclude that from the documentation is a mystery: >From the docs: " numpoints: integer The number of points in the lege

Re: [Matplotlib-users] Make markers in legend to appear only once

2008-12-01 Thread Manuel Metz
Alejandro Weinstein wrote: > Hi: > > I am plotting using markers, in a similar way than this example: > > http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo2.html > > As you can see in the example above, the markers in the legend appear > twice: " 'green circle' 'green circle'

[Matplotlib-users] Make markers in legend to appear only once

2008-12-01 Thread Alejandro Weinstein
Hi: I am plotting using markers, in a similar way than this example: http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo2.html As you can see in the example above, the markers in the legend appear twice: " 'green circle' 'green circle' oscillatory". Is it possible to make the

Re: [Matplotlib-users] plot_date - extra values added that are not inmy data

2008-12-01 Thread Sunnje L Basedow
Hi, I'm also new to matplotlib and am still wrestling with my figures Have you tried: axis('tight') but that will also affect the yaxis. Or: set_xlim(valmin, valmax) Don't know if it works with date though. Good luck! Sünnje -Original Message- From: Richard Martin [mailto:[EMAIL PRO

Re: [Matplotlib-users] Save a plot background

2008-12-01 Thread Hrafnkell Pálsson
Any chance of further help? John? Hrafnkell -- View this message in context: http://www.nabble.com/Save-a-plot-background-tp20519596p20771515.html Sent from the matplotlib - users mailing list archive at Nabble.com. - Thi

Re: [Matplotlib-users] Plotting histograms with zero counts

2008-12-01 Thread Manuel Metz
Manuel Metz wrote: > Yang Zhang wrote: >> Hi, when I do: >> >>hist([0,0,0], bins=10, range=(0,10)) >> >> How come the single bin takes up the entire plot? Same with just two >> values, or anything less than 10 - the two bars take up the entire plot, >> no matter what I plug in for range. I'

Re: [Matplotlib-users] Plotting histograms with zero counts

2008-12-01 Thread Manuel Metz
Yang Zhang wrote: > Hi, when I do: > >hist([0,0,0], bins=10, range=(0,10)) > > How come the single bin takes up the entire plot? Same with just two > values, or anything less than 10 - the two bars take up the entire plot, > no matter what I plug in for range. I'd just like 10 bins, from