[Matplotlib-users] BrokenBarHCollection with pandas timeseries

2014-12-02 Thread Fabien
or a number Basically, span_where() is not happy with my x values which are a panda timeserie. I tried several stuffs (df.index.to_*) but there is something I still don't get in the internal representation of dates in matplolib. Any hint? Thanks a lot! Fabien

Re: [Matplotlib-users] BrokenBarHCollection with pandas timeseries

2014-12-02 Thread Fabien
On 02.12.2014 16:34, Benjamin Root wrote: Please provide the full traceback sure, I pasted the traceback below. Here are the pandas infos: In [17]: df.info() class 'pandas.core.frame.DataFrame' DatetimeIndex: 5 entries, 1950-01-01 00:00:00 to 1950-05-01 00:00:00 Freq: MS Data columns (total 2

Re: [Matplotlib-users] BrokenBarHCollection with pandas timeseries

2014-12-02 Thread Fabien
OK I just filled a bug report: https://github.com/matplotlib/matplotlib/issues/3872 my first bug report ever! On 02.12.2014 17:15, Fabien wrote: On 02.12.2014 16:59, Benjamin Root wrote: Does the workaround posted here fix things for you? https://github.com/matplotlib/matplotlib/issues/3727

Re: [Matplotlib-users] BrokenBarHCollection with pandas timeseries

2014-12-02 Thread Fabien
On 02.12.2014 16:59, Benjamin Root wrote: Does the workaround posted here fix things for you? https://github.com/matplotlib/matplotlib/issues/3727#issuecomment-60899590 sorry it doesn't. I updated the test case below (including the workaround, I hope I got it right). The strange thing is that

[Matplotlib-users] @image_comparison decorator and unittests

2015-07-30 Thread Fabien
outside the class works fine. Any idea? Thanks, Fabien -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo

Re: [Matplotlib-users] @image_comparison decorator and unittests

2015-07-30 Thread Fabien
, and the rest works just fine. It's already awesome enough to be able to test my plots in such an easy way!!! Thanks a lot, Fabien On 07/30/2015 04:29 PM, Paul Hobson wrote: Fabien, The @image_comparison operator is still somehwat of a black box for me. But I can confirm your observation that it only

[Matplotlib-users] Misleading BoundaryNorm error

2015-07-29 Thread Fabien
. ]]) From the doc I would expect BoundaryNorm and Normalize to work the same way. I find the error sent by BoundaryNorm quite misleading. Should I fill a bug report for this? Thanks! Fabien

Re: [Matplotlib-users] Misleading BoundaryNorm error

