Re: [Matplotlib-users] formatter for durations of varying units
On Tue, Jul 12, 2011 at 3:15 AM, Maximilian Trescher wrote: > Hi, > >> I want to pick a good (dynamic, for zooming) way to format the y axis. >> There are two issues: >> Does (1) seem like the right approach? And for 2, is there already a >> formatter that is appropriate for this or could be adapted to it? > did you try the AutoDateLocator (from matplotlib.dates)? I hadn't. I am trying now but am stuck on: How can I plot the data given that, from the database, each datapoint is of the form ''0:00:02.994000'? Is there a way to tell matplotlib to read that as a time duration? Thanks, Che -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] easy_install and pip install both fail
Neacsa Bogdan Valentin, on 2011-07-12 03:00, wrote: > I'm having a problem getting matplotlib to work with either > easy_install or pip install. I've tries all sorts of options > from easy_install matplotlib, pip install matplotlib, > easy_install > http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-0.98.5/matplotlib-0.98.5.3.tar.gz > The error which causes both to fail is: Hi Bogdan, are you specifically trying to install that old version of matplotlib? If not, add the -U flag to easy_install to try to grab a newer version best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 signature.asc Description: Digital signature -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] handling pick events doesn't work for me
Hi I have a GTK application with the code def on_pick(event): print "on_pick" thisline = event.artist xdata, ydata = thisline.get_data() ind = event.ind print 'on pick line:', zip(xdata[ind], ydata[ind]) cid = fig.canvas.mpl_connect('pick_event', on_pick) but the routine never gets called when I click the left mouse button. Instead, the FigureCanvas "pick" method is called. What am I doing wrong?? -Mathew -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib crash on Windows 2008 Server
Thanks Christoph. That fixed it at my end as well. Regards, Noah. -Original Message- From: Christoph Gohlke [mailto:cgoh...@uci.edu] Sent: July-12-11 3:40 AM To: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Matplotlib crash on Windows 2008 Server On 7/7/2011 3:06 PM, Noah Aklilu wrote: > Hello, > > I am using matplotlib as part of a data analysis tool, and I am having > problems with a crash on Windows 2008 server when plotting data. The > application use to run fine, though I guess there was a round of > windows updates recently (including some VC++ 2008 runtime updates). > No problems on Windows 7 professional with the same runtime updates. > > I have tracked the problem down to the function call to > update_path_extents in the _path.pyd module from transforms.py (L821 > in 1.0.1). > > Anyone else seeing this? I can reproduce this. For me any matplotlib script crashes on Windows Server 2008 when frozen with py2exe and py2exe's "bundle_files" option is not 3 (the default). Frozen PIL scripts also crash. The executables work When bundle_files=3. Christoph > > The event log shows that it is an uncaught VC++ exception based on > this > message: > > Log Name: Application > > Source: Application Error > > Date: 07/07/2011 3:11:40 PM > > Event ID: 1000 > > Task Category: (100) > > Level: Error > > Keywords: Classic > > User: N/A > > Computer: TS1.synodon.com > > Description: > > Faulting application name: sensview.exe, version: 0.0.0.0, time stamp: > 0x4918019c > > Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time > stamp: 0x4ce7bafa > > Exception code: 0xe06d7363 > > Fault offset: 0xb727 > > Faulting process id: 0x18d8 > > Faulting application start time: 0x01cc3cea60fe867f > > Faulting application path: C:\Program Files > (x86)\sensview\sensview.exe > > Faulting module path: C:\Windows\syswow64\KERNELBASE.dll > > Report Id: b4b6d9f6-a8dd-11e0-bdde-002590135f53 > > Event Xml: > > http://schemas.microsoft.com/win/2004/08/events/event";> > > > > > > 1000 > > 2 > > 100 > > 0x80 > > > > 10539 > > Application > > TS1.synodon.com > > > > > > > > sensview.exe > > 0.0.0.0 > > 4918019c > > KERNELBASE.dll > > 6.1.7601.17514 > > 4ce7bafa > > e06d7363 > > b727 > > 18d8 > > 01cc3cea60fe867f > > C:\Program Files (x86)\sensview\sensview.exe > > C:\Windows\syswow64\KERNELBASE.dll > > b4b6d9f6-a8dd-11e0-bdde-002590135f53 > > > > > > > > -- > All of the data generated in your IT infrastructure is > seriously valuable. > Why? It contains a definitive record of application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Failure to plot almost flat surface with matplotlib 1.0.1 on both Windows and Linux (bugreport)
On Tue, Jul 12, 2011 at 12:53 AM, Kirill Lapshin (Macquarie Securities) < kirill.laps...@macquarie.com> wrote: > ** > Hello, > > We've encountered a problem plotting a nearly flat surface. Interestingly > exactly flat surface can be plotted just fine, so it seems the bug is > triggered when a range of values on z axis is very narrow. The problem can > be easily reproduced on 32-bit windows and 64-bit linux, the only platforms > I have handy, so most likely it is not platform specific. Both platforms > have Python 2.6 and Matplotlb 1.0.1, and I've also seen the same error on > Windows with Matplotlib 1.0.0. Here is a simplified repro: > > -- > from matplotlib import pyplot > from mpl_toolkits.mplot3d import axes3d > import numpy > > n = 3 > m = 4 > x = range(n) > y = range(m) > z = [ 0.2 for i in range(n*m) ] > z[1] = 0.3 # comment this line to make it pass > > figure = pyplot.figure( 0 ) > ax = axes3d.Axes3D( figure ) > x = numpy.array( [ [ t ] * m for t in x ] ) > y = numpy.array( [ y ] * n ) > z = numpy.array( z ) > z = z.reshape( [ n, m ] ) > wire = ax.plot_wireframe( x, y, z ) > figure.show() > pyplot.draw() > - > > Here is a traceback: > > > Traceback (most recent call last): > File "C:\plotbug.py", line 21, in > pyplot.draw() > File "C:\Python26\lib\site-packages\matplotlib\pyplot.py", line 358, in > draw > get_current_fig_manager().canvas.draw() > File > "C:\Python26\lib\site-packages\matplotlib\backends\backend_tkagg.py", line > 248, in draw > FigureCanvasAgg.draw(self) > File "C:\Python26\lib\site-packages\matplotlib\backends\backend_agg.py", > line 394, in draw > self.figure.draw(self.renderer) > File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 55, in > draw_wrapper > draw(artist, renderer, *args, **kwargs) > File "C:\Python26\lib\site-packages\matplotlib\figure.py", line 798, in > draw > func(*args) > File "C:\Python26\lib\site-packages\mpl_toolkits\mplot3d\axes3d.py", line > 172, in draw > ax.draw(renderer) > File "C:\Python26\lib\site-packages\mpl_toolkits\mplot3d\axis3d.py", line > 243, in draw > newval = get_flip_min_max(xyz1[0], newindex, mins, maxs) > IndexError: list index out of range > > > If you comment out "z[1] = 0.3" line, and therefore make surface perfectly > flat, then it will plot just fine. > Any help would be greatly appreciated. > > Kind regards, > > Kirill Lapshin > Kirill, Thanks for the report. I am able to confirm that the problem occurs with v1.0.1, however, it appears that it is solved in the current development trunk and will work properly in the upcoming v1.1.0 release. I am not 100% certain which change it was that fixes this, but it is likely due to my work to make mplot3d functions accept empty inputs. This change would have likely allowed mplot3d to skip some operations under certain conditions. Because of the significant work that has gone into mplot3d since the v1.0.0 release, I would recommend all mplot3d users to upgrade to v1.1 when it is released. I hope this helps! Ben Root -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Failure to plot almost flat surface with matplotlib 1.0.1 on both Windows and Linux (bugreport)
Hello, We've encountered a problem plotting a nearly flat surface. Interestingly exactly flat surface can be plotted just fine, so it seems the bug is triggered when a range of values on z axis is very narrow. The problem can be easily reproduced on 32-bit windows and 64-bit linux, the only platforms I have handy, so most likely it is not platform specific. Both platforms have Python 2.6 and Matplotlb 1.0.1, and I've also seen the same error on Windows with Matplotlib 1.0.0. Here is a simplified repro: -- from matplotlib import pyplot from mpl_toolkits.mplot3d import axes3d import numpy n = 3 m = 4 x = range(n) y = range(m) z = [ 0.2 for i in range(n*m) ] z[1] = 0.3 # comment this line to make it pass figure = pyplot.figure( 0 ) ax = axes3d.Axes3D( figure ) x = numpy.array( [ [ t ] * m for t in x ] ) y = numpy.array( [ y ] * n ) z = numpy.array( z ) z = z.reshape( [ n, m ] ) wire = ax.plot_wireframe( x, y, z ) figure.show() pyplot.draw() - Here is a traceback: Traceback (most recent call last): File "C:\plotbug.py", line 21, in pyplot.draw() File "C:\Python26\lib\site-packages\matplotlib\pyplot.py", line 358, in draw get_current_fig_manager().canvas.draw() File "C:\Python26\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 248, in draw FigureCanvasAgg.draw(self) File "C:\Python26\lib\site-packages\matplotlib\backends\backend_agg.py", line 394, in draw self.figure.draw(self.renderer) File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "C:\Python26\lib\site-packages\matplotlib\figure.py", line 798, in draw func(*args) File "C:\Python26\lib\site-packages\mpl_toolkits\mplot3d\axes3d.py", line 172, in draw ax.draw(renderer) File "C:\Python26\lib\site-packages\mpl_toolkits\mplot3d\axis3d.py", line 243, in draw newval = get_flip_min_max(xyz1[0], newindex, mins, maxs) IndexError: list index out of range If you comment out "z[1] = 0.3" line, and therefore make surface perfectly flat, then it will plot just fine. Any help would be greatly appreciated. Kind regards, Kirill Lapshin If there is any advice in this email, it is general advice only and has been prepared by Macquarie Group or one of its related entities (“Macquarie”). Macquarie has made every reasonable effort to ensure the information provided is correct, but Macquarie makes no representation nor any warranty as to whether the information is accurate, complete or up to date. To the extent permitted by law, Macquarie accepts no responsibility for any errors or misstatements, negligent or otherwise. The information provided may be based on assumptions or market conditions and may change without notice. Macquarie, its associates, officers or employees may also have interests in the financial products referred to in this information by acting in various roles. They may buy or sell the financial products as principal or agent and as such may effect transactions which are not consistent with any recommendations (if any in this information). Macquarie or its associates may also receive fees or brokerage for acting in the above capacities. The information in this email is confidential. If you are not the intended recipient, you are not authorised to use the information in this email in any way. Macquarie does not guarantee the integrity of any emails or attached files. The view or opinions expressed are the author's own and may not reflect the view or opinions of Macquarie. Electronic communications carried within the Macquarie system may be monitored. -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] easy_install and pip install both fail
Hello, I'm having a problem getting matplotlib to work with either easy_install or pip install. I've tries all sorts of options from easy_install matplotlib, pip install matplotlib, easy_install http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-0.98.5/matplotlib-0.98.5.3.tar.gz The error which causes both to fail is: lipo: can't figure out the architecture type of: /var/folders/vO/vOCgTRh6FuWMIH2kWdCZgk+++TM/-Tmp-//ccaBo27K.out error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1 I can get matplotlib working if I download from sourceforge and install manually but I will need to distribute my project and since matplotlib will be a dependecy this is not an option. So how can I get matplotlib to install with either easy_install or pip ? Regards, Bogdan -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib crash on Windows 2008 Server
On 7/7/2011 3:06 PM, Noah Aklilu wrote: > Hello, > > I am using matplotlib as part of a data analysis tool, and I am having > problems with a crash on Windows 2008 server when plotting data. The > application use to run fine, though I guess there was a round of windows > updates recently (including some VC++ 2008 runtime updates). No problems > on Windows 7 professional with the same runtime updates. > > I have tracked the problem down to the function call to > update_path_extents in the _path.pyd module from transforms.py (L821 in > 1.0.1). > > Anyone else seeing this? I can reproduce this. For me any matplotlib script crashes on Windows Server 2008 when frozen with py2exe and py2exe's "bundle_files" option is not 3 (the default). Frozen PIL scripts also crash. The executables work When bundle_files=3. Christoph > > The event log shows that it is an uncaught VC++ exception based on this > message: > > Log Name: Application > > Source: Application Error > > Date: 07/07/2011 3:11:40 PM > > Event ID: 1000 > > Task Category: (100) > > Level: Error > > Keywords: Classic > > User: N/A > > Computer: TS1.synodon.com > > Description: > > Faulting application name: sensview.exe, version: 0.0.0.0, time stamp: > 0x4918019c > > Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time > stamp: 0x4ce7bafa > > Exception code: 0xe06d7363 > > Fault offset: 0xb727 > > Faulting process id: 0x18d8 > > Faulting application start time: 0x01cc3cea60fe867f > > Faulting application path: C:\Program Files (x86)\sensview\sensview.exe > > Faulting module path: C:\Windows\syswow64\KERNELBASE.dll > > Report Id: b4b6d9f6-a8dd-11e0-bdde-002590135f53 > > Event Xml: > > http://schemas.microsoft.com/win/2004/08/events/event";> > > > > > > 1000 > > 2 > > 100 > > 0x80 > > > > 10539 > > Application > > TS1.synodon.com > > > > > > > > sensview.exe > > 0.0.0.0 > > 4918019c > > KERNELBASE.dll > > 6.1.7601.17514 > > 4ce7bafa > > e06d7363 > > b727 > > 18d8 > > 01cc3cea60fe867f > > C:\Program Files (x86)\sensview\sensview.exe > > C:\Windows\syswow64\KERNELBASE.dll > > b4b6d9f6-a8dd-11e0-bdde-002590135f53 > > > > > > > > -- > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] formatter for durations of varying units
Hi, > I want to pick a good (dynamic, for zooming) way to format the y axis. > There are two issues: > Does (1) seem like the right approach? And for 2, is there already a > formatter that is appropriate for this or could be adapted to it? did you try the AutoDateLocator (from matplotlib.dates)? And if you did so, are there specific problems with this locator? Maximilian signature.asc Description: OpenPGP digital signature -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users