Hi,
I think there is a good reason to add the functionality to plot
pre-computed histograms to hist() or to a new function with similar API.
Sometimes histograms are heavy or we don't want to recompute them to
perform a series of plots.
In this case, I miss the ability to easily set the plot sty
ave negligible power content before you get to the Nyquist frequency,
> usually by applying an analog filter to the data, or otherwise knowing that
> it cannot have undesired high frequency content.
>
>
>
> *From:* Antonino Ingargiola [mailto:trite...@gmail.com]
> *Sent:* Wedn
Hi to all,
I'm computing some spectrograms using the convenient functions defined in
matplotlib.mlab.
I found something that I don't completely understand. In computing the PSD
the onesided power spectrum is scaled by a factor of 2 except for the first
and the last bin:
https://github.com/matplo
Hi to all,
I'm doing a simple animation like this:
--
ion()
x = arange(0,2,0.01)
y = zeros_like(x)
y[45:55]=1
l, = plot(x,y)
D = 0.1
h = x[1]-x[0]
dt = 0.0001;
def nabla(v,h):
na = zeros_like(v)
na[1:-1] = (v[2:]-2*v[1:-1]+v[:-2])
na[0],na[-1] = 0,0
return na/(h**2)
for i in ra
indow resizing.
Furthermore the MPL navigation toolbar is modified through the addition of two
custom buttons.
2009 (C) Antonino Ingargiola
Licence: GNU GPL v2 or later.
"""
from time import sleep
import gtk
import gobject
import numpy as np
from matplotlib.figure import Figure
from
HI to the list,
I'm playing with blit animations in a gtk window. Looking at MPL
examples I came up with a working example (attached) that shows a sin
wave with a play toggle button and a "scale" button that changes the
axis limits. In order to plot the first frame (before play is clicked)
and to
Hi,
2007/10/29, Darran Edmundson <[EMAIL PROTECTED]>:
>
> I'm trying to generate plots as textures for use within a real-time
> graphics application (written using the pythonOgre graphics engine).
> I'm brand new to matplotlib so please bear with me. Two questions, one
> easy, one possibly hard.
You can do it this way:
data = array(data)
x = arange(len(data))
plot(x[data!=0], data[data!=0])
Regards,
~ Antonio
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 expre
Hi,
2007/6/19, John Hunter <[EMAIL PROTECTED]>:
> * you may want to look at the line editor dialog in backend_gtk.py for
> inspiration. This uses drop down menus for linestyles, color dialog
> boxes to pick colors, etc... I'll paste in the code below
>
> Thanks,
> JDH
>
> class DialogLineprops
Hi,
2007/6/19, Antoine Sirinelli <[EMAIL PROTECTED]>:
> On Tue, Jun 19, 2007 at 02:12:28PM +0200, David Tremouilles wrote:
> > Pyplotsuite is another pygtk project using matplotlib.
> > It is developed by Antonino Ingargiola.
> > http://pyplotsuite.sourceforge.net/
>
Hi,
2007/5/31, Navid Parvini <[EMAIL PROTECTED]>:
> Dear All,
>
> How can I set the x-axis and/or y-axis in Log scale.
In interactive mode:
plot([1, 1e1, 1e2], [1, 1e1, 1e2])
ax = gca()
ax.set_xscale('log')
ax.set_yscale('log')
draw()
The other parameter .set_xscale and set_yscale accept is 'li
Hi,
2007/5/26, Steve Schmerler <[EMAIL PROTECTED]>:
> Jeff Whitaker wrote:
> > [EMAIL PROTECTED] wrote:
[cut]
> > I get a 600x300 png with that script, using the latest SVN.
> >
> > -Jeff
> >
>
> Me too, on Linux, mpl 0.90dev3131.
Me too with MPL 0.87.7 on Debian Etch.
~ Antonio
--
Hi,
2007/5/24, Michael Hogue <[EMAIL PROTECTED]>:
> Hi,
>
> I'm wondering how to use matplotlib to
> plot on axes that intersect at the
> origin, as in the following picture:
>
> |
> |
> |
> |
> |(0,0)
>
2007/5/11, John Hunter <[EMAIL PROTECTED]>:
> On 5/3/07, Emmanuel <[EMAIL PROTECTED]> wrote:
> > With gnuplot one can do a plot like that :
> >
> > http://www.deqnotes.net/gnuplot/images/impulses.png
> >
> > It is using option "with impulse".
> > Is there an equivalent in matplotlib?
>
>
> In [5]:
Fowarding to the list ...
-- Forwarded message --
From: Antonino Ingargiola <[EMAIL PROTECTED]>
Date: 4-mag-2007 11.12
Subject: Re: [Matplotlib-users] matplolib equivalent of gnuplot's impulse
To: Emmanuel <[EMAIL PROTECTED]>
Hi,
On 5/3/07, Emmanuel <[EMA
On 3/30/07, Richard Brown <[EMAIL PROTECTED]> wrote:
> On 30/03/07, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >
> > Not sure what region[:] is supposed to achieve. You are creating a copy
> > with the same name, so you are over-riding the original variable.
> >
>
> That doesn't seem to be t
On 4/1/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote:
> On 3/29/07, Ken McIvor <[EMAIL PROTECTED]> wrote:
[cut]
> > > The last think I'm not yet able to do is to update the colorbar to
> > > autoscale with the new incoming data. The the script that foll
Sorry for the late answer...
On 3/29/07, Ken McIvor <[EMAIL PROTECTED]> wrote:
> On Mar 28, 2007, at 6:03 PM, Antonino Ingargiola wrote:
> > On 3/28/07, Ken McIvor <[EMAIL PROTECTED]> wrote:
> >> You should probably do the acquisition asynchronously by runnin
On 3/28/07, Ken McIvor <[EMAIL PROTECTED]> wrote:
> On Mar 27, 2007, at 12:35 PM, Antonino Ingargiola wrote:
[cut]
> You should probably do the acquisition asynchronously by running it
> in a separate thread. That thread would read in the data one point
> at a time, perform
Hi to the list,
I'm searching to display in realtime some data read serial port. The
data is a 2D matrix and is read element wise from the serial, one
pixel each one (or more) seconds.
I'm running the script from "ipython -pylab" using the command "run
scriptname". After "loading" the script I i
On 3/16/07, Niklas Saers <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm quite new to Matplot. When issuing show() from Python 2.5 under
> OS X I get a nice menu bar at the bottom with home, left, right etc.
> How can I use these? I tried the different examples, and there are
> plenty of examples that open
On 3/15/07, Pellegrini Eric <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> when using matplotlib, any plot I create is displayed separately from my
> Tkinter application. Is there a direct way to embed the plot created by
> matplotlib in a widget such as a canvas using something like "create_ima
On 3/14/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote:
[cut]
Furthermore I have noted that with "usetex" ticks label are rendered
differently if they are explicitly set with set_[xy]ticklabels() or
not. Compare the ytick labels (automatic) and xtick labels (manually
set) in t
On 3/13/07, John Travers <[EMAIL PROTECTED]> wrote:
> On 13/03/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote:
[cut]
> > However the only font I know that has the superscript with the minus
> > sign is "DejaVu Sans". Anyone know a serif font (or also
On 3/13/07, John Hunter <[EMAIL PROTECTED]> wrote:
> On 3/13/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote:
>
> > 1. Use the unicode string: xlabel(u'Wavelength [μm]')
> > 2. Use mathtext: xlabel(r'$\rm{Wavelength [\mu m]}$')
> > 3. Use
On 3/13/07, Edin Salkovic <[EMAIL PROTECTED]> wrote:
> Hi Antonino,
>
> If your using the version 0.90 (or SVN) of matplotlib you can also use
> mathtext2.
>
> To enable it, put these lines in your matplotlibrc file:
> mathtext.mathtext2 : True
> mathtext.nonascii : FreeSerif.ttf # Or any unicode
On 3/13/07, John Travers <[EMAIL PROTECTED]> wrote:
> On 13/03/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote:
> > 1. This method works ok as far as I choose a unicode font with the
> > greek letters, for example:
> >
> > rcParams['font.serif
Sorry for the previous mail I've hit Send for error before the mail
was complete.
Here it is the complete mail:
Hi to the list,
I'm using matplotlib to generate graphs during my master thesis. I
want to thank all the developer for providing such flexible tool.
In some plots I have to put greek
Hi to the list,
I'm using matplotlib to generate graphs during my master thesis. I
want to thank all the developer for providing such flexible tool.
In some plots I have to put greek letters (or sometimes small fomulas)
as axis label. I've found three way to accomplish this:
1. Use the unicode s
29 matches
Mail list logo