2015-07-30 Thread Fabien
expect BoundaryNorm and Normalize to work the same way. I find the error sent by BoundaryNorm quite misleading. Should I fill a bug report for this? Fabien, What happens if your force the boundaries to floats? By that I mean: bnorm = mpl.colors.BoundaryNorm([0.0, 1.0, 2.0], c.N

Re: [Matplotlib-users] Misleading BoundaryNorm error

2015-07-30 Thread Fabien
of this? Hi, my very first PR here: https://github.com/matplotlib/matplotlib/pull/4824 Thanks, Fabien -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https

[Matplotlib-users] Matplotlib graph autoscale

2011-11-17 Thread Fabien Lafont
Hello everyone, I've adapted a python code to plot real time data but I don't manage to have an auto-scale on my graph. I don't understand because I use set_autoscale_on(True)  Do you have an idea? Here is my simplified code: #!/usr/bin/env python #from visa import * from pylab import * #

[Matplotlib-users] [timer] How it works?

2011-11-29 Thread Fabien Lafont
, Fabien -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes

[Matplotlib-users] [ploting data] Live data

2011-12-02 Thread Fabien Lafont
Hello everyone, I'm trying to plot live data extracting from remote devices (here it's simulated by get_info1 and 2 the result is always 0.8 or 0.9 I can't understand why it doesnt plot the graph at the end of the while loop. Does somebody has an idea? #!/usr/bin/env python from visa import *

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

2011-12-02 Thread Fabien Lafont
are returning a list from your two get_info() functions? On Fri, Dec 2, 2011 at 8:13 AM, Fabien Lafont lafont.fab...@gmail.com wrote: Hello everyone, I'm trying to plot live data extracting from remote devices (here it's simulated by get_info1 and 2 the result is always 0.8 or 0.9 I can't

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

2011-12-05 Thread Fabien Lafont
() # start the Qt main loop execution, exiting from this script # with the same return code of Qt application sys.exit(qApp.exec_()) And this code doesn't show anything... Somebody understand why? Thanks, Fabien 2011/12/4 David Hoese dho...@gmail.com I think you forget to set

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

2011-12-12 Thread Fabien Lafont
but it's not very accurate... Is there a way to do the principal loop, show it on the screen, then redo the loop? Thanks again! Fabien 2011/12/5 David Hoese dho...@gmail.com: If I'm understanding your question correctly and reading your code correctly, you're asking why the timer method

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

2011-12-13 Thread Fabien Lafont
in parallel the timer to refresh the graph and a while loop to extract the datas. If I use startTimer(0) it works but the GUI is almost unresponsive. I'm trying to use qApp.processEvents() but up to now I don't manage to see the window appears... Thanks again for your help Fabien 2011/12/12 David

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

2011-12-14 Thread Fabien Lafont
anything... Thanks again, Fabien 2011/12/13 David Hoese dho...@gmail.com: 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

[Matplotlib-users] Fit with Chebyshev Polynomials

2011-12-14 Thread Fabien Lafont
I have a basic problem (I think) I try to fit some data with this function http://docs.scipy.org/doc/numpy/reference/generated/numpy.polynomial.Chebyshev.fit.html But it return an error: fit = chebyshev.fit(T,R,3) NameError: name 'chebyshev' is not defined I don't understand I've imported

Re: [Matplotlib-users] Fit with Chebyshev Polynomials

2011-12-14 Thread Fabien Lafont
Thx Seb! 2011/12/14 Benjamin Root ben.r...@ou.edu: On Wednesday, December 14, 2011, Fabien Lafont lafont.fab...@gmail.com wrote: I have a basic problem (I think) I try to fit some data with this function http://docs.scipy.org/doc/numpy/reference/generated

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

2011-12-14 Thread Fabien Lafont
try to read a bit more about PyQt to understand how it works :) thanks again! Fabien 2011/12/14 David Hoese dho...@gmail.com: I'm not sure how experienced you are with multithreaded programs, but here is some sample code (I mentioned it can get complicated).  I suggest you research Qt4

[Matplotlib-users] How to plot Chebyshev polynolmials

2012-01-10 Thread Fabien Lafont
I'm trying to plot Chebyshev polynolmials using: numpy.polynomial.Chebyshev: import math from numpy import * from numpy import polynomial as pol from pylab import * from scipy import * from scipy import optimize import warnings warnings.simplefilter('ignore', np.RankWarning) test =

Re: [Matplotlib-users] How to plot Chebyshev polynolmials

2012-01-10 Thread Fabien Lafont
and y data to plot. from matplotlib import pyplot as plt import numpy as np x = np.linspace(-1.0,1.0) test = np.polynomial.Chebyshev((1,2,3)) y = test(x) plt.plot(x,y) plt.show() On Tue, Jan 10, 2012 at 9:10 AM, Fabien Lafont lafont.fab...@gmail.com wrote: I'm trying to plot Chebyshev

[Matplotlib-users] [Matplotlib] Best way to use the time

2012-01-12 Thread Fabien Lafont
I'm recording live data and I want to record at the same moment the time (to plot MyData Vs Time). Do you know the bast way to do it because it exists a lot of different classes for that? Fabien -- RSA(R) Conference 2012

[Matplotlib-users] [Python] How to show milliseconds with time?

2012-01-13 Thread Fabien Lafont
How can I show the milliseconds with the library time because time.time is precise (or at least show) up to 0.01 seconds and it seems it's not possible to print more than seconds... An idea? I use time.strftime(%H:%M:%S, gmtime(time.time())) Fabien

[Matplotlib-users] [matplotlib] How to plot with plotfile?

2012-01-16 Thread Fabien Lafont
I try to plot some data directly from a file but without any sucess so far... from pylab import * plotfile(test.txt,(0,1)) My test.txt is in the same folder and it's just 1 2 3 5 2 6 4 5 8 It returns Traceback (most recent call last): File

[Matplotlib-users] [Matplotlib] Autoscale soesn't work

2012-01-17 Thread Fabien Lafont
I'm using an example from Sandro's Tosi book. I've just modified it to use random data instead cpu_datas. But the autoscale doesn't work even if I turn self.ax.set_autoscale_on(True). Do you have an Idea why? from pylab import * import random import sys from PyQt4 import QtGui import numpy

[Matplotlib-users] Autoscale doesn't work

2012-01-17 Thread Fabien Lafont
I'm using an example from Sandro's Tosi book. I've just modified it to use random data instead cpu_datas. But the autoscale doesn't work even if I turn self.ax.set_autoscale_on(True). Do you have an Idea why? from pylab import * import random import sys from PyQt4 import QtGui import numpy

[Matplotlib-users] [matplotlib-users] Twin yaxis and log scale in menubar

2012-01-25 Thread Fabien Lafont
Since I use twiny the button on the menu which allow color changing, log scale and so on, doesn't work. Why? What can I do? thx, Fabien -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive

[Matplotlib-users] [matplotlib-users] How to plot y vs x with some missing points in y vector?

2012-01-27 Thread Fabien Lafont
I want to plot something like: X(time)Ypoints 08 1 2 7 3 4 5 6 7 8 9 -- Try before you buy = See our experts in action! The most comprehensive online learning library for

Re: [Matplotlib-users] [matplotlib-users] How to plot y vs x with some missing points in y vector?

2012-01-27 Thread Fabien Lafont
Sorry, It's an awkward manipulation. I finish the mail 2012/1/27 Fabien Lafont lafont.fab...@gmail.com: I want to plot something like: X(time)        Ypoints 0                    8 1 2                   7 36 44 5 6 77 8

Re: [Matplotlib-users] [matplotlib-users] How to plot y vs x with some missing points in y vector?

2012-01-27 Thread Fabien Lafont
(nan) column2[i].remove(nan) to remove these points but it doesn't work 2012/1/27 Benjamin Root ben.r...@ou.edu: On Fri, Jan 27, 2012 at 9:52 AM, Fabien Lafont lafont.fab...@gmail.com wrote: Sorry, It's an awkward manipulation. I finish the mail 2012/1/27 Fabien Lafont lafont.fab

Re: [Matplotlib-users] [matplotlib-users] How to plot y vs x with some missing points in y vector?

2012-01-27 Thread Fabien Lafont
Thanks a lot, I'll try to remove the points using isnan() 2012/1/27 Fabrice Silva si...@lma.cnrs-mrs.fr: What about masked arrays ? http://docs.scipy.org/doc/numpy/reference/maskedarray.html -- Fabrice Silva --

[Matplotlib-users] How to keep only the x first terms of an array(numpy)?

2012-01-30 Thread Fabien Lafont
Hello, Do somebody knows how to keep only the x first terms of a numpy 1D array? like a = array([8,4,5,7,9]) function(a,2) [8,4] -- Try before you buy = See our experts in action! The most comprehensive online

[Matplotlib-users] [matplotlib-users] How connect axes on matplotlib subplots

2012-02-02 Thread Fabien Lafont
Hello! How can I zoom exactly on the same region on two different subplots at the same time. This option is enable when I use plotfile but not if I use plot, and subplots? Thx! Fabien -- Keep Your Developer Skills

Re: [Matplotlib-users] [matplotlib-users] How connect axes on matplotlib subplots

2012-02-02 Thread Fabien Lafont
Thx! 2012/2/2 Angus McMorland amcm...@gmail.com: On 2 February 2012 08:32, Fabien Lafont lafont.fab...@gmail.com wrote: Hello! How can I zoom exactly on the same region on two different subplots at the same time. This option is enable when I use plotfile but not if I use plot, and subplots

[Matplotlib-users] [matplotlib-users] Set the color of a plot in argument's function

2012-02-02 Thread Fabien Lafont
I don't manage to put the color of my plot in the argument' list function. Example: def function(color): plot(x,y,'.', color, label = this is my curve) function('r') even if I put function( 'r' ) it doesn't work. Any idea?

Re: [Matplotlib-users] [matplotlib-users] Set the color of a plot in argument's function

