[Matplotlib-users] Rabinovich...

2015-05-30 Thread Prahas David Nafissian
Hello, My latest fractal music video, made with MatPlotLib. Enjoy! --Prahas https://www.youtube.com/watch?v=kh6ZLvpWr5k&feature=youtu.be -- ___ Matplotlib-users mailing list

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-27 Thread David
To clarify, this fixes the memory leak issue. -- View this message in context: http://matplotlib.1069221.n5.nabble.com/matplotlib-backends-backend-gtk3cairo-memory-leak-tp45614p45629.html Sent from the matplotlib - users mailing list archive at Nabble.com. -

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-27 Thread David
cidentally, if you're trying the script, modify the line from the first script example I sent -- the second has a horrible threads issue (due to the missing call to threads_init). Regards David -- View this message in context: http://matplotlib.1069221.n5.nabble.com/matplotlib-backends-backe

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread David Hughes
ot;__main__": gui = pyMatPlotLibTest() From: ben.v.r...@gmail.com [mailto:ben.v.r...@gmail.com] On Behalf Of Benjamin Root Sent: 26 May 2015 14:53 To: David Hughes Cc: Matplotlib Users Subject: Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak I take it that it doe

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread David Hughes
Thanks, however GTK3Agg is unimplemented in at the GTK3-end: File "c:\Python34\lib\site-packages\matplotlib\backends\backend_gtk3agg.py", line 69, in on_draw_event buf, cairo.FORMAT_ARGB32, width, height) NotImplementedError: Surface.create_for_data: Not Implemented yet. Rega

