Re: [Matplotlib-users] Drawing lots of lines or polygons
On 5/18/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > > > Bill Baxter wrote: > > That does look like what I'm after. Two things are unclear to me from > > the docs you pointed to: > > 1) How do you actually add something to a plot with those? Are they > > automatically added to the current figure just by creating them? > > I'm no expert, but it looks like you need to do: > axis.add_collection(YourCollection) Yep, this i the right approach. See the following examples: collections_demo.py dynamic_collection.py lasso_demo.py line_collection.py line_collection2.py - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Numpy & Numarray
I recently installed Matplotlib .90 under CentOS 5 (like RHEL 5). When I import pylab, it wants numarray rather than the numpy I have installed. Do you need both or is there a config file that needs editing? Dave - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Numpy & Numarray
On 20.05.2007, at 16:22, David Nordquest wrote: I recently installed Matplotlib .90 under CentOS 5 (like RHEL 5). When I import pylab, it wants numarray rather than the numpy I have installed. Do you need both or is there a config file that needs editing? Edit ~/.matplotlib/matplotlibrc Greetings, Jochen -- Einigkeit und Recht und Freiheithttp://www.Jochen- Kuepper.de Liberté, Égalité, FraternitéGnuPG key: CC1B0B4D Sex, drugs and rock-n-roll PGP.sig Description: This is a digitally signed message part - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] wxPython-2.8 problems
Hi, I am having problems installing matplotlib-0.90.0 under Mac OS X (using MacPorts) when having wxPython-2.8.4.0 installed, getting the following error at build-time: DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/ _Users_jochen_source_macports-trunk_dports_python_py-matplotlib/work/ matplotlib-0.90.0" && /opt/local/bin/python2.4 setup.py build' setup.py:267: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained. Please switch to the wx package as soon as possible. import wxPython /opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_core.py: 13967: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch") WXAgg's accelerator requires wxPython running build Nevertheless, matplotlib builds, but bails out with > python Python 2.4.4 (#1, May 8 2007, 21:00:03) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pylab /opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_core.py: 13967: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch") Traceback (most recent call last): File "", line 1, in ? File "/opt/local/lib/python2.4/site-packages/pylab.py", line 1, in ? from matplotlib.pylab import * File "/opt/local/lib/python2.4/site-packages/matplotlib/pylab.py", line 222, in ? new_figure_manager, draw_if_interactive, show = pylab_setup() File "/opt/local/lib/python2.4/site-packages/matplotlib/backends/ __init__.py", line 24, in pylab_setup globals(),locals(),[backend_name]) File "/opt/local/lib/python2.4/site-packages/matplotlib/backends/ backend_wxagg.py", line 19, in ? import wx File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/ __init__.py", line 45, in ? from wx._core import * File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/ _core.py", line 14007, in ? default = locale.getpreferredencoding() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/locale.py", line 399, in getpreferredencoding import _locale ImportError: No module named _locale Again, a release number mismatch; but then there is also the import _locale error. With respect to matplotlib I have now resorted to install it with GTKAGG, which works as expected. For wxPython: I get the same error when trying to import wxpython or wx directly in a fresh python: > python -E Python 2.4.4 (#1, May 8 2007, 21:00:03) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import wx /opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_core.py: 13967: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch") Traceback (most recent call last): File "", line 1, in ? File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/ __init__.py", line 45, in ? from wx._core import * File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/ _core.py", line 14007, in ? default = locale.getpreferredencoding() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/locale.py", line 399, in getpreferredencoding import _locale ImportError: No module named _locale >>> Is this a known issue? Is there an easy way around ? Is there any other information I should send? Greetings, Jochen -- Einigkeit und Recht und Freiheithttp://www.Jochen- Kuepper.de Liberté, Égalité, FraternitéGnuPG key: CC1B0B4D Sex, drugs and rock-n-roll PGP.sig Description: This is a digitally signed message part - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Drawing lots of lines or polygons
On 5/20/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 5/18/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > > > > > > I'm no expert, but it looks like you need to do: > > axis.add_collection(YourCollection) > > Yep, this i the right approach. See the following examples: > > collections_demo.py > dynamic_collection.py > lasso_demo.py > line_collection.py > line_collection2.py Great. Thanks for the pointers! --bb - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem with saving eps and ps with GTKAgg backend (and current head of SVN)
hi there, out of idea I decided to download gsview and try to open my eps file with it. It still showed it truncated but this time gsview has resizing capabilities, and I could actually reformat the plot so that it shows the whole figure and then save it. Given the fact that Matthew could not reproduce my issue and noticed that the ps figure was looking slightly different, I have the feeling that somehow ghostscript is not behaving correctly on my system, though I have no clue why or how. Is anyone expert in these matters around? thanks a lot, Johann Matthew Auger wrote: > I was having the same problem, but the recent xpdf thread pointed me > to a/the solution. I was able to successfully run your script by > outputting as eps instead of ps (which produced truncated output, as > you were experiencing). > > Matt > > > On Thu, 10 May 2007, Johann Cohen-Tanugi wrote: > >> Well, matplotlib starts with a canvas bigger than my screen >> (vertically only) but in the end it seems to resize it so everything >> fits in. I can see the whole drawing and the bottom toolbar. Again, >> saving in png or jpg works perfectly and of course I checked that >> gv was not cutting the graph when displaying it. >> I just tried to use GTK as a backend, and ipython tells me that there >> are "non implemented" errors on my script >> I attach it here. >> thanks! >> Johann >> >> Darren Dale wrote: >>> On Wednesday 09 May 2007 12:19:24 pm Johann Cohen-Tanugi wrote: >>> I am creating a "big" drawing ( figure(figsize=(16,20)) ), and when I try to save it in eps/ps form, it mishandle the overall size and only save a portion of the drawing. Saving in png or jpg works fine though. Any idea? >>> >>> On my system, you cant create a figure that is larger than the >>> monitor size, unless I use a non-gui backend like agg or ps. It >>> doesnt matter whether I save an eps, png, or jpg. Also, make sure >>> your postscript viewer is not truncating the page due to an >>> inappropriate page size setting. >>> >>> Darren >>> - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users