[Matplotlib-users] 4D Scatter Plot
Hello, I am interested in producing a 4 dimensional plot to represent some data. I picture this as looking like a normal 3d scatter plot with datapoints varying in a color scale which depends on a fourth column of data. Could anyone help me with this- I have searched google and the matplotlib website and have only found some documentation for a MatLab solution bywhich I am not interested. Thank you kindly! -Francois -- 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] Exceptions on Some Demos
I've used Add/Remove Software to install python-matplotlib-0.98.5.2-2.fc10(i386) and python-matplotlib-tk-0.98.5.2-2.fc10(i386) on my fedora 10 box, plus 11 dependencies, including Tkinter. Some matplotlib examples, eg pylab_examples Examples/arctest.py works nicely, but many do not as presented. Example api Examples/barchart_demo raises the following traceback when executed as-is: [jon@einstein matplotlib-examples]$ ./barchart.py Traceback (most recent call last): File "./barchart.py", line 18, in error_kw=dict(elinewidth=6, ecolor='pink')) File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line 1656, in bar ret = gca().bar(*args, **kwargs) File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 4075, in bar r.update(kwargs) File "/usr/lib/python2.5/site-packages/matplotlib/artist.py", line 548, in update raise AttributeError('Unknown property %s'%k) AttributeError: Unknown property error_kw (I've copied the example code into script barchart.py, and run it from there.) The problem line is: rects1 = plt.bar(ind, menMeans, width, color='r', yerr=menStd, error_kw=dict(elinewidth=6, ecolor='pink')) If I replace this with: rects1 = plt.bar(ind, menMeans, width, color='r', yerr=menStd) and do the same thing for the rects2 statement, the demonstration then presents the bar chart. The problem seems to lie somewhere with the error_kw arg being passed to method plt.bar. Is there something else I need to do to get the provided examples to work as coded? TIA, Jon -- View this message in context: http://old.nabble.com/Exceptions-on-Some-Demos-tp31977899p31977899.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- 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] compile failure with git tree
Hi, I'm use to compile the mpl git tree but I get an error with the current one: running build_ext building 'matplotlib.backends._tkagg' extension C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC compile options: '-DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/include/tcl8.5 -I/usr/include/tcl8.5 -I/usr/local/include -I/usr/include -I. -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.7 -c' gcc: CXX/cxxextensions.c gcc: no input files sh: -I/usr/include/tcl8.5: not found gcc: no input files sh: -I/usr/include/tcl8.5: not found error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/include/tcl8.5 -I/usr/include/tcl8.5 -I/usr/local/include -I/usr/include -I. -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o" failed with exit status 127 Is it a known issue? Xavier -- 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] PyCon DE 2011 - Call for Proposals extended to July 15, 2011
PyCon DE 2011 - Deadline for Proposals extended to July 15, 2011 The deadline for talk proposals is extended to July 15, 2011. You would like to talk about your Python project to the German-speaking Python community? Just submit your proposal within the next two weeks: http://de.pycon.org/2011/speaker/ About PyCon DE 2011 --- The first PyCon DE will be held October 4-9, 2011 in Leipzig, Germany. The conference language will be German. Talks in English are possible. Please contact us for details. The call for proposals is now open. Please submit your talk by June 30, 2011 online. There are two types of talks: standard talks (20 minutes + 5 minutes Q&A) and long talks (45 minutes + 10 minutes Q&A). More details about the call can be found on the PyCon DE website: http://de.pycon.org/2011/Call_for_Papers/ Since the conference language will be German, the call is in German too. PyCon DE 2011 - Neuer Einsendeschluss für Vortragsvorschläge 15.07.2011 === Noch bis zum 15.7.2011 kann jeder, der sich für Python interessiert, einen Vortragsvorschlag für die PyCon DE 2011 einreichen. Es gibt nur zwei Bedingungen: das Thema sollte interessant sein und etwas mit Python zu tun haben. Für die erste deutsche Python-Konferenz sind wir an einer breiten Themenpalette interessiert, die das ganze Spektrum der Entwicklung, Nutzung und Wirkung von Python zeigt. Mögliche Themen sind zum Beispiel: * Webanwendungen mit Python * Contentmanagement mit Python * Datenbankanwendungen mit Python * Testen mit Python * Systemintegration mit Python * Python für große Systeme * Python im Unternehmensumfeld * Pythonimplementierungen (Jython, IronPython, PyPy, Unladen Swallow und andere) * Python als erste Programmiersprache * Grafische Nutzerschnittstellen (GUIs) * Parallele Programmierung mit Python * Python im wissenschaftlichen Bereich (Bioinformatik, Numerik, Visualisierung und anderes) * Embedded Python * Marketing für Python * Python, Open Source und Entwickler-Gemeinschaft * Zukünftige Entwicklungen * mehr ... Ihr Themenbereich ist nicht aufgelistet, wäre aber aus Ihrer Sicht für die PyCon DE interessant? Kein Problem. Reichen Sie Ihren Vortragsvorschlag einfach ein. Auch wir können nicht alle Anwendungsbereiche von Python überschauen. Vortragstage sind vom 5. bis 7. Oktober 2011. Es gibt zwei Vortragsformate: * Standard-Vortrag -- 20 Minuten Vortrag + 5 Minuten Diskussion * Lang-Vortrag -- 45 Minuten Vortrag + 10 Minuten Diskussion Die Vortragszeit wird strikt eingehalten. Bitte testen Sie die Länge Ihres Vortrags. Lassen Sie gegebenenfalls ein paar Folien weg. Die Vortragsprache ist Deutsch. In begründeten Ausnahmefällen können Vorträge auch auf Englisch gehalten werden. Bitte fragen Sie uns dazu. Bitte reichen Sie Ihren Vortrag auf der Konferenz-Webseite http://de.pycon.org bis zum 15.07.2011 ein. Wir entscheiden bis zum 31. Juli 2011 über die Annahme des Vortrags. -- 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] 4D Scatter Plot
On 1 July 2011 14:35, Francois Lemery wrote: > Hello, > > I am interested in producing a 4 dimensional plot to represent some data. > > I picture this as looking like a normal 3d scatter plot with datapoints > varying in a color scale which depends on a fourth column of data. > > Could anyone help me with this- I have searched google and the matplotlib > website and have only found some documentation for a MatLab solution bywhich > I am not interested. > > Thank you kindly! > -Francois How about this? from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = fig.add_subplot(111, projection='3d') x = np.random.standard_normal(100) y = np.random.standard_normal(100) z = np.random.standard_normal(100) c = np.random.standard_normal(100) ax.scatter(x, y, z, c=c, cmap=plt.hot()) plt.show() Angus. -- AJC McMorland Post-doctoral research fellow Neurobiology, University of Pittsburgh -- 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] Exceptions on Some Demos
On Fri, Jul 1, 2011 at 10:02 PM, JonBL wrote: > > I've used Add/Remove Software to install > python-matplotlib-0.98.5.2-2.fc10(i386) and > python-matplotlib-tk-0.98.5.2-2.fc10(i386) on my fedora 10 box, plus 11 > dependencies, including Tkinter. Some matplotlib examples, eg > pylab_examples > Examples/arctest.py works nicely, but many do not as presented. > > Example api Examples/barchart_demo raises the following traceback when > executed as-is: > > [jon@einstein matplotlib-examples]$ ./barchart.py > Traceback (most recent call last): > File "./barchart.py", line 18, in >error_kw=dict(elinewidth=6, ecolor='pink')) > File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line 1656, > in bar >ret = gca().bar(*args, **kwargs) > File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 4075, in > bar >r.update(kwargs) > File "/usr/lib/python2.5/site-packages/matplotlib/artist.py", line 548, in > update >raise AttributeError('Unknown property %s'%k) > AttributeError: Unknown property error_kw > > (I've copied the example code into script barchart.py, and run it from > there.) > > The problem line is: > > rects1 = plt.bar(ind, menMeans, width, >color='r', >yerr=menStd, >error_kw=dict(elinewidth=6, ecolor='pink')) > > If I replace this with: > > rects1 = plt.bar(ind, menMeans, width, >color='r', >yerr=menStd) > > and do the same thing for the rects2 statement, the demonstration then > presents the bar chart. > > The problem seems to lie somewhere with the error_kw arg being passed to > method plt.bar. Is there something else I need to do to get the provided > examples to work as coded? > > TIA, > Jon > Jon, The examples on the website are for version 1.0.1, which is a couple of years older than version 0.98. Many examples utilizes new features that have since been added to matplotlib. Also, as a side note, Fedora 10 has stopped receiving updates of any kind about 2 years ago. This also means security updates. 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
Re: [Matplotlib-users] [matplotlib-devel] compile failure with git tree
On 07/02/2011 02:37 AM, Xavier Gnata wrote: > Hi, > > I'm use to compile the mpl git tree but I get an error with the current one: > > > running build_ext > building 'matplotlib.backends._tkagg' extension > C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 > -Wall -fPIC > > compile options: '-DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/include/tcl8.5 >-I/usr/include/tcl8.5 -I/usr/local/include -I/usr/include -I. > -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/local/lib/python2.7/dist-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.7 -c' > gcc: CXX/cxxextensions.c > gcc: no input files > sh: -I/usr/include/tcl8.5: not found > gcc: no input files > sh: -I/usr/include/tcl8.5: not found > error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv > -O2 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -DPYCXX_ISO_CPP_LIB=1 -I/usr/include/tcl8.5 >-I/usr/include/tcl8.5 -I/usr/local/include -I/usr/include -I. > -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -Isrc > -Iagg24/include -I. > -I/usr/local/lib/python2.7/dist-packages/numpy/core/include > -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. > -I/usr/include/python2.7 -c CXX/cxxextensions.c -o > build/temp.linux-x86_64-2.7/CXX/cxxextensions.o" failed with exit status 127 > > Is it a known issue? This is now fixed by 984d83ed9 in v1.0.x-maint and master. Eric > > Xavier -- 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] Exceptions on Some Demos
Thanks, Ben. I'll install 1.0.1. I'm aware of the situation about Fedora 10. Regards, Jon Benjamin Root-2 wrote: > > On Fri, Jul 1, 2011 at 10:02 PM, JonBL wrote: > >> >> I've used Add/Remove Software to install >> python-matplotlib-0.98.5.2-2.fc10(i386) and >> python-matplotlib-tk-0.98.5.2-2.fc10(i386) on my fedora 10 box, plus 11 >> dependencies, including Tkinter. Some matplotlib examples, eg >> pylab_examples >> Examples/arctest.py works nicely, but many do not as presented. >> >> Example api Examples/barchart_demo raises the following traceback when >> executed as-is: >> >> [jon@einstein matplotlib-examples]$ ./barchart.py >> Traceback (most recent call last): >> File "./barchart.py", line 18, in >>error_kw=dict(elinewidth=6, ecolor='pink')) >> File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line 1656, >> in bar >>ret = gca().bar(*args, **kwargs) >> File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 4075, >> in >> bar >>r.update(kwargs) >> File "/usr/lib/python2.5/site-packages/matplotlib/artist.py", line 548, >> in >> update >>raise AttributeError('Unknown property %s'%k) >> AttributeError: Unknown property error_kw >> >> (I've copied the example code into script barchart.py, and run it from >> there.) >> >> The problem line is: >> >> rects1 = plt.bar(ind, menMeans, width, >>color='r', >>yerr=menStd, >>error_kw=dict(elinewidth=6, ecolor='pink')) >> >> If I replace this with: >> >> rects1 = plt.bar(ind, menMeans, width, >>color='r', >>yerr=menStd) >> >> and do the same thing for the rects2 statement, the demonstration then >> presents the bar chart. >> >> The problem seems to lie somewhere with the error_kw arg being passed to >> method plt.bar. Is there something else I need to do to get the provided >> examples to work as coded? >> >> TIA, >> Jon >> > > Jon, > > The examples on the website are for version 1.0.1, which is a couple of > years older than version 0.98. Many examples utilizes new features that > have since been added to matplotlib. > > Also, as a side note, Fedora 10 has stopped receiving updates of any kind > about 2 years ago. This also means security updates. > > 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 > > -- View this message in context: http://old.nabble.com/Exceptions-on-Some-Demos-tp31977899p31981750.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- 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