Re: [Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread David
raw(), the python memory utilisation sits at 30.8Mb (but the graph does not update of course). Thanks David -- View this message in context: http://matplotlib.1069221.n5.nabble.com/matplotlib-backends-backend-gtk3cairo-memory-leak-tp45614p45616.html Sent from the matplotlib - users mailing li

[Matplotlib-users] matplotlib.backends.backend_gtk3cairo memory leak

2015-05-26 Thread David
Hi, I seem to have a memory leak while generating a 'live' plot display. This wasn't the case for GTK2, but the example below is consuming ~800k/second (Matplotlib 1.4.3, PyGI aio-3.14.0_rev18, Windows 7 x64, python 3.4.3). I have checked the garbage collector but it doesn't show anything interesti

[Matplotlib-users] Rossler

2015-04-14 Thread Prahas David Nafissian
Hi, Here's another fractal music video, made with matplotlib: https://www.youtube.com/watch?v=ANftKlKDtXc Enjoy! --Prahas -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accor

[Matplotlib-users] Lorenz: A Composition

2015-04-01 Thread Prahas David Nafissian
Hi, For a little right brain diversion, here's what I created using matplotlib: https://www.youtube.com/watch?v=gWkFnPHbHok&feature=youtu.be Enjoy! --Prahas -- Dive into the World of Parallel Programming The Go Parallel

Re: [Matplotlib-users] Set a 3-D point?

2015-03-30 Thread Prahas David Nafissian
David Nafissian < prahas.mu...@gmail.com> wrote: > > Hi Mat-Plotters, > > I'm trying to modify the below code so that I can > set the initial conditions to (-1,0,0.5). > > The code below randomly sets the initial conditions: > > ** > >

[Matplotlib-users] Set a 3-D point?

2015-03-29 Thread Prahas David Nafissian
Hi Mat-Plotters, I'm trying to modify the below code so that I can set the initial conditions to (-1,0,0.5). The code below randomly sets the initial conditions: ** # I changed the equation -- it's not Lorenz. N_trajectories = 1 def lorentz_deriv((x, y, z), t0, aa=1.1, yy=0.87):

Re: [Matplotlib-users] Lorenz -- another Q

2015-03-11 Thread Prahas David Nafissian
Hello, Solved the write issue. I tried numpy savetxt but it chokes on 3D arrays. So I'm doing this: x_t.tofile('test3.txt',sep=" ",format="%f") Only issue -- no end-of-lines. But I can write a quick Pascal program to fix this... Once again, thanks! ---

[Matplotlib-users] Lorenz -- another Q

2015-03-11 Thread Prahas David Nafissian
Hi, Given the Lorenz code shared yesterday, is there a way to generate a log file of the x,y,z points generated? Thanks in advance. --Prahas In case you deleted the code: import numpy as np from scipy import integrate from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes

Re: [Matplotlib-users] Lorenz - solution

2015-03-10 Thread Prahas David Nafissian
tion gallery? Full credit, of course. > > > On Tue, Mar 10, 2015 at 11:30 AM, Prahas David Nafissian > wrote: >> >> Friends, >> >> I thought you'd like to see the solution. >> >> Many thanks to Jake Vanderplas for his code and teachings: >>

Re: [Matplotlib-users] Lorenz - solution

2015-03-10 Thread Prahas David Nafissian
in Root wrote: >> >> +1000!! >> >> Great job! Would you mind if I clean it up a bit and add it to the >> mplot3d/animation gallery? Full credit, of course. >> >> >> On Tue, Mar 10, 2015 at 11:30 AM, Prahas David Nafissian >> wrote: >>>

[Matplotlib-users] Lorenz - solution

2015-03-10 Thread Prahas David Nafissian
Friends, I thought you'd like to see the solution. Many thanks to Jake Vanderplas for his code and teachings: https://jakevdp.github.io/blog/2013/02/16/animating-the-lorentz-system-in-3d/ If you start a new IP Notebook session, run as your first entry: %pylab and then copy and paste the text

Re: [Matplotlib-users] Newbie Q re: Lorenz attractor

2015-03-09 Thread Prahas David Nafissian
y much useless anyway (I think draws of the axes occur > anyway regardless of the blit mode), but it is also broken for the macosx > backend, anyway. > > Cheers! > Ben Root > > On Sun, Mar 8, 2015 at 8:59 PM, Amit Saha wrote: >> >> On Mon, Mar 9, 2015 at 7:31 AM, Pr

[Matplotlib-users] Newbie Q re: Lorenz attractor

2015-03-08 Thread Prahas David Nafissian
Hi, I want to create an animation of the Lorenz attractor, plotting each new point as it is generated by the equations. So we see the graph "being drawn" over time. Also, as it is being drawn, I want to be able to rotate the screen in 3 dimensions. Will MatPlot do this on a Mac (10.8.5)? Thank

Re: [Matplotlib-users] Get contourf image as array

2014-10-16 Thread David Hoese
ther discussions in this mailing list about > how to use GDAL to rasterize a set of polygons (represented as paths), > including some links to stack-overflow questions. It isn't a complete > end-to-end solution, but the pieces are there. > > Cheers! > Ben Root > > > O

Re: [Matplotlib-users] Get contourf image as array

2014-10-15 Thread David Hoese
; > xcoords = paths.vertices.transpose()[0] > ycoords = paths.vertices.transpose()[1] > > you can then do whatever you wish with them. > > Joy > > > On Wed, Oct 15, 2014 at 9:11 PM, David Hoese <mailto:dho...@gmail.com>> wrote: > > I've been searchin

[Matplotlib-users] Get contourf image as array

2014-10-15 Thread David Hoese
I've been searching and reading through source code and google searches to see if this is possible, but no luck so far. I'm basically trying to map some data using Basemap, use contourf to map it to an image, and then put that image in a geotiff (or other format) for use in other GIS programs.

[Matplotlib-users] Scientific Python introduction

2014-09-04 Thread David Pine
install Python and these three libraries. It also includes an introduction to IPython notebooks. Corrections and suggestions for improvements are welcome. David Pine-- Slashdot TV. Video for Nerds. Stuff that matte

[Matplotlib-users] PGF backend

2013-11-20 Thread David Kremer
Hello ! I would like to have some hints about the matplotlib usage, especially the PGF/tikz backend. I use a latex document, and almost only tikz figures. I have a couple of problems with the matplotlib package. The first is the preemptive behaviour of the matplotlib package over the used font

[Matplotlib-users] Problem with matplotlib under aix 6.1

2013-09-25 Thread David Roman
this point I'm so happy !! BUT, when I want plot the array pyplot.show() I had a segmentation fault .. HELP ! My first question : Do somebody is able to plot something with matplotlib uner AIX 6.1 And HOW ??? Do you know a howtodo page to do a co

[Matplotlib-users] v.0.99.1.1 DeprecationWarning: Use the new widget gtk.Tooltip() self.tooltips = gtk.Tooltips()

2013-07-03 Thread David Jonathan Pryce Morris
I am new to python and when using Matplotlib 0.99.1.1 [Scientific Linux 6.3, Python 2.6] to plot I get the following error: /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py:621: DeprecationWarning: Use the new widget gtk.Tooltip self.tooltips = gtk.Tooltips() This is when

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread David Hoese
e - I had the impression animation is where my update would be run as a callback, with a main loop that calls me periodically. Could that fit the model I described, where a lengthy computation produces a new value every few/10s of seconds? On Mon, Mar 11, 2013 at 1:55 PM, David Hoese <mai

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread David Hoese
x.append(i) y.append(temp_y) plt.scatter(i,temp_y) i+=1 plt.draw() On Mon, Mar 11, 2013 at 10:35 AM, David Hoese <mailto:dho...@gmail.com>> wrote: Oops forgot to change the subject line. On 3/11/13 9:34 AM, David Hoese wrote: You likely need to "s

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread David Hoese
Oops forgot to change the subject line. On 3/11/13 9:34 AM, David Hoese wrote: > You likely need to "show()" the canvas. I usually do this by calling > "fig.canvas.show()" before the for loop. > Since you are using a Qt4 backend the canvas used by the figure is a &

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 82, Issue 16

2013-03-11 Thread David Hoese
You likely need to "show()" the canvas. I usually do this by calling "fig.canvas.show()" before the for loop. Since you are using a Qt4 backend the canvas used by the figure is a QWidget, the basic component of a Qt4 GUI. I don't know if there is a more matplotlib specific way of doing this, but

[Matplotlib-users] importing basemap then shapely causes error

2013-02-08 Thread David Hoese
I've asked this question on GIS stack exchange site, but thought it would be good to post here too. The SE question is here: http://gis.stackexchange.com/questions/50394/importing-matplotlib-basemap-and-shapely I have a python script that uses matplotlib's basemap and another part that uses s

Re: [Matplotlib-users] Hiding labels in a legend?

2013-01-22 Thread David Erickson
On Tue, Jan 22, 2013 at 1:20 PM, Benjamin Root wrote: > > > On Tue, Jan 22, 2013 at 1:57 PM, David Erickson > wrote: >> >> Hello- >> Prior to version 1.2 of MPL I was able to hide labels for certain >> lines in the legend by setting the label=None when plot

[Matplotlib-users] Hiding labels in a legend?

2013-01-22 Thread David Erickson
Hello- Prior to version 1.2 of MPL I was able to hide labels for certain lines in the legend by setting the label=None when plotting a line, however in 1.2 it is now showing the legend entry and visibly printing "None". Is there a workaround to hide the label? Tha

[Matplotlib-users] Fwd:

2013-01-05 Thread David Craig
http://smallshop.lt/gbwpmas.php -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tu

[Matplotlib-users] Colormap norm (vmin, vmax) based on visible part of figure

2012-12-16 Thread David Huard
orcoded based on the array attribute. So my question is if there is a builtin way to know which items of this collections are clipped so I can mask this part of the array ? Thanks a lot, David -- LogMeIn Rescue: Anywhere, A

[Matplotlib-users] create an new axis with y-offset in the same subplot

2012-12-12 Thread David Yu
Greetings, With the help of sankey-toolbox, we can plot sankey-diagrams automaticly: The position of a sankey-object is automaticly calculated based on the position of its prior-object and cannot be given manually; and when a sankey-diagram is initialized, the position of the first sankey-object w

[Matplotlib-users] histogran2d and polar axis

2012-11-21 Thread David Craig
Hi, This one has been driving me crazy all day. I have three vectors, azimuth, frequency and power, which I would like to histogram and plot on a polar axis. I can plot a scatter plot this way

[Matplotlib-users] Figure zoom crosshair color

2012-11-13 Thread David Brunell
Hello, I have what I hope is a simple question. When producing a figure/plot, I have a window which pops up with the figure inside and a few tool buttons along the bottom, including "Zoom to rectangle." Clicking the Zoom tool button, I'm presented with a black crosshair to select my zoom rectangl

[Matplotlib-users] Qt4/PySide memory leak

2012-09-24 Thread David Honcik
I've run into a large memory leak using Matplotlib with PySide and the Qt4 back end. I'm using : Python 3.2 Numpy 1.6.2 Pyside 1.1.1 (qt474) Matplotlib 1.2 (first the Capetown Group port to Python 3, then 1.2 RC2) on Windows XP 32 bit I've tried using the Python 2.7 branch of all of the ab

[Matplotlib-users] Fwd: NavigationToolbar2WxAgg Buttons Disappear

2012-08-15 Thread David Grudoski
>> (Corrects the top posting of the earlier replies, Sorry) > >> On Aug 15, 2012, at 5:17 AM, Benjamin Root wrote: >> >>> >>> >>> On Wednesday, August 15, 2012, David Grudoski wrote: >>> Hi All, >>> I'

Re: [Matplotlib-users] NavigationToolbar2WxAgg Buttons Disappear

2012-08-15 Thread David Grudoski
I'm running: Matplotlib 1.1.0 wxPython 2.9.2.4 osx-carbon (classic) Python 2.6 on Mac OSX 10.6.8 On Aug 15, 2012, at 5:17 AM, Benjamin Root wrote: > > > On Wednesday, August 15, 2012, David Grudoski wrote: > Hi All, > I've encountered this problem with the both Nav

[Matplotlib-users] NavigationToolbar2WxAgg Buttons Disappear

2012-08-14 Thread David Grudoski
works its just that the button is no longer displayed. Can any one help me fix this? Thanks David Here's the code that demonstrated the problem" ## #Start of Code# ## #!/usr/bin/env py

[Matplotlib-users] Font in figures

2012-07-12 Thread David Kremer
at, let me know. Thanks, David -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will i

[Matplotlib-users] Increasing font size in axis ticks

2012-07-05 Thread David Kremer
ticks, and found nothing in the doc. May you help ? David -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers c

[Matplotlib-users] ginput with undefined number of points

2012-06-07 Thread David Craig
Hi, I trying to define an area in a pcolor plot (several plots) using the ginput(). However since it is an irregular shape and will be different in each plot so I cant define how many points there will be before hand, I've tried the following but it requires a double click at each point, which

Re: [Matplotlib-users] Dark or inverted color scheme

2012-06-05 Thread David Smith
I got pretty good results with the code below. Note that I am reading the FLIP_COLORS from a gui checkbox. FLIP_COLORS = self.dark_background_flag.get() if FLIP_COLORS: matplotlib.rcParams['figure.facecolor'] = '0.0' matplotlib.rcParams['axes.edgecolor'] = '

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 72, Issue 25

2012-05-23 Thread Waléria Antunes David
hen replying, please edit your Subject line so it is more specific > than "Re: Contents of Matplotlib-users digest..." > > > Today's Topics: > > 1. Re: Difference in show and output file (rajtendulkar) > 2. TypeError: coercing to Unicode: need string orbuff

[Matplotlib-users] TypeError: coercing to Unicode: need string or buffer, dict found

2012-05-23 Thread Waléria Antunes David
Hi, Anyone know how to solve this error? Exception Type: TypeError Exception Value: coercing to Unicode: need string or buffer, dict found Can you help me?? See mycode: http://dpaste.com/751460/ And see my Traceback: http://dpaste.com/750773/ Thanks, -

[Matplotlib-users] basemap and fill_between()

2012-05-13 Thread David Craig
ent method? Thanks, David from mpl_toolkits.basemap import Basemap from pylab import * ### PARAMETERS FOR MATPLOTLIB : import matplotlib as mpl rcParams['font.size'] = 10. rcParams['font.family'] = 'Comic Sans MS' rcParams['axes.labelsize'] = 8. rcParams

[Matplotlib-users] Problem using barbs function

2012-05-10 Thread David Craig
Hi, I'm having a problem using matplotlibs barbs function. I'm trying to plot some wind barbs on a map created with basemap. My code is as follows, m = Basemap(llcrnrlon=-35.0,llcrnrlat=40.0,urcrnrlon=10.0,urcrnrlat=68.0, resolution='i',projection='lcc',lon_0=-12.5,lat_0=5

Re: [Matplotlib-users] symlog linear to log transition plot position?

2012-05-04 Thread David Erickson
On 5/3/2012 7:01 AM, Michael Droettboom wrote: On 05/03/2012 09:48 AM, Benjamin Root wrote: On Wed, May 2, 2012 at 3:59 PM, David Erickson <mailto:deric...@stanford.edu>> wrote: On 5/1/2012 5:41 AM, Benjamin Root wrote: On Tue, May 1, 2012 at 6:42 AM, David

Re: [Matplotlib-users] symlog linear to log transition plot position?

2012-05-02 Thread David Erickson
On 5/1/2012 5:41 AM, Benjamin Root wrote: On Tue, May 1, 2012 at 6:42 AM, David Erickson <mailto:deric...@stanford.edu>> wrote: Hi I need to use the symlog yscale in my graph, I have a lot of data that needs to be displayed linearly, with a small fraction at the upper

[Matplotlib-users] symlog linear to log transition plot position?

2012-05-01 Thread David Erickson
ke to adjust the actual vertical graph position where it crosses from linear to log (not the threshold), because right now only ~25% of the y space is being given to linear, and I'd like it to be more like 80%. Is this possible? Tha

Re: [Matplotlib-users] installing basemap

2012-04-03 Thread David Craig
: error: relink `libgeos_c.la' with the above command before installing it make[2]: *** [install-libLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/capi' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/davcra/basemap-1.0.2/geos-3.3.1/ca

[Matplotlib-users] trouble with pcolor

2012-04-01 Thread David Craig
Hi, I am trying to use pcolor to visualise three variables. For example if I have a value for z at x and a value for z at y something like [x1, x2, x3] = [z1, z2, z3] and [y1, y2, y3] = [z2, z1, z3]. Then I use meshgrid to create the grid for x and y, X, Y = meshgrid(x, y) the result is two array's

[Matplotlib-users] installing basemap

2012-03-31 Thread David Craig
GEOS_DIR to /usr/lib(not sure if this is correct). I then cd to the basemap directory and run, python setup.py install [davcra@David basemap-1.0.1]$ sudo python setup.py install [sudo] password for davcra: checking for GEOS lib in /root checking for GEOS lib in /usr checking for GEOS

Re: [Matplotlib-users] Clearing figures from memory

2012-03-24 Thread David Verelst
te a subplot ax = fig.add_subplot(nr_rows, nr_cols, plot_nr) # do all your plotting stuff here on ax # save the figure and close fig.savefig('/path/to/figure/figname.png') canvas.close() fig.clear() If interested, I can give you a more elaborate and working example of which parameters I tune how

[Matplotlib-users] Problem using plot_surface.

2012-03-23 Thread David Craig
si = ei --> 299 xs, ys, zs = zip(*points) 300 ones = np.ones(len(xs)) 301 self._vec = np.array([xs, ys, zs, ones]) ValueError: need more than 0 values to unpack WARNING: Failure executing file: thanks, David

[Matplotlib-users] move legend to the foreground

2012-03-22 Thread David Verelst
x2 ax2 ax2 ax2', zorder=22) gr2 = ax2.grid(zorder=23) # legend of the right y-axes, force high zorder leg2 = ax2.legend(loc='upper right') leg2.set_zorder(40) print '=== zorder:' print ' ax1: %i' % ax1.get_zorder() print ' ax2: %i

[Matplotlib-users] move legend to the foreground: how to use set_zorder() correctly?

2012-03-22 Thread David Verelst
i' % ax2.get_zorder() print 'leg1: %i' % leg1.get_zorder() print 'leg2: %i' % leg2.get_zorder() What am I missing here? Thanks, David -- This SF email is sponsosred by: Try Windows Azure fr

[Matplotlib-users] 3d plotting

2012-03-18 Thread David Craig
Hi, I'm using surface_plot to view the results of solving the 2d wave equation. It works fine (code is below) except I would like to add a color bar and fix the limits on the vertical axis. When I add the color bar a new one is added in every iteration instead of overwriting the previous one, anyon

Re: [Matplotlib-users] Figure save hack

2012-03-16 Thread David Verelst
la Matlab briefly popped before as well: http://groups.google.com/group/spyderlib/browse_thread/thread/bf582bac96ff875/d5e94fe9296afbe5 I think saving figures in this manner would be a nice feature for matplotlib. Thanks for sharing this! Regards, David PS: sorry to Sebastian for sending

[Matplotlib-users] draw lines in basemap

2012-02-29 Thread David Craig
Hi, I'm trying to produce a map with 12 locations marked on it and straight lines plotted between each point and all other points on the map. I have the map with the locations ok but am having trouble getting the lines. My code is below anyone know how to do this?? Thanks D from mpl_toolkits.ba

[Matplotlib-users] basemap problem

2012-02-26 Thread David Craig
eError: 'Basemap' object has no attribute 'shadedrelief' Anyone know what I did wrong Thanks David -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtua

[Matplotlib-users] surface plot

2012-02-23 Thread David Craig
Hi, I have an array defined by 3 variables p(x,z,t). I would like to produce a surface plot with colors defined by p and animate it. That is plot the value of p at all x and z, over time (t). My code to get p is below but I really have no idea how to plot this. Anyone know the best way to go a

[Matplotlib-users] x-axis ticks and labels

2012-02-09 Thread David Craig
Hi, I am trying to relabel the x-axis on a plot. I want it to have 10 evenly spaced labels ranging from 274 at zero to 283 at one increment short of the axis. My code is as follows: im.axes.xaxis.set_major_locator(py.MaxNLocator(10)) im.axes.xaxis.set_ticklabels(range(274,284)) My und

[Matplotlib-users] add a single x tick label

2012-02-08 Thread David Craig
Hi, I have a plot of a time series and I would like to add a single extra tick mark and label to the plot in a different color to the already existing tick marks. Is this possible?? Thanks, D -- Keep Your Developer Skill

Re: [Matplotlib-users] specgram memory problem

2012-02-06 Thread David Craig
uname -a gives, Linux David 3.2.2-1.fc16.i686 #1 SMP Thu Jan 26 03:38:31 UTC 2012 i686 i686 i386 GNU/Linux On Mon, Feb 6, 2012 at 6:07 PM, Benjamin Root wrote: > > > On Mon, Feb 6, 2012 at 11:59 AM, David Craig wrote: > >> I'm using a lenovo laptop with fedora 16. It h

Re: [Matplotlib-users] specgram memory problem

2012-02-06 Thread David Craig
t;> Le vendredi 03 février 2012 à 17:39 +, David Craig a >> écrit : >>> sure how to get it to plot the outputs from specgram. I use >>> specgram as follows, >>> Pxx, freqs, bins, im = plt.specgram(..) >>> what am I trying imshow?? >> &

[Matplotlib-users] Change xaxis labels

2012-02-06 Thread David Craig
Hi, I have a plot and the xaxis shows number of seconds after a start point. I would like to convert them to days anyone know how to do this. I have looked at the documentation but cant find what I need. -- Try before yo

[Matplotlib-users] specgram memory problem

2012-02-03 Thread David Craig
produce the spectrogram for a maximum of 3 days before an error occurs. I have also tried to produce a spectrogram for each day and stick them together using subplot, but I then get the error given below. Anyone know a way around this?? Thanks, David Traceback (most recent call last): File "/us

[Matplotlib-users] seconds to julian time

2012-02-01 Thread David Craig
Hi, I have a plot that covers a 10 day period on its x-axis in seconds. I would like to change it to julian days, is this possible with matplotlib and if so how do I do it?? D -- Keep Your Developer Skills Current with L

[Matplotlib-users] specgram

2012-02-01 Thread David Craig
Hi, I am trying to produce a spectrogram for my data set and am having an issue with the color map. My data is filtered between 0.02 and 1.0Hz, but specgram() produces an image in the range 0 to 10Hz. Also the color map is not set properly. I would like to have it so the colormap ranges from th

Re: [Matplotlib-users] psd

2012-01-30 Thread David Craig
an 30, 2012 at 12:13 PM, Fabrice Silva wrote: > Le lundi 30 janvier 2012 à 11:45 +, David Craig a écrit : > > Hi I have some data for a 24hr period with a sample rate of 100 > > samples/second. I want to create a power spectrum using matplotlibs > > function psd. I want it

[Matplotlib-users] psd

2012-01-30 Thread David Craig
Hi I have some data for a 24hr period with a sample rate of 100 samples/second. I want to create a power spectrum using matplotlibs function psd. I want it to have 10 minute windows with a 50% overlap, but cant seem to get the syntax right. My code is as follows: NFFT = len(data) Fs = 100 window=n

[Matplotlib-users] Grid problem?

2012-01-18 Thread David Perlman
When I try to turn on the grid for just one axis, seemingly in perfect accordance with the documentation at http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.grid it seems like there is a problem. My commands are pasted below. Am I doing this wrong? I am doing the best

[Matplotlib-users] Grid problem?

2012-01-11 Thread David Perlman
When I try to turn on the grid for just one axis, seemingly in perfect accordance with the documentation at http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.grid it seems like there is a problem. I am able to make a graph, but trying to turn on the grid for just one axi

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread David Hoese
uot;Qt4Agg")" I'm kind of a newbie, sorry. Ken On Sat, Jan 7, 2012 at 12:22 AM, David Hoese <mailto:dho...@gmail.com>> wrote: I experienced the same problem on the macosx backend, switched to Qt4Agg and no problems. import matplotlib matplotlib.

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread David Hoese
I experienced the same problem on the macosx backend, switched to Qt4Agg and no problems. import matplotlib matplotlib.use("Qt4Agg") -Dave On 1/6/12 10:08 AM, md...@stsci.edu wrote: > I suspect this bug is specific to the macosx backend. Can you switch to > another backend and confir

Re: [Matplotlib-users] matplotlib on OS X Lion or FreeBSD

2012-01-03 Thread David Welch
rly simple to set up - if you're interested I can discuss the details with you. Cheers, Dave David Welch david.m.we...@gmail.com Something you entered transcended parameters. So much is unknown. -Salon Magazine, Error Haiku Challenge On 29Dec, 2011, at 9:15 AM, Paul Beard wrote

Re: [Matplotlib-users] How to do million data-point plots with Matplotlib?

2011-12-16 Thread David Smith
es it very fast (about 5x faster than Agg backends). I also found that gnuplot can render the whole million points very fast using the 'x11' terminal. I am guessing that both matplotlib's GTK backend and gnuplot's 'x11' terminal use th

[Matplotlib-users] How can I place a table on a plot in Matplotlib?

2011-12-15 Thread David Grudoski
I'm not having any success in getting the matplotlib table commands to work. Here's an example of what I'd like to do: Can anyone help with the table construction code? Thanks import pylab as plt plt.figure() ax=plt.gca() y=[1,2,3,4,5,4,3,2,1,1,1,1,1,1,1,1] plt.plot([10,10,14,14,10],[2,4,4,2,2]

Re: [Matplotlib-users] Blitting with qt4

2011-12-15 Thread David Hoese
ting of stuff like this works. For example, if I could better understand why your bug fix was needed. On 12/15/11 10:04 AM, David Hoese wrote: > Oops forgot to change subject. > > On 12/15/11 10:02 AM, David Hoese wrote: >> Eric, >> >> I installed mpl from git ("git

Re: [Matplotlib-users] Blitting with qt4

2011-12-15 Thread David Hoese
Oops forgot to change subject. On 12/15/11 10:02 AM, David Hoese wrote: > Eric, > > I installed mpl from git ("git clone > git://github.com/matplotlib/matplotlib.git", unless I was suppose to > use one of the branches) and same problem. I looked at my code again >

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 67, Issue 23

2011-12-15 Thread David Hoese
Dave On 12/14/11 10:30 PM, Eric Firing wrote: > David, > > It works for me on linux with mpl from git. I haven't tried to figure > it out, but it is conceivable that the problem you are seeing was fixed > with this: > > commit b624546ae60dc5878e75a32f41a160d3

[Matplotlib-users] Blitting with qt4

2011-12-14 Thread David Hoese
Does anyone know if using the blit method from FigureCanvasQTAgg is not fully supported? I'm having a problem where I'm animating a plot using the blit method and I click on/activate the window the background of the figure disappears (axes and line stay visible). I'm not sure if this is just

Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread David Hoese
1 10:17 AM, Fabien Lafont wrote: > Thanks David, I start to read the Mark summerfield' book about PyQt > programming. > > In fact I realized I don't need multi-threading because I can remove > the Timer and just need to call the graphical application from the > while loop.

Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread David Hoese
an be complex > to read and to edit. Thank you very much anyway! > > How can I write a multi-thread process? I've just tried to add > qApp.processEvents() at the end of my while loop but it doesn't change > anything... > > Thanks again, > > Fabien > > 2

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread David Hoese
Yeah I didn't think about suggesting that, but I think it might get complicated. I think he would have to start a one shot timer to call a function to set the voltage. Then that function would also start another one shot timer to call another function that would read from the sample. That fu

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread David Hoese
of 2 again, that "should" stop the timer from being constantly triggered. Later today, once I get to work, I'll run some tests of my own and figure out if that's really the problem. Email me if you make any progress. -Dave On 12/13/2011 2:30 AM, Fabien Lafont wrote: > H

Re: [Matplotlib-users] [ploting data] Live data

2011-12-12 Thread David Hoese
nction and tell the main event loop to process any queued events (like GUI actions/events) which will make your GUI more responsive. If that doesn't make sense let me know. -Dave On 12/12/11 9:16 AM, Fabien Lafont wrote: > Hi David! Sorry about the delay I was abroad and withou

[Matplotlib-users] How to do million data-point plots with Matplotlib?

2011-12-10 Thread David Smith
it is smaller for larger plots. I am wondering if I could use this to plot course and fine versions of the plots. The course plot is zoomed in version of the small-sized raster. That would be better than decimation as all the points would at least be there. Thanks in advance, David

[Matplotlib-users] missing data in plot

2011-12-06 Thread David Belohrad
it seems that it does not bother to skip as well the peaks, which are of utmost importance... any help appreciated. The source code to display the graphs is shown in function writePdfBSlots in following code: http://svnweb.cern.ch/world/wsvn/fimdab/trunk/SW/Python/captTest.py t

Re: [Matplotlib-users] [ploting data] Live data

2011-12-05 Thread David Hoese
If I'm understanding your question correctly and reading your code correctly, you're asking why the timer method of doing things works, but the principal() while loop method does not. I had a couple solutions that involved the main event loop, but I just noticed 2 main things that are probably

Re: [Matplotlib-users] [ploting data] Live data

2011-12-04 Thread David Hoese
I think you forget to set the layout on your central widget. self.main_widget.setLayout(vbl) # in your case -Dave On 12/4/2011 9:57 AM, matplotlib-users-requ...@lists.sourceforge.net wrote: > 2011/12/2 Daniel Hyams: >> > I don't have PyQt installed, so I couldn't test the code, but don't you >

Re: [Matplotlib-users] Matplotlib.tests sub-modules missing

2011-11-15 Thread David Welch
lenv/matplotlibtest/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/_macosx.m -o build/temp.macosx-10.6-universal-2.6/src/_macosx.o src/_macosx.m: In function ‘FigureManager_init’

Re: [Matplotlib-users] Matplotlib.tests sub-modules missing

2011-11-14 Thread David Welch
Has ANYONE installed matplotlib on OSX 10.6 and had the module tests pass? Specifically in a virtualenv setup? -Dave -- David Welch david.m.we...@gmail.com On 11Nov, 2011, at 2:12 PM, David Welch wrote: > Update: test folders are in the build directory, they are just not > being

Re: [Matplotlib-users] Matplotlib.tests sub-modules missing

2011-11-11 Thread David Welch
Update: test folders are in the build directory, they are just not being copied during build. *bump* On 11/10/11, David Welch wrote: > Hello, > > I am installing matplotlib on Snow Leopard 10.6. I downloaded v1.1.0 from > the sourceforge site and installed in

[Matplotlib-users] Matplotlib.tests sub-modules missing

2011-11-10 Thread David Welch
python2.6/site-packages/nose/util.py", line 331, in resolve_name obj = getattr(obj, part) AttributeError: 'module' object has no attribute 'test_backend_svg' (etc.) # The failure is for all modules in matplotlib.tests except for test_agg

[Matplotlib-users] quiver colors

2011-10-19 Thread David Anthony Lavers
me a hint on how to color the arrows according to the wind strength?   I would much appreciate any help with this problem.   Best wishes,   David     -- The demand for IT networking professionals continues to grow

Re: [Matplotlib-users] how would you do this (animated bargraph) (Neal Becker)

2011-09-30 Thread David Hoese
Neal, I do something similar to this where data that I'm plotting in a 2D line plot comes from a UDP socket and some memory mapped files. To accomplish the live updating I have a mix of your #2 and #3. I have a main GUI thread that displays the plots, then I have a second thread that gets da

  1   2   3   4   5   6   >