2012-02-02 Thread Fabien Lafont
Thanks Daryl, it works! 2012/2/2 Daryl Herzmann akrh...@iastate.edu: On Thu, Feb 2, 2012 at 8:52 AM, Fabien Lafont lafont.fab...@gmail.com wrote: I don't manage to put the color of my plot in the argument' list function. Example: def function(color):      plot(x,y,'.', color, label

[Matplotlib-users] [matplotlib-users] Is it possible to show a fullscreen plot on windows?

2012-02-06 Thread Fabien Lafont
The question is inside the title... -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5,

[Matplotlib-users] [matplotlib-users] Is it possible to set .pdf as defaut when saving an image?

2012-02-07 Thread Fabien Lafont
Is it possible to set the extension .pdf as defaut when I save an image using the matplotlib bar. My coworkers are always saving the image in png and it's really ugly! Thx, Fab -- Keep Your Developer Skills Current with

[Matplotlib-users] [matplotlib-users] How to clear a matplotlib graph in PyQt

2012-04-27 Thread Fabien Lafont
Hello everyone, I Have a problem. I have a graph inserted in a PyQt interface and I want to clear it (When I click on a button). I initialise the graph like that: class Graph(FigureCanvas): def __init__(self,parent): self.fig = Figure() self.ax = self.fig.add_subplot(111)

[Matplotlib-users] [matplotlib-users] definition to show quikly a plot

2012-05-29 Thread Fabien Lafont
Hello everyone, I have a problem. I have to look at many plots. Usely I do it like that: from pylab import* X1 = genfromtxt(Myfile.dat, usecols =(0)) Y1 = genfromtxt(Myfile.dat, usecols =(1)) plot(X1,Y1, label =My curve) show() But the problem is when I have many plots I have to copy paste

Re: [Matplotlib-users] [matplotlib-users] definition to show quikly a plot

2012-05-29 Thread Fabien Lafont
Thx Francesco, it works great! What for the .T at the end of genfromtxt? 2012/5/29 Francesco Montesano franz.berges...@googlemail.com: Dear Fabien 2012/5/29 Fabien Lafont lafont.fab...@gmail.com: Hello everyone, I have a problem. I have to look at many plots. Usely I do it like

[Matplotlib-users] [matplotlib-users] How to plot digamma function (psi)

2012-07-10 Thread Fabien Lafont
Hello everyone, I try to plot the digamma function of (1/2 + 1/x) but I'm not sure that I'm plotting the good one. I've tried: special.polygamma(0, (1/2 + 1/x)) and special.polygamma(1, (1/2 + 1/x)) but I don't have the same result as with mathcad. I've tried to code it like that: def

Re: [Matplotlib-users] [matplotlib-users] How to plot digamma function (psi)

2012-07-10 Thread Fabien Lafont
Thanks! The problem came from the 1/2 ! For convenience I've found the function digamma on numpy *http://docs.scipy.org/doc/scipy/reference/generated/scipy.special.psi.html But it's quite hard to find it! Maybe we can ask to add digamma in the title between parenthesis? Fabien * 2012/7/10

[Matplotlib-users] [matplotlib-users] How to switch colormaps

2012-07-20 Thread Fabien Lafont
Hello everyone, Is it possible to have automaticaly more than 3 colors when Iplot a graph? When I plot it put the first in blue the second in green the third in red and the fourth in blue again. I want to use more colors to differenciate the curves. Is it possible? Fabien

[Matplotlib-users] [matplotlib-users] Embed plot in a website?

2012-08-30 Thread Fabien Lafont
Hello everyone, I'm wondering if it's possible to have a matplotlib graph online ? I mean zoom drag and so on on a plot? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security

[Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Fabien Lafont
Hello, Do you know to change the size of the numbers under the axis? fabien -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Fabien Lafont
There is no effect... 2012/8/30 Damon McDougall damon.mcdoug...@gmail.com On Thu, Aug 30, 2012 at 05:50:18PM +0200, Fabien Lafont wrote: Hello, Do you know to change the size of the numbers under the axis? import matplotlib matplotlib.rcParams['axes.labelsize'] = 12.0 Hope

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Fabien Lafont
(16). It looks so complicated. 2012/8/30 Benjamin Root ben.r...@ou.edu On Thu, Aug 30, 2012 at 11:58 AM, Fabien Lafont lafont.fab...@gmail.comwrote: There is no effect... 2012/8/30 Damon McDougall damon.mcdoug...@gmail.com On Thu, Aug 30, 2012 at 05:50:18PM +0200, Fabien Lafont wrote

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Fabien Lafont
parameter.See rcParams.keys() for a list of valid parameters.' 2012/8/30 Damon McDougall damon.mcdoug...@gmail.com On Thu, Aug 30, 2012 at 12:04:48PM -0400, Benjamin Root wrote: On Thu, Aug 30, 2012 at 11:58 AM, Fabien Lafont lafont.fab...@gmail.com wrote: There is no effect... 2012/8/30

[Matplotlib-users] How to insert an image in a plot?

2012-08-30 Thread Fabien Lafont
Hello, I want to insert an image in a plot, how can I do? Fabien -- 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

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Fabien Lafont
On Thu, Aug 30, 2012 at 07:06:14PM +0200, Fabien Lafont wrote: I've tried also but it returns an error: matplotlib.rcParams['xticks.labelsize'] = 12.0 File C:\Python27\lib\site-packages\matplotlib\__init__.py, line 653, in __setitem__ See rcParams.keys() for a list of valid

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Fabien Lafont
I'm just trying to plot a graph and add a label to each axis of that graph and change the labelsize of the ticks. 2012/8/30 Damon McDougall damon.mcdoug...@gmail.com On Thu, Aug 30, 2012 at 07:28:40PM +0200, Fabien Lafont wrote: Thanks, I've found the problem. I use xlabel(name of my axis

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Fabien Lafont
...@ou.edu: On Thu, Aug 30, 2012 at 1:38 PM, Fabien Lafont lafont.fab...@gmail.com wrote: I'm just trying to plot a graph and add a label to each axis of that graph and change the labelsize of the ticks. Could you post your code? What you are describing shouldn't happen. Also, which

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-30 Thread Fabien Lafont
Actually I just want to do it on that plot not on all my future plot. 2012/8/30 Fabrice Silva si...@lma.cnrs-mrs.fr: Le jeudi 30 août 2012 à 19:48 +0200, Fabien Lafont a écrit : I just create two vectors from a .txt file and I plot them. I think I have the latest version of matplotlib. I have

Re: [Matplotlib-users] How to change the size of the numbers under the axis

2012-08-31 Thread Fabien Lafont
Hi, I think I was tired yesterday. matplotlib.rcParams['xtick.labelsize'] = 20.0 works perfectly also with xlabel(name, size= 30) Thanks all, Fabien 2012/8/30 Mark Lawrence breamore...@yahoo.co.uk: On 30/08/2012 19:00, Fabien Lafont wrote: Actually I just want to do it on that plot

[Matplotlib-users] How to change the textsize inside a legend?

2012-08-31 Thread Fabien Lafont
Hello, The question is in the title :) Cheers! Fabien -- 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

Re: [Matplotlib-users] How to change the textsize inside a legend?

2012-08-31 Thread Fabien Lafont
Actually I had some problems to find the solution on the web. Finally I've used: matplotlib.rcParams['legend.fontsize'] = 25.0 and it works well Fabien 2012/8/31 Mark Lawrence breamore...@yahoo.co.uk On 31/08/2012 14:42, Fabien Lafont wrote: Hello, The question is in the title

[Matplotlib-users] Is it possible to have different color for inner and outer face of a 3D plot?

2012-09-19 Thread Fabien Lafont
Actually I want to try to plot something like this picture: http://physics.aps.org/assets/d88621a594e78eea With a color for inside and another for outside. -- Live Security Virtual Conference Exclusive live event will

[Matplotlib-users] Matplotlib lag on windows seven

2013-01-17 Thread Fabien Lafont
pylab import * x = [0,1,2] plot(x,x) show() Do you have any idea? Thanks, Fabien -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your

Re: [Matplotlib-users] Matplotlib lag on windows seven

2013-01-17 Thread Fabien Lafont
What is a backend??? The version number? I'm using Matplotlib 1.1.1 2013/1/17 Michael Droettboom md...@stsci.edu Which backends are you using on each platform. A difference there is the most likely culprit. Mike On 01/17/2013 08:16 AM, Fabien Lafont wrote: Hello everyone, I've

Re: [Matplotlib-users] Matplotlib lag on windows seven

2013-01-17 Thread Fabien Lafont
Thanks! I have:Qt4Agg 2013/1/17 Benjamin Root ben.r...@ou.edu On Thu, Jan 17, 2013 at 8:43 AM, Fabien Lafont lafont.fab...@gmail.comwrote: What is a backend??? The version number? I'm using Matplotlib 1.1.1 from pylab import * get_backend() Ben Root

Re: [Matplotlib-users] Matplotlib lag on windows seven

2013-01-21 Thread Fabien Lafont
I have installed MPL 1.2.0 but it's still laggy... 2013/1/18 Paul Hobson pmhob...@gmail.com On Thu, Jan 17, 2013 at 8:10 AM, Fabien Lafont lafont.fab...@gmail.comwrote: Thanks! I have:Qt4Agg 2013/1/17 Benjamin Root ben.r...@ou.edu On Thu, Jan 17, 2013 at 8:43 AM, Fabien Lafont