[Matplotlib-users] ANN: Michael Droettboom, matplotlib lead developer
It is a great honor for me to announce that Michael Droettboom has agreed to take on the role of lead developer of matplotlib. Since Michael joined the project in 2007, he has been responsible for much of the code that brought matplotlib from being an excellent tool to a world class one. No one in the world understands the code from the inside out like he does, and many of his contributions, while often unseen at the surface, have laid the foundation for matplotlib to reach further into the wild and wonderful things it can now do. To name a few of his contributions: generic, optimized caching transformations; dramatic backend simplification and rationalization; countless optimizations; implementation of Knuth mathtex layouts; python3 support, and dolphins! I like to tell people Michael codes with the force of ten men, and he's an incredible asset to our team. My role has been significantly diminished of late -- although I have been the nominal lead developer, in practice I have been a release manager. Unfortunately, I need to take some time to focus on family health issues, but will continue to follow development and make contributions as I can. We'll be looking for a release manager soon, and if you are interested in stepping up, we'll welcome the effort. We have a wonderful distributed development team using github pull requests, and the line between core developers, project leaders and plain-ole contributers is blurry. But I think it helps to have someone thinking about the project as a whole, who is willing and able to make decisions when necessary, and no one is better suited to doing this than Michael. I also extend my heartfelt thanks to Perry Greenfield and STScI. They have been supporting matplotlib since 2004 with ideas, code and developer resources. They employ Michael currently, and are part of the reason why he is able to take on the leadership of this large project. Michael, many thanks. -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: mpltools 0.1 release
On Tue, Jul 10, 2012 at 11:58 AM, Tony Yu tsy...@gmail.com wrote: Announcement: mpltools 0.1 == mpltools is a package of tools for matplotlib. For the most part, these tools are only loosely-connected in functionality, but there are two that may prove particularly useful: Styles and plot2rst --- Tony, is there a way to switch styles rather than chain them. Eg, if I do: import mpltools.style as style style.use('ieee.transaction') ...make_a_plot_... style.use('ggplot') ...make_a_plot_... I seem to get the chained behavior of the second style updating the first. I'd like to use this in a demo context where I can illustrate the styles separately, so it would be nice to go back to the defaults. Interestingly, I tried to do: import matplotlib matplotlib.rc_file_defaults() plt.close('all') hist(rand(1), 100) but that simply stopped figures from raising all together (I don't think this is related to mpltools, but to something funny going on on my system). So in summary, it would be nice to be able to do something like: style.use('default') or: style.reset() which would take you back to a clean slate. -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] path effects question
I do not understand why in the following example, if I set patch_alpha=1.0, I do not see the shadow effect. I would expect to see it for the the rightmost four bars, where the original bars do not entirely occlude the shadow, so even if alpha is 1.0, there are parts of the shadow that are not behind the original bars and should still be visible. import matplotlib.pyplot as plt import matplotlib.patheffects as PathEffects import numpy as np np.random.seed(2358) fig = plt.figure() # sime bar shadows x = np.random.randn(1000) n, bins, patches = plt.hist(x, bins=7) shadow = PathEffects.withSimplePatchShadow(offset_xy=(10,-10), patch_alpha=0.8, shadow_rgbFace=(0.25,0.25,0.25)) for p in patches: p.set_path_effects([shadow]) plt.show() -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] path effects question
On Sat, Jul 14, 2012 at 11:48 AM, John Hunter jdh2...@gmail.com wrote: I do not understand why in the following example, if I set patch_alpha=1.0, I do not see the shadow effect. I would expect to see it for the the rightmost four bars, where the original bars do not entirely occlude the shadow, so even if alpha is 1.0, there are parts of the shadow that are not behind the original bars and should still be visible. I now see that this line explains the behavior https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/patheffects.py#L183 gc0.set_alpha(1.-self._patch_alpha) so maybe I should amend my question: is this desirable that the shadow alpha is 1-patch_alpha, since an alpha of 1 on the patch does not imply that there is no visible shadow? -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: mpltools 0.1 release
On Jul 13, 2012, at 7:57 AM, Benjamin Root ben.r...@ou.edu wrote: There was talk of this living in mlab or cbook. Is there a preference? Neither. cbook is really meant more for the devs. Half of it is converter functions that are probably completely unneeded now, while the other half is the callback registry. I disagree that cbook is meant for devs. I initially used cbook as a place to put neat recipes from the python cookbook. It has grown a bit from there. The stuff that is in there like is_string_like is generically useful. The converters are used by the rec2* funcs, eg the rec2excel function in the exceltools toolkit. I use these extensively. Luckily, the module is called cbook.py, so one could pretend that it isn't cookbook but rather callback book... Meanwhile, mlab's own documentation says: Numerical python functions written for compatability with MATLAB commands with the same names. So, unless someone can find out if MATLAB has some sort of equivalent functionality hidden away somewhere, it doesn't belong there either. Or better, we change the docstring. I think of mlab as a place to put numerical or semi-numerical stuff in support of plotting. Not sure where to put it. mlab is probably the best place. -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: mpltools 0.1 release
On Wed, Jul 11, 2012 at 10:09 AM, Damon McDougall damon.mcdoug...@gmail.com wrote: Well, as Ben said, that error fill plot is neato! It doesn't look too complicated, either. I'd be more than happy to port it over later today when I get bored of typing up my thesis. It'll probably only take me about 30 minutes. If nobody is opposed to this idea, I'll go ahead and submit a PR this evening (British Summer (hah!) Time). While it is a nice graph, I am not sure that the use case is common enough to justify a new plotting method. One can get the same result with: In [68]: x = np.linspace(0, 2 * np.pi) In [69]: y_sin = np.sin(x) In [70]: err = np.concatenate([y_sin + 0.2, y_sin[::-1] - 0.2]) In [71]: plot(x, y_sin) Out[71]: [matplotlib.lines.Line2D object at 0x96959ec] In [72]: fill_between(np.concatenate([x, x[::-1]]), err, facecolor='red', alpha=0.5) Out[72]: matplotlib.collections.PolyCollection object at 0x962758c Admittedly the [::-1] thing is a bit counter-intuitive, but rather than adding a new plotting method, perhaps we would be better off with a helper method to create the xs and ys for fill_between xs, ys = mlab.pad_line(x, y, 0.2) fill_between(xs, ys) JDH -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: mpltools 0.1 release
On Tue, Jul 10, 2012 at 12:49 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: Would there be any interest in porting some of that functionality into the main mpl codebase? Like Ben said, that error function is nifty... :) I also think the styles would be widely appreciated, and we might get more styles contributors if it was part of the mainline. We'd ideally like to be able to support remote styles, eg via gist. Nice stuff, Tony. -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Fwd: Question on matplotlib install
Forwarding this on behalf of Amit. -- Forwarded message -- From: amitc0...@hotmail.com Date: Tue, Jun 19, 2012 at 9:07 AM Subject: Question on matplotlib install To: jdh2...@gmail.com Hi John - I found your email address on the setup splashscreen for matplotlib for windows. Can you please help me with an error which is blocking me? 1. I have installed Python2.7 but placed it in d:\Python27 instead of the default location of c:\Python27 2. Now I am trying to install matplotlib from matplotlib-1.1.0.win32-py2.7.exe However, the setup program says Python 2.7 is not installed. It then throws me to a screen which has a field for Python location but it is not typeable. I am blocked. How do I tell the setup program where Python is installed? Please help. Thanks, Amit -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME
On Jun 18, 2012, at 6:19 AM, Martin Mokrejs mmokr...@fold.natur.cuni.cz wrote: Hi, I am running some script in /mnt/blah and while my $HOME disk on a different device filled up because of some other reason. But my script ran in /mnt/blah died as well while there is plenty of space. Here is the stacktrace. Try setting the MPLCONFIGDIR environment variable to the writable dir or your choice. mpl does need a place to store some files, which is $HOME/.matplotlib by default, but you can configure it. -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME
On Mon, Jun 18, 2012 at 7:29 AM, Martin Mokrejs mmokr...@fold.natur.cuni.cz wrote: Hmm. Could it be by default the current working directory instead? Or, try/else added to the code which would try to write into cwd if $HOME (aka $MPLCONFIGDIR) returns an error? The stuff we store there is meant to be persistent between runs, primarily a cache of all the fonts we find on your system. So defaulting to the current working directory is not a good idea because then we would have configs littered across the filesystem and would not be able to take advantage of the information gleaned from previous runs from other directories. JDH -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME
On Mon, Jun 18, 2012 at 7:50 AM, Benjamin Root ben.r...@ou.edu wrote: However, should it be a full-out error? Is it possible to have mpl run without a font cache? I'm sure we could, but from an implementation perspective it would probably be easier to spoof it with a virtual filesystem and files using string io or equivalent. I think this would be a good feature if anyone wants to pursue it. JDH -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] suppress plotting window
On Fri, Jun 8, 2012 at 3:36 AM, Maximilian Fabricius mfabric...@gmail.com wrote: it seems that whenever I plot something, a window opens. from matplotlib import pylab import numpy pylab.plot(numpy.random.normal(size=100)) Now, I have code that is supposed to produce diagnostic plots as PDFs. Only Before importing pylab, do import matplotlib matplotlib.use('pdf') The FAQ for using mpl in a web app server is pretty relevant to this use case http://matplotlib.sourceforge.net/faq/howto_faq.html#matplotlib-in-a-web-application-server JDH -- 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 include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] RuntimeError: Could not open facefile
On Fri, Mar 23, 2012 at 3:35 PM, Andrew Smart andrew.johnsm...@gmail.comwrote: Hi, I'm running into this RuntimeError: Could not open facefile c:\Python32\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf; Cannot_Open_Resource when I'm trying to save out a series of *.png files in a loop. It crashes on this error after many passes through the loop and successful files get created, but then always on the same pass it does this. The full traceback is here: I wonder if the solution is as simple as doing font caching at the class level rather than instance level. Andrew, could you try editing matplotlib/backends/backend_agg.py and replace class RendererAgg(RendererBase): The renderer handles all the drawing primitives using a graphics context instance that controls the colors/styles debug=1 def __init__(self, width, height, dpi): if __debug__: verbose.report('RendererAgg.__init__', 'debug-annoying') RendererBase.__init__(self) self.texd = maxdict(50) # a cache of tex image rasters self._fontd = maxdict(50) with class RendererAgg(RendererBase): The renderer handles all the drawing primitives using a graphics context instance that controls the colors/styles debug=1 _fontd = maxdict(50) texd = maxdict(50) # a cache of tex image rasters def __init__(self, width, height, dpi): if __debug__: verbose.report('RendererAgg.__init__', 'debug-annoying') RendererBase.__init__(self) Does anyone see an issue with doing this caching at the class level? If this works, we should have *many* fewer font files parsed. w/o modifying the src code, a related way to test this idea is to reuse the same figure instance and clear it at the start of the loop. Ie, rather than for i in range(N): fig = plt.figure() plot_something fig.savefig(...) do fig = plt.figure() for i in range(N): fig.clf() plot_something fig.savefig(...) I would try the latter first, and if that works I would appreciate it if you test the src code modification unless someone chimes in and tells us that is a really bad idea. JDH -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Too Many Requests error - matplotlib gallery
On Mon, Mar 19, 2012 at 11:46 AM, gu...@thinkorswim.com wrote: Hi Guys, ** ** Accessing the Matplotlib gallery is killing access to the sourceforce matplotlib site giving the “Too many requests” error. Anytime you access the gallery, and attempt to view source of any thumbnail, the site gives the error. Then, the entire website becomes unusable, for example, if you then try to access the docs page, it will give the same error. I’ve noticed this error only in the past few weeks. ** ** The gallery URL is this: http://matplotlib.sourceforge.net/gallery.html*** * ** Thanks, this has been going on for several days now and I just filed a ticket with sourceforge. https://sourceforge.net/apps/trac/sourceforge/ticket/24897 JDH -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Too Many Requests error - matplotlib gallery
On Mon, Mar 19, 2012 at 12:46 PM, John Hunter jdh2...@gmail.com wrote: Thanks, this has been going on for several days now and I just filed a ticket with sourceforge. https://sourceforge.net/apps/trac/sourceforge/ticket/24897 In the meantime, a slightly out of date version of the website is available here: http://matplotlib.github.com/index.html JDH -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] OSX: need testing
On Mar 17, 2012, at 9:49 AM, Zachary Pincus zachary.pin...@yale.edu wrote: If you can test and confirm that you can build and use mpl normally with this patch, please respond with a python version and OSX version that you tested with. Some of the fixes were python3 specific, so if you also can test this against matplotlib master and python3, that would be great. Builds and (appears to) work fine on 10.7 with python 2.7, using the latest code from the github master. Just to be clear, this code is not in github master. I assume you have a checkout of master and then dropped the attached _macosx.m into your src for before building and testing? -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] loss of 3d plot interactivity after cla()?
On Fri, Mar 16, 2012 at 4:34 PM, Zachary Pincus zachary.pin...@yale.eduwrote: Hi all, I'm (finally) getting started with matplotlib, and am enjoying the lovely plot quality. However, as Finally getting started? You were one of our first contributors! http://sourceforge.net/mailarchive/message.php?msg_id=5192900 a non-matlab user, I'm finding it *extremely* difficult to figure out how to do even the simplest tasks / understand the code samples. (e.g. what is the '111' in the boilerplate calls to add_subplot() in the various examples? I couldn't find anything in the docs, and had to resort to the matlab documentation!) The 111, and the numbering scheme in general, is covered in the pyplot tutorial http://matplotlib.sourceforge.net/users/pyplot_tutorial.html#working-with-multiple-figures-and-axes and in the subplots API docs http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.subplot but it looks like the Figure.add_subplot docs could use some improvement here to explain the numbering scheme better (as pyplot.subplot does) http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.add_subplot I'll try and find some time today to clean up this docstring and to improve the pyplot tutorial to use the recommended subplots command. JDH -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] access to my underlying data from within picker or pick_handler
On Mon, Mar 12, 2012 at 11:05 PM, gsal salger...@gmail.com wrote: I am trying to change the underlying data for my plot via a pick event, except that the matplotlib examples for picking show a couple of functions with predefined signatures and I can't seem to figure out how to modify my data from within those functions...how to do it? Here is a minimal example of what I am trying to do: [code] import matplotlib.pyplot as plt def pick_rlines(art,mouseevent): button = mouseevent.button key = mouseevent.key wsf.nnn = 4 # -- how to modify wsf.nnn from here? print wsf.nnn = , wsf.nnn props = dict(nnn=wsf.nnn) return True, props def pick_handler(event): mouseevent = event.mouseevent button = mouseevent.button key = mouseevent.key art = event.artist wsf.nnn = event.nnn # -- or from here ? class AAA(): pass class BBB(): def __init__(self): pass wsf=AAA()# when it is defined here? wsf.nnn=0 GR = [1.0, 2.0, 3.0, 4.0] fig = plt.figure() ax = fig.add_axes([0.1,0.1,0.75,0.75]) ax.set_aspect(1) rlines = ax.hlines(GR,0.0,4.0,picker=pick_rlines) fig.canvas.mpl_connect('pick_event', pick_handler) plt.show() if __name__ == '__main__': the = BBB() In the code as you've written it, the is in the global namespace, and so your pick event handlers can see that variable. So you could write: def pick_rlines(art,mouseevent): button = mouseevent.button key = mouseevent.key the.wsf.nnn = 4 # the is in the global namespace But a cleaner design would be to make the pick handler a class method of class BBB, eg class BBB: def __init__(self): self.fig = blah_blah... self.fig.canvas.mpl_connect('pick_event', self.pick_handler) self.wsf = blah_blah... def pick_handler(self, artist, event): self.wsf.nnn = 4 # wsf is in the class namespace -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib picking mouseevent.key=None
On Tue, Mar 13, 2012 at 10:05 AM, gsal salger...@gmail.com wrote: Say, on Windows, the mouseevent.key correctly comes in as control, shift, or a letter...on Linux, it does notI am always getting None. is this a known problem with known solution? We need more information, what is your backend, what is you GUI toolkit version? If you post a minimal script that exposes the problem, and run it with --verbose-helpful and post the output, we can see if we can replicate the problem. JDH -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] where is line after remove?
On Tue, Mar 13, 2012 at 1:20 PM, Federico Ariza ariza.feder...@gmail.comwrote: Hi That is exactly what I am doing, but I thought it was kept somewhere. I like the idea of upstream modification of relim. It would be trivial to add a kwarg to relim: include_invisible=True which defaults to the current behavior. def relim(self, include_invisible=True): Recompute the data limits based on current artists. If you want to exclude invisible artists from the calculation, set `include_invisible=False` At present, :class:`~matplotlib.collections.Collection` instances are not supported. # Collections are deliberately not supported (yet); see # the TODO note in artists.py. self.dataLim.ignore(True) self.ignore_existing_data_limits = True for line in self.lines: if include_invisible or line.get_visible(): self._update_line_limits(line) for p in self.patches: if include_invisible or p.get_visible(): self._update_patch_limits(p) But include_invisible isn't the most intuitive name... JDH -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] resize a plot to make room
On Mon, Mar 12, 2012 at 8:04 AM, Neal Becker ndbeck...@gmail.com wrote: I have a figure with a semilogy plot. I need to make more room on the bottom to add a bunch of figtext, which is 4 lines of text. With the defaults, the text overprints the x-axis. What is a suggested way to fix this? (Ideally, mpl would calculate the appropriate sizes for me so things don't overprint). Set fig.tight_layout to automatically make room. Note there is a bug in the latest released matplotlib in which tight layout doesn't include all text objects, but this is fixed in git v1.1.x branch and will be included in the next release. You can also use the subplots_adjust functionality to increase the default spacing between your axes http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.subplots_adjust eg, fig.subplots_adjust(left=0.3, wspace=0.2) JDH -- 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, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Has nxutils been removed from mpl?
On Thu, Mar 8, 2012 at 10:32 AM, Benjamin Root ben.r...@ou.edu wrote: +1 as well. I just took another look at the Path object and I see no such function. The lack of this function is a problem for me as well in my existing apps. In order to deprecate nxutils, this functionality needs to be added to Path. Otherwise, nxutils *must* be reinstated before the next release. Michael has already agreed to make a nxutils compatibility layer that would have the same interface as the old nxutils. So we are talking about performance, not core functionality. We should remember that Michael did the lion's share of the work on porting mpl to python 3 ( https://github.com/matplotlib/matplotlib/pull/565/commits). He elected not to port all of the C++ if he could replace some of the functionality with the core. So those who rely on bare metal speed the you are getting in nxutils should step up to either : 1) help with the port of nxutils to python 3 2) help with exposing methods in _path.cpp that are almost as fast or faster 3) live with slower speeds in the compatibility layer he has agreed to write 4) ask (nicely) for someone to help you I prefer option 2 because this is fairly easy and avoids code redundancy. It would take just a few lines of extra code to do this with the python sequence protocol as inputs and python lists as return values. It would take a bit more to support numpy arrays as input and output, and we should get input from Michael about the desirability of making _path.cpp depend on numpy. I don't see the harm, but I'd like to verify. In my opinion, a slower implementation in a nxutils.py compatibility module is not a release stopper, even if it is undesirable. JDH -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Has nxutils been removed from mpl?
On Wed, Mar 7, 2012 at 12:31 PM, Michael Droettboom md...@stsci.edu wrote: I agree that the deprecation process should have been followed better. However, I'm not sure what you mean by them being faster than their Pyhton counterparts. Both functions in nxutils are replaced by functions in _path.cpp, which are also written in C++ but are more complete and don't have broken corner cases. They may be slightly slower because they have a few more checks and handle Bezier curves, but they are not significantly slower. What about providing a python module nxutils in master (1.2) that has the same signature as the old nxutils extension code, calls the path functionality, and raises a deprecation warning with suggested a suggested code migration? And then remove it for 1.3 JDH -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib detect wrong locations for libpng and libstdc++
On Mon, Mar 5, 2012 at 10:11 AM, Matthieu Dorier matthieu.dor...@irisa.frwrote: Hello, I'm trying to install Matplotlib on a platform on which default libpng.so and libstdc++.so are installed in /usr/lib64, but does not actually correspond to the libraries I want to use, which have been locally installed in $HOME/local. Matplotlib detects the default libraries and compiles against them, how can I tell it to compile against my own libraries? (setting basedirlist in setup.cfg didn't solve the problem) I'm surprised setting the basedir did not work. Are you sure you removed the old build dir before recompiling? -- 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, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Move the content of a figure into a subplot of this figure.
On Fri, Mar 2, 2012 at 4:57 AM, Guillaume Gay guilla...@mitotic-machine.org wrote: Hi list, I am trying to implement some GUI tools in matplotlib - more precisely a line profile tool and a contrast setter which I hope will be integrated to the skimage kit [see https://github.com/glyg/**scikits-image/blob/master/* *skimage/io/_plugins/**matplotlib_plugin.pyhttps://github.com/glyg/scikits-image/blob/master/skimage/io/_plugins/matplotlib_plugin.py]. Now here is my question: Is it possible to grab the content of a figure and 'displace' it in a subplot of the same figure, to give room for a knew plot - even if the original content is complex (i.e. an image + a colorbar + an histogram, for example). I am not sure I'm clear here, so I can try to rephrase if needed. I am not sure if you are trying to move objects from one axes to another or merely reposition an existing axes to make room for a new one. Both are possible, but the latter is easy. Each axes has [left, bottom, width, height] rectangle in (0,1) figure coordinates that you can adjust at any time. See for example the subplots_adjust tool on the navigation toolbar next to the save icon http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.set_position If you are working with subplots, also see the change_geometry method http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.SubplotBase.change_geometry colorbars are a little tricky, because there you are needing to reposition *two* axes, one for the image, and one for the colorbar itself. You can do this manually, but you probably want to look at JJ's gridspec and axes_grid tools for laying out groups of axes: http://matplotlib.sourceforge.net/users/gridspec.html http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html#toolkit-axesgrid-index JDH -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] pydata hack Friday night in Santa Clara
I'll be attending the pydata hack night in Santa Clara tomorrow night. We'll be hacking on matplotlib, ipython, pandas, numpy and more. If you are interested in stopping by, there is space for 200, many more than the number of attendees at pydata. The event info is here: http://python-data-hack-night.eventbrite.com/ Here is the description from the event: The Python Data Workshop just got bigger! We are thrilled to announce that Ground Floor Silicon Valley is generously opening up their coworking space and hosting a Friday night Python Data Hack Night for all attendees of the Workshop and any others who want to geek out on Python, data analysis, and scientific computing! Spend a fun evening eating, drinking, coding, and talking shop with the instructors and participants of the Workshop. This includes the authors of Numpy, Scipy, IPython, Matplotlib, PyTables, Pandas, and many other great Python packages. Ground Floor has room for up to 200 folks, so if you are on the wait list for the full Workshop, this is your chance to participate in the workshop! We are making tickets available to all those who registered for the Python Data Workshop (attendees and wait list), before publicizing the event more widely, so sign up now! The event runs from 6pm until Midnight. We are looking for sponsors to cover food and drinks, but we do expect to have those there. For sponsorship details, contact lynnben...@geekaustin.org Ground Floor SV 2030 Duane Avenue Santa Clara, CA 95054 Friday, March 2, 2012 from 6:00 PM to 11:55 PM (PT) JDH -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Set width before saving
On Feb 28, 2012, at 4:03 PM, Benjamin Root ben.r...@ou.edu wrote: The size of the PNG will be based on the size of your figure object. When you create your figure, you can pass a figsize kwarg which takes a tuple of width, height in inches (defaults to 8 x 6, I think). fig = plt.figure(figsize=(10.0, 6.0)) With an existing Figure instance, you can also call fig.set_figwidth(width_inches) before saving (or set_figheight or set_size_inches) http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure JDH -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] get parent or child from twinx() or twiny()
On Tue, Feb 28, 2012 at 12:45 PM, Federico Ariza ariza.feder...@gmail.comwrote: Hello everybody This is my first post to the list. Welcome. To the point. I want to access the all the axes located where a mouse event occurred. My first try is with button_release_event The event will include inaxes, so I know the axes where the mouse event occurred. This is fine if at that location I have only one axes. If I have a twinx or twiny I only get the axes with the biggest zorder. The example: import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot(range(100),range(100)) ax1 = ax.twinx() plt.show() You can get all the x-axes shares with ax1 (not including ax1) with the following: sharedx = [ax for ax in ax1.get_shared_x_axes().get_siblings(ax1) if ax is not ax1] sharedx is a list of axes who share the x-axis with ax1 The question Having either ax or ax1 is it possible to find the other? In other words, from a given axes instance, is it possible to know which other axes share the same xaxis or yaxis? -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] image rescale on intervall
On Feb 27, 2012, at 6:16 AM, jonasr jonas.rueb...@web.de wrote: Hello, i am actually trying to plot a vector field over a scalar field, i want to show a vector field on the intervall x=[0,1] y=[0,1] this works fine so far, actually i have the problem that if i plot the scalarfield via imshow() the image geht scaled by the size of the array. i.e. if i have a 100x100 array the image is drawn on an [0,100] intervall, is there any possibility to bring the image down to an [0,1 ] intevall independent of the array size ? Take a look at the extent argument to imshow. http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow You want something like extent=[0,1,0,1] -- 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, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Enjoy all them spammers
On Sun, Feb 19, 2012 at 10:15 AM, Jerzy Karczmarczuk jerzy.karczmarc...@unicaen.fr wrote: I believe that the list owners will have to strenghten some tools to fight against all those shameless spammers. I wade through about 20 gated messages a day in the mpl administrative interface. 90% are spam, the remainder are legitimate. Most spammers just post to the list without bothering to subscribe, so we catch most of them in the administrative interface. Apparently debl either subscribed or hijacked the account of a subscriber. I think we get no more than a few spams a year, so we aren't doing too badly. The vacation auto-responders are getting to be an annoyance though -- any of you who use them please configure them not to respond to mailing list traffic. i unsubscripted debl, our most recent spammer, so we'll see how that works. JDH -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] add a single x tick label
On Wed, Feb 8, 2012 at 8:42 AM, David Craig dcdavem...@gmail.com wrote: 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, It's fairly easy to do if you want to set the tick locations and labels youself (see http://matplotlib.sourceforge.net/users/artists.html near the end for an overview of the mpl containers like Tick and the attributes they contain). import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(1) ax.plot(np.random.randn(10,2)*10) locs = np.arange(2, 10, 2) labels = ['%d'%loc for loc in locs] ticks, labels = plt.xticks(locs, labels) i = 2 # tick1line and tick2line are matplotlib.lines.Line2D instances ticks[i].tick1line.set_color('red') ticks[i].tick2line.set_color('red') labels[i].set_color('red') plt.show() If you want to add a tick using the existing mpl auto tick locating and labeling infrastructure, it is also possible but you will need to subclass the tick locator. JDH -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Strange plot_date problem
On Wed, Feb 8, 2012 at 10:06 AM, Ted To rainexpec...@theo.to wrote: If it hasn't been fixed, is there a workaround? On 02/08/2012 10:42 AM, Ted To wrote: I believe I have traced it to some axhline and axis commands and this is apparently an old problem. Does it work with version 1.1.0? I have 1.0.1 installed on a debian system. Can you print(dates) before calling plot in the environment in which it fails and post the output here. JDH -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Strange plot_date problem
On Wed, Feb 8, 2012 at 10:24 AM, Ted To rainexpec...@theo.to wrote: On 02/08/2012 11:17 AM, John Hunter wrote: On Wed, Feb 8, 2012 at 10:06 AM, Ted To rainexpec...@theo.to mailto:rainexpec...@theo.to wrote: If it hasn't been fixed, is there a workaround? On 02/08/2012 10:42 AM, Ted To wrote: I believe I have traced it to some axhline and axis commands and this is apparently an old problem. Does it work with version 1.1.0? I have 1.0.1 installed on a debian system. Can you print(dates) before calling plot in the environment in which it fails and post the output here. JDH Sure, the commands where it crashes and the output are: print dates pyplot.axis([0, len(prices.label[0]), -1.5, 1.5]) OK, here is where the problem is. In the plt.axis call you are setting the x-axis min to 0 which is not a legal date value. I suggest letting the x-axis take care of itself, and set the y-axis limits with plt.ylim(-1.5, 1.5) JDH -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] use the github version on a linux box
On Wed, Feb 8, 2012 at 11:06 AM, Chris plut...@gmail.com wrote: I was trying to test the patch mike put in to fix the single pixel plotting issue, but just realized that this was a Mac version. Can I use it on a linux box? How? These instructions are for an ubuntu based system -- if you are on a different version of linux you may need different commands to install git and the mpl build dependencies # install git to checkout the mpl src code sudo apt-get install git # install the pre-reqs to build matplotlib from source sudo apt-get build-dep python-matplotlib # get the latest released branch of matplotlib git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git # cd into the matplotlib directory and create a branch off of the release branch to test cd matplotlib.git git checkout -b mdboom-pixel_marker v1.1.x # pull in Michael's changes git pull https://github.com/mdboom/matplotlib.git pixel_marker # build the matplotlib source code python setup.py build # install it sudo python setup.py install -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] use the github version on a linux box
On Wed, Feb 8, 2012 at 11:39 AM, Chris plut...@gmail.com wrote: Thanks John. Since I already have a running copy of mpl, I skipped to the git clone step, but get this error: Permission denied (publickey). fatal: The remote end hung up unexpectedly I'm a complete noob on git, so please bear with me. I think I should have pointed you to the read only address. Try this: git pull git://github.com/mdboom/matplotlib.git pixel_marker JDH -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] use the github version on a linux box
On Wed, Feb 8, 2012 at 11:58 AM, Chris plut...@gmail.com wrote: This time the error is: fatal: Not a git repository (or any of the parent directories): .git I guess that I have not be able to establish a local git tree since the command git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git did not go through. I see, that is also the ssh version. Here is the http read only version. Updated my complete instructions: # install git to checkout the mpl src code sudo apt-get install git # install the pre-reqs to build matplotlib from source sudo apt-get build-dep python-matplotlib # get the latest released branch of matplotlib git clone git://github.com/matplotlib/matplotlib.git matplotlib.git # cd into the matplotlib directory and create a branch off of the release branch to test cd matplotlib.git git checkout -b mdboom-pixel_marker v1.1.x # pull in Michael's changes git pull git://github.com/mdboom/matplotlib.git pixel_marker # build the matplotlib source code python setup.py build # install it sudo python setup.py install -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] use the github version on a linux box
On Wed, Feb 8, 2012 at 12:06 PM, Tony Yu tsy...@gmail.com wrote: git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git did not go through. - Chris I don't think you want the .git at the very end of the clone command. That just tells get where (i.e. new directory) to put the repo. I don't think that is the problem. I just add the .git extension because the default is to check out a directory called matplotlib which if it is located in the path you are running or testing from, will confuse the import. So I just add some extension so python won't confuse the mpl src dir (matplotlib.git) with the mpl package (matplotlib). -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] plot_date again
On Wed, Feb 8, 2012 at 1:12 PM, Ted To rainexpec...@theo.to wrote: Is it possible to force the date ticks to be the same in two different plots? For example, the attached figures cover the same time spans but in one, the data are weekly and the other, monthly. While there is nothing really wrong with different tick marks, aesthetically it would be nice if they were both the same. Yes, just use the sharex keyword to share the x-axis between the two. Not only will they have the same ticks and labels, but when you pan and zoom in one the other moves with it. The example below does not use dates, but it will work with dates just the same. import matplotlib.pyplot as plt import numpy as np fig1 = plt.figure(1) ax1 = fig1.add_subplot(111) ax1.plot(np.random.randn(10,2)*10) fig2 = plt.figure(2) ax2 = fig2.add_subplot(111, sharex=ax1) ax2.plot(np.random.randn(10,2)*10) plt.show() JDH -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How matplotlib got me a job
On Mon, Feb 6, 2012 at 1:59 PM, Benjamin Root ben.r...@ou.edu wrote: Alternate title: How I finally convinced my Dad that open-source can put food on the table. Since this entire story got started on this mailing list, I figured it would be appropriate to end it here. Love the alternate title. I'm sure we can all substitute dad|mom|wife|husband|significant_other in that one. About a week later, I got a personal email from the original poster informing me that my solution worked perfectly. He also noticed that I was working in a neighboring building on campus and wondered just how much longer my PhD was going to take and if I had any interest in going into the private sector. (The company happened to deal with atmospheric science and my PhD is in meteorology). I love that a tiny bit of altruism turned into a good job for you. Recently my wife, who is a criminal defense attorney, decided to transition from criminal law to family law, and took on a pro-bono case of a friend who was in a tough spot (he was accused of spousal battery by a mentally ill wife and they had several young kids in the middle). At a Halloween party, she met someone who worked at a family law firm and began telling him about her case, and that led to a job interview and soon she'll be having her third interview with the firm. I don't know how it will turn out, but I'm pretty sure that she wouldn't have gotten this opportunity had she not taken on this case pro-bono. I grew up pretty much accepting the US ethos that 'there is no such thing as free lunch and no one works for free. So it came as a great surprise to me, sometime in 1994-1995, when I posted a question on comp.lang.awk about a script I was developing mixing sed and awk which parsed BibTeX. Some kind soul responded withing 12 hours, you should really be using Perl for this, *and* wrote a non-trivial, several hundred line piece of Perl to solve my problem. I was dumbstruck that someone would stay up all night solving a problem for me, not looking for anything except perhaps for credit. What I learned next was that altruism is infectious. I began diving deeply into Perl, mastering it, and answering other people's questions on the Perl mailing list. At one point, I was one of the top ten posters on the Perl mailing list -- no mean feat at the time -- mainly obsessively answering people's questions. Of course when I discovered Python, I dropped Perl faster than a hot potato, but that spirit of contributing to and benefiting from a community of people motivated not by a payback but by contributing to and participating in something excellent persisted. That free help that guy gave me on comp.lang.awk probably caused me to spend 8,000 hours over the next decade helping other people. I guess there is no such thing as free lunch. It turned out that the company realized the value of having on-staff a SciPy Guru (I still consider myself a beginner). After the usual visits and interviews, I was offered a position. At multiple times throughout the process, it was obvious to me that while it was good that I was an atmospheric scientist, what was most valuable to them was my knowledge, insight and expertise with Python and its tools. The lesson I hope everyone here can take in is that there are many companies out there that are using open-source tools and libraries for their purposes. Learning and using these tools for your own purposes not only solves your immediate needs, but also sets you up for future opportunities. No doubt about this one. I have tried with mixed success on a number of occasions to hire people for a job in quantitative finance who possess skills in scientific python tools as well as statistics, and it is hard to find good matches. Whenever I meet other people like me who are trying to hire people, they all tell the same tale: it's hard to find talent. So if you have these skills and would like a job, contact me :-) I've been astounded by the degree of uptake of the scientific python toolset, and it is accelerating. As more and more people use these tools, more and more companies require them and most importantly, more and more talented developers put their energies into them. The amount of productivity being poured into not only the core tools but also pandas, scikits-learn, scikits-image, pystatsmodels and others is awesome, and is definitely taking the tool chain to the next level. Therefore, I would like to thank John Hunter for making matplotlib available for the community, and a hearty thanks to the rest of the community for their contributions to matplotlib. Without this, I doubt I would have found this job opportunity, nor have the value-added skills to have them consider hiring me. You're welcome, but I owe you a significant thanks as well. As my time for significant development has dwindled, the major contributions by you and the other developers has enabled the project to thrive. I hope that in your
Re: [Matplotlib-users] matplotlib and matlab figures?
On Jan 24, 2012, at 6:06 AM, Piter_ x.pi...@gmail.com wrote: Hi all. Hi all. Can I open matlab figure in matplotlib without conversion in any other format? I am 90% sure the answer for my question if not. But I give a 10% lazy hope that it is possible. No, and there are no plans to support it. We want to provide a fairly easy mental map for people familiar with matlab to use matplotlib, but don't expend any effort on full compatibility, eg running m-files and opening fig files. For that degree of compatibility, there is matlab itself and octave. JDH -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] PyPI has version 1.0.1
On Nov 2, 2011, at 10:47 PM, Benjamin Root ben.r...@ou.edu wrote: On Wednesday, November 2, 2011, John Hunter jdh2...@gmail.com wrote: On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root ben.r...@ou.edu wrote: I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so pip and easy_install install version 1.0.1 instead of version 1.1.0. Can somebody update the listing at the PyPI site? Thanks, Scott And if somebody knows how, let me know so I can add it to the notes for the developer section? I updated pypi, so please let us know if there are any more problems So the instruction should be to remind John Hunter to update the entry in PyPi? Got it. Even better, it should be: 1) update the release notes in the devel docs 2) give Ben access to the pypi acct. JDH-- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Unit testing code that generate matplotlib plots
On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney wesmck...@gmail.com wrote: Hi guys, Is there a common practice for unit testing code that creates matplotlib plots? I'm mainly just interested in code coverage versus correctness (making sure the code *works*) for now. I guess one way would be to disable the GUI backend so GUI elements don't get created (if the user is running the test suite from inside IPython in pylab mode, for example). Any tips or pointers to projects that do this would be very helpful. We have a unit testing framework for comparing images against baseline images using PIL to compare approximately close at the rendering level. The code lives in matplotlib.testing and is triggered by matplotlib.test. It might be heavyweight for what you want, so if all you want to do is insure it runs just create some figures using the agg backend and call savefig. You can use the pyplot.switch_backends to switch backends if you are concerned about a user calling it from ipython in an interactive session. JDH JDH -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] PyPI has version 1.0.1
On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root ben.r...@ou.edu wrote: I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so pip and easy_install install version 1.0.1 instead of version 1.1.0. Can somebody update the listing at the PyPI site? Thanks, Scott And if somebody knows how, let me know so I can add it to the notes for the developer section? I updated pypi, so please let us know if there are any more problems -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Updating/drawing all axes.
.draw() On Sun, Oct 30, 2011 at 10:51 AM, Daniel Welling dantwell...@gmail.com wrote: Greetings, MatPlotLibbers. Since 1.1, pyplot.draw() in interactive mode only updates the current axis. If I want to update many axes, I need to use sca() and draw() for each one. Is there a way to update all axes? I'm not seeing this, and I'm not sure *why* it would be occurring for you. plt.draw triggers a call to fig.canvas.draw which calls draw on all axes. Here is some example code in ipython, which has 'ion. In [2]: fig, axes = plt.subplots(2) In [3]: axes[0].plot([1,2,3]) Out[3]: [matplotlib.lines.Line2D at 0x4b90550] In [4]: axes[1].plot([1,2,3]) Out[4]: [matplotlib.lines.Line2D at 0x4b90610] In [5]: plt.draw() The call to 'plt.draw' on line 5 triggers a draw to both axes. Can you provide an example which exposes your problem? Please also provide backend and OS information In [6]: !uname -a Linux pinchiepie 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux In [7]: import matplotlib; print matplotlib.__version__ 1.2.x In [8]: matplotlib.rcParams['backend'] Out[8]: 'WXAgg' JDH -- Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World#153; now supports Android#153; Apps for the BlackBerryreg; PlayBook#153;. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Legend and proxy artists
On Thu, Oct 27, 2011 at 8:12 AM, Adam Mercer ramer...@gmail.com wrote: Hi I have recently updated to Matplotlib-1.1.0 and now one of my scripts displays the following warning: UserWarning: Legend does not support [[matplotlib.lines.Line2D object at 0x1026296d0]] Use proxy artist instead. http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist The link it refers to doesn't seem to be much help, and I can't see what I need to do in order to correctly display the legend. Below is the appropriate plotting section of my script, could anyone offer suggestions as to how to correctly display the legend? # plot size, scale by golden ratio fig = pyplot.figure() fig.set_size_inches(10, 10 / ((1 + math.sqrt(5)) / 2)) date_axes = fig.add_subplot(111) # setup secondary axes value_axes = date_axes.twinx() # set plot labels date_axes.set_xlabel(Date) date_axes.set_ylabel(Time) value_axes.set_ylabel(Value) # produce plot morning_plot = date_axes.plot_date(morning[:,0], morning[:,1], 'bo-', ms=4) evening_plot = date_axes.plot_date(evening[:,0], evening[:,1], 'go-', ms=4) value_plot = [] for v in value: value_plot.append(value_axes.plot_date(w[:,0], w[:,1], 'ro-', ms=4)) # legend date_axes.legend(([morning_plot], [evening_plot], [value_plot]), (Morning, Evening, Value), numpoints=1, loc=0, borderpad=1, shadow=True, fancybox=True) # save plot fig.savefig(plot_file) Your problem is that value_plot is a list of lists, and not a list of lines. ax.plot_date returns a list of lines, so you need to do value_plot.extend(value_axes.plot_date(w[:,0], w[:,1], 'ro-', ms=4)) rather than calling append. The legend method expects a list of matplotlib artists, not a list of lists. JDH -- The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib 1.1.0 Error in triangulation.py
On Mon, Oct 17, 2011 at 6:58 PM, Floyd John john.fl...@environment.nsw.gov.au wrote: Hello, I have read your instruction for bug reporting but this is fairly simple. There is a call to self.get_cpp_triangulation() which exists but there is also a call to self._get_cpp_triangulation at line 174 to obtain the neighbours. Easy to fix. Thanks for the report. Even easy issues are best reported on the issue tracker so they will be less likely to fall between the cracks, we can tag them and assign developers to them, etc. I've opened https://github.com/matplotlib/matplotlib/issues/535 JDH -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib.rcParams(update) and parallel python
On Mon, Oct 17, 2011 at 2:57 PM, tinux hoffmann.mar...@gmail.com wrote: I have around 100 python files, that each create one figure using matplotlib. Since I want to use all CPU cores, I basically did for filename in files: execfile(filename) using a python script. However, this does not produce the same output as running each file separately (for instance axes, figure size are sometime wrong). I _think_ I narrowed it down to this: In all files I need to do matplotlib.rcParams(update). I guess that this influences the matplotlib rc parameters and thus somehow values from some figures are used for others. So, my question is, how can I do something like matplotlib.rcParams(update) so that it does not influence other scripts that are run in parallel using 'execfile'? Or, how do I set rc parameters for one specific script? BTW, I tried 'pp' and 'multiprocessing', same problem with both. The problem is that the rc params are module level in matplotlib so in a persistent process like ipython if one script modifies the rc params, subsequent files executed in the same process will be affected. You can restore the rc params to their default state by doing before each call to execfile import matplotlib matplotlib.rc_file_defaults() We face the same issue in the plot_directive which we use when building the matplotlib documentation. We define a function clear_state in https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/sphinxext/plot_directive.py#L484 which closes all open figures, restore the rc defaults, and the updates the defaults to an rc dictionary of the parameters we want for each run. -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] instance check, finding figure elements
On Sat, Oct 15, 2011 at 10:39 AM, josef.p...@gmail.com wrote: I'm building plots in stages using several different functions. Since the figure contains all information, I don't hand handles to individual elements around. What's the best way to check for a specific plot element? using isinstance, or are there specific attributes that could be checked? Checkout out Artist.findobj http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.artist.Artist.findobj Artist is the base class for everything in a matplotlib figure, the Figure, Axes, Axis, Text, Line2D, Polygon, etc, all derive from Artist, so you can call this method on any mpl object to recursively search for objects of a given type. By recursive, I mean search the objects children, their children, etc. See also http://matplotlib.sourceforge.net/users/artists.html for more info on the artist hierarchy. But for your specific example, each axes has an `images` attribute, which is a list of images it contains (this is detailed in the artist tutorial linked above, so you could simplify your code with something like: images = np.concatenate([ax.images for ax in fig.axes]) JDH -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] key_press_event weirdness
On Fri, Oct 14, 2011 at 7:18 AM, Jorge Scandaliaris jorgesmbox...@yahoo.es wrote: I run Arch Linux x86_64 and I am using the GTKAgg backend. I tried both with IPython and python directly (2.7.2). I am not seeing this on Linux x86_64 with backend GTKAgg version 2.22.0 on python 2.7. Eg, if I run: python simple_plot.py -dgtkagg and then hover over the axes window (w/o clicking on it but the window has the focus on hover) and press 'g') the grids is toggled. JDH -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] key_press_event weirdness
On Fri, Oct 14, 2011 at 8:52 AM, John Hunter jdh2...@gmail.com wrote: On Fri, Oct 14, 2011 at 8:46 AM, Jorge Scandaliaris jorgesmbox...@yahoo.es wrote: You're right, John, it works here too with the gtkagg backend. I have just noticed that I had different backend options set in matplotlib.conf and matplotlibrc. My initial report refers then to the Qt4Agg backend. OK, I can confirm this too on Qt4Agg version 4.8.3. I opened an issue here https://github.com/matplotlib/matplotlib/issues/525 I am no qt expert so perhaps someone else can suggest a solution. In the gtk backend, I believe we added: self.canvas.grab_focus() to support events w/o clicking on the canvas. -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Memory leak involving matplotlib in webapplication
On Thu, Oct 13, 2011 at 12:42 AM, Viktor Forsman viktor.fors...@gmail.com wrote: Hi, I have problems with a memory leak in a webapplication involving matplotlib. Basically, I have a function which usies the OO way of generating the graph, printing it to a StringIO object and returning that. I've posted a question with the details on stackoverflow (http://stackoverflow.com/questions/7740832/need-help-identifying-a-memory-leak-involving-matplotlib-and-flask). Any ideas are highly appreciated. What version of matplotlib and numpy are you using? Does it help to do: import gc gc.collect() after a call to plot total or plot month? Also, you appear to be adding data to plot_values and storing this on every call. Are you sure the leak is in mpl and not here? JDH -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] X Error since upgrade to 1.1.0
On Thu, Oct 13, 2011 at 8:03 AM, Neal Becker ndbeck...@gmail.com wrote: Using interactively (via emacs/ipython), on closing a plot window I see: X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x5802e1b Could you give us some more information. What operating system? Which matplotlib backend and GUI version? What version of ipython? What, exactly do you do to reproduce the problem? -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] ANN: matplotlib-1.1.0
A new release of matplotlib is available for download at https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0 There are lots of nifty new features like Sankey diagrams, an API for animations and movie making, enhanced 3D support, support for auto-layout of subplots with titles, xlabels and ylabels to prevent text from running off the edge of the figure (tight_layout), pyside supoprt, enhanced legends, and tons of other minor features and bug-fixes. See what's new at http://matplotlib.sourceforge.net/users/whats_new.html and the CHANGELOG at https://github.com/matplotlib/matplotlib/blob/v1.1.x/CHANGELOG and the commit history at https://github.com/matplotlib/matplotlib/commits/v1.1.x/ Please post issues on the github issue tracker and questions on the mailing list https://github.com/matplotlib/matplotlib/issues Thanks to all the matplotlib developers who contributed to this release, with special thanks to Michael Droettboom, Eric Firing, Benjamin Root, Jouni Seppänen, Kevin Davies and Jae-Joon Lee for lots of code contributions and bug fixes and to Christoph Gohlke and Russell Owen for the windows and OX X binary installers. JDH -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Color a line segment as a gradient?
On Thu, Sep 29, 2011 at 11:56 PM, Uri Laserson laser...@mit.edu wrote: Hi all, Does anyone have a good solution for taking a line segment and coloring it according to some gradient (where the start and end colors are the only two things specified for the line coloring)? This example shows how to apply a colormap to a line segment http://matplotlib.sourceforge.net/examples/pylab_examples/line_collection2.html JDH -- 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-d2dcopy2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] ANN: matplotlib-1.1.0rc1 available for testing
We have uploaded the first release candidate for matplotlib 1.1.0 for testing. * src and OSX versions for download: https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/ * windows binaries are available here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib * website and docs: http://matplotlib.sourceforge.net/rc/v1.1.0rc1/index.html * what's new: http://matplotlib.sourceforge.net/rc/v1.1.0rc1/users/whats_new.html * commit log: https://github.com/matplotlib/matplotlib/commits/v1.1.x/ * CHANGELOG: https://github.com/matplotlib/matplotlib/blob/v1.1.x/CHANGELOG Please let us know if you find problems. You can file issues at the github site https://github.com/matplotlib/matplotlib/issues Thanks to all the developers who have been working hard on this release. JDH -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Assign colors to list?
On Mon, Sep 26, 2011 at 12:05 PM, Katie Boyle katielbo...@gmail.com wrote: Hi All, I was wondering how I take a list of 250 discrete values and match up each value in the list to a color in the gist_rainbow colormap. I want the highest value to be red, and the lowest value to be blue. I then want to plot a point for each value in the list, and the point's color should represent its value. I cannot use contourf or any other function that does this automatically on a continuous grid--I need to plot individual points. I think you are looking for scatter, with the c argument being your intensity value. You can pass the gist_rainbow colormap to the scatter function via the cmap argument. See these examples http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo2.html -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Assign colors to list?
On Mon, Sep 26, 2011 at 12:24 PM, John Hunter jdh2...@gmail.com wrote: On Mon, Sep 26, 2011 at 12:05 PM, Katie Boyle katielbo...@gmail.com wrote: Hi All, I was wondering how I take a list of 250 discrete values and match up each value in the list to a color in the gist_rainbow colormap. I want the highest value to be red, and the lowest value to be blue. I then want to plot a point for each value in the list, and the point's color should represent its value. I cannot use contourf or any other function that does this automatically on a continuous grid--I need to plot individual points. I think you are looking for scatter, with the c argument being your intensity value. You can pass the gist_rainbow colormap to the scatter function via the cmap argument. See these examples http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo2.html Eg, In [43]: x, y, c = np.random.randn(3, 100) In [44]: plt.scatter(x, y, c=c, cmap='gist_rainbow') Out[44]: matplotlib.collections.PathCollection object at 0x981b22c -- 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 sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] xticks() shifted by 1
On Sat, Sep 17, 2011 at 3:09 PM, Eric Firing efir...@hawaii.edu wrote: On 09/17/2011 09:57 AM, Klonuo Umom wrote: Hi, please consider this snippet: import matplotlib.pyplot as plt d={} for i in range(1,21): d[i] = i**2 plt.plot(d.values()) This is plotting values against the zero-based index. What you want is plt.plot(d.keys(), d.values()) While this is safe because calls to keys and values will return lists in congruent order of no intervening dict modifications are made http://stackoverflow.com/questions/835092/python-dictionary-are-keys-and-values-always-the-same-order it is a bit fragile because there is no guarantee the dict keys will be ordered, right, which is probably not what the OP wants. Maybe x = sorted(d.keys()) y = [d[k] for k in x] plot(x, y) JDH -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Drawing on a figure, not a subplot
On Fri, Sep 16, 2011 at 4:10 PM, John Ladasky john_lada...@sbcglobal.net wrote: Now I would like to add the axis lines and arrows. In fact, I would prefer a FancyArrow object. I can see how to add non-text objects to an Axes, e.g.: ax = fig.add_subplot(111) ax.add_patch(my_arrow) But that isn't my goal here. I want to add lines to the FIGURE, outside of any Axes. Does anyone know how to accomplish this? Thanks! The artist tutorial covers drawing directly to a figure http://matplotlib.sourceforge.net/users/artists.html#figure-container I believe you could adapt the patches.FancyArrow to the same approach. JDH -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] canvas.draw() memory issue? (PyQt4)
Yes, it is possible. Everything that is possible in the pyplot interface is available in the API (the pyplot interface is a thin wrapper). Most plotting methods from pyplot like plot, semilogx, imshow, scatter, etc, are axes instances ax = fig.add_subplot(111) ax.imshow(...) and the title, xlabel, ylabel, etc, have associated set_* methods. ax.set_xlabel('some labe'). All of the examples in the API directory follow this pattern http://matplotlib.sourceforge.net/examples/api/index.html and you may want to take a look at the artist tutorial for a deeper understanding http://matplotlib.sourceforge.net/users/artists.html On Fri, Sep 16, 2011 at 8:44 AM, Keith Hughitt keith.hugh...@gmail.com wrote: Is it not possible to use imshow() in a Qt application then? -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] PDF (but not screen) output raises Path lacks initial MOVETO
On Thu, Sep 15, 2011 at 4:03 AM, Eric O LEBIGOT (EOL) eric.lebi...@normalesup.org wrote: It would be better if Matplotlib's backends were consistent, here (i.e. if it failed both on screen and when generating the PDF, or if it did not fail at all). I attach a slightly modified version of the original program: http://old.nabble.com/file/p32470066/t.py t.py . Commenting out the savefig() call makes the program work nicely (Mac OS X backend, MacPort's Matplotlib 1.0.1). I can replicate the bug on the 1.0.1 release branch but not on master, so it appears to have been fixed, but I am not sure which commit is responsible for the fix. Look for the fix in the next release, or upgrade from github if you need a fix sooner. Thanks for the report, JDH -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] canvas.draw() memory issue? (PyQt4)
On Fri, Sep 9, 2011 at 5:04 PM, Matt Earnshaw m...@earnshaw.org.uk wrote: Hi all, I am encountering a memory leak type issue when running the following, for example. http://codepad.org/TNuCLT3k Matplotlib version: 0.99.3 PyQt4 Version: 4.8.5 I found a thread in the archive relating to this issue which supposedly disappeared upon updating to PyQt 4.8.4 (I trust it would not have been reintroduced in going to .5). Can someone confirm or deny replication of this issue with their setup and/or offer a solution? This doesn't look like a leak, it looks like code error. You are creating unlimited numbers of figures w/o closing the old ones. And the use of pyplot with GUI code is not supported. You need to use the embedding_in*qt*.py approach. See the examples at http://matplotlib.sourceforge.net/examples/user_interfaces/index.html -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1
On Thu, Sep 15, 2011 at 11:42 AM, falbriard clau...@br.ibm.com wrote: Thanks Michael for your quick reply. I will consider use of the yum tool to install the per-requisite and future updates. Meanwhile I got a step forwards with help of the freetype developer forum and I succeeded to build the freetype2 from the source. So I've also repeated the python setup.py build which gave me a new error message cannot find -lz . See the linker command below: g++ -pthread -shared build/temp.linux-s390x-2.6/src/ft2font.o build/temp.linux-s390x-2.6/src/mplutils.o build/temp.linux-s390x-2.6/CXX/IndirectPythonInterface.o build/temp.linux-s390x-2.6/CXX/cxx_extensions.o build/temp.linux-s390x-2.6/CXX/cxxsupport.o build/temp.linux-s390x-2.6/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/local/lib64 -L/usr/lib64 -L/usr/lib64 -lfreetype -lz -lstdc++ -lm -lpython2.6 -o build/lib.linux-s390x-2.6/matplotlib/ft2font.so /usr/lib64/gcc/s390x-suse-linux/4.3/../../../../s390x-suse-linux/bin/ld: cannot find -lz That error means mpl could not find libz, which probably means you don't have libpng installed either. mpl has a fair number of dependencies. See http://matplotlib.sourceforge.net/users/installing.html#build-requirements On debian systems, there is a brilliant command apt-get build-dep python-matplotlib which will install everything you need to build mpl from source. SUSE is RPM based: is there anything equivalent in rpm yum land? -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1
On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes ocef...@gmail.com wrote: Hi, On SUSE you have zypper I'm not familiar with SUSE repos, but OpenSUSE repos do have matplotlib, just type: sudo zypper in python-matplolib that should install it for you. And if you want to build mpl from src, eg to track current development, is there a way in opensuse to automatically install all the build dependencies for python-matplotlib? -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] RuntimeError: could not open display
On Thu, Sep 1, 2011 at 1:23 PM, CompBio roger...@cs.colostate.edu wrote: BTW, the reason I specify a PDF backend is because I thought it would tell matplotlib not to try to use anything else behind the scenes such as an X-window display. It's working the way I want now, so I assume that's what it's doing. But at others have pointed out, your code is unnecessarily complex. Just do import matplotlib matplotlib.use('agg') import pylab and when you call savefig, you can pass ps, eps, pdf, png or svg and the mpl code will choose the right backend, and never launch a GUI. JDH -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] numpy datetime64 plans?
On Mon, Aug 29, 2011 at 2:56 PM, Mark Bakker mark...@gmail.com wrote: Hello List, Does anybody know of any plans to include support for the new datetime64 data type in numpy? If this is the new numpy standard for doing dates and times, it would be great if it would work with plot_date, for example. Just wondering (but boy, would I do a little dance when all this datetime stuff is fully operational and integrated), Should be fairly straightforward to write a converter. Just follow the example of DateConverter in matplotlib.dates :https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/dates.py: class DateConverter(units.ConversionInterface): Converter for datetime.date and datetime.datetime data, or for date/time data represented as it would be converted by :func:`date2num`. The 'unit' tag for such data is None or a tzinfo instance. @staticmethod def axisinfo(unit, axis): Return the :class:`~matplotlib.units.AxisInfo` for *unit*. *unit* is a tzinfo instance or None. The *axis* argument is required but not used. tz = unit majloc = AutoDateLocator(tz=tz) majfmt = AutoDateFormatter(majloc, tz=tz) datemin = datetime.date(2000, 1, 1) datemax = datetime.date(2010, 1, 1) return units.AxisInfo( majloc=majloc, majfmt=majfmt, label='', default_limits=(datemin, datemax)) @staticmethod def convert(value, unit, axis): If *value* is not already a number or sequence of numbers, convert it with :func:`date2num`. The *unit* and *axis* arguments are not used. if units.ConversionInterface.is_numlike(value): return value return date2num(value) @staticmethod def default_units(x, axis): 'Return the tzinfo instance of *x* or of its first element, or None' try: x = x[0] except (TypeError, IndexError): pass try: return x.tzinfo except AttributeError: pass return None units.registry[datetime.date] = DateConverter() units.registry[datetime.datetime] = DateConverter() -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] using matplotlib in web servers
On Sun, Aug 21, 2011 at 12:42 PM, Chris Withers ch...@simplistix.co.uk wrote: Hi All, The majority of the docs for matplotlib focus on making its behaviour like that of Matlab, however, I'm looking to use it to generate graphs for display by web apps. Where can I find good examples of doing this? (ie: multi-threaded, multi-process apps which may by simulaneously generating many plots for different users using different data) Check out this FAQ http://matplotlib.sourceforge.net/faq/howto_faq.html#matplotlib-in-a-web-application-server and the guide to the matplotlib OO heirachy http://matplotlib.sourceforge.net/users/artists.html and all of the examples in the API directory http://matplotlib.sourceforge.net/examples/api/index.html which emphasize the OO API and avoid the state-machine of the pylab matlab-like interface JDH -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot
On Wed, Aug 17, 2011 at 5:30 PM, hari jayaram hari...@gmail.com wrote: Thanks for your email Ben. Sorry I am still lost. I dont understand what the handles type is . In my example I guess the handles are an array of circles representing each x,y,z point.I am still a little lost since the plot autmatically plots my 3 arrays The color of each circle is arbitrary and stored a the color array. Even after looking at the examples I dont know how to construct my plt.legend() call. Take a look at the proxy artist section of the legend guide and see if that helps http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist JDH -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] [matplotlib-devel] Calling all Mac OSX users!
On Mon, Aug 15, 2011 at 9:34 PM, Benjamin Root ben.r...@ou.edu wrote: The mpl developers are getting very close to the long-awaited v1.1.0 release of matplotlib. Before we do so, we are doing some final checking of the documentation to make sure that all critical pieces of information iss correct and up to date. In checking over the instructions for building and installing matplotlib on MacOSX, I have found two separate sets of instructions. On the install page, there is a reference to a README.txt file in release/osx. This file is there, but it seems to refer to other files that no longer exists. Meanwhile, there is an un-referenced file in the top directory called README.osx that seems a lot more current. Because I do not have a Mac that I can use for development, I would like to ask the community for help in determining the correct set of instructions and to eliminate cruft. I think it would also be useful to point users to any relevant instructions for installing/building numpy on Macs. I would also like to make sure we are current with information on installing on a stock Lion install. Please feel free to respond on this list, or better, make a branch on github and submit pull requests to help us improve these documents. I wrote both of those files originally (make.osx and releases/osx/*). The original division of labor was the stuff in releases was designed to build the release binaries, and the stuff in make.osx was primarily used to build from svn or src. Overtime, most of the effort has gone into make.osx, and it now includes support for binaries. I no longer build the OSX binaries (Russell does) and no longer use OS X (back to ubuntu) so if Russell is not using the stuff in releases/osx, we can flush it. JDH -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] installation issues
On Mon, Aug 1, 2011 at 6:48 PM, Ivan D Vasin iva...@adverplex.com wrote: i came across some issues while attempting to install matplotlib today: first issue: no bug tracker matplotlib's website has a link to a bug tracker that is no longer available. i'm guessing this mailing list is the new bug tracker, which seems to me like a downgrade. second issue: outdated PyPI listing the current version of matplotlib is 1.0.1. but the PyPI download URL is such that it causes pip to install an older version, 0.91.1: $ pip install matplotlib Downloading/unpacking matplotlib Downloading matplotlib-0.91.1.tar.gz (3.9Mb): 3.9Mb downloaded [...] matplotlib devs: please fix your PyPI listing. I have looked at this several times on the pypi page as this has come up before and do not see anything wrong with the listing. The 0.91.1 listing is tagged as hidden and the 1.0.1 listing is the only release that is not hidden. I don't see any other way to flag the 1.0.1 listing as active. It may be that the 0.91.1 release was the last time I issued a pypi command from setup.py from the command line. There should be a way to fix this from the pypi web interface but I haven't found it.l If any other dev wants to look at it, I can share the password with you if you contact me. JDH -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos much more. Register early save! http://p.sf.net/sfu/rim-blackberry-1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Mlab - Rec_Summarize / Rec_GroupBy
On Fri, Jul 1, 2011 at 11:14 AM, Hackett, John (Norcross, GA) john.hack...@unisourceworldwide.com wrote: After some experimentation (and judicious peeking at the source code), I think I’ve got the hang of writing custom functions to pass into these modules – basically, anything that accepts a list of values sliced from a single column on the structured array and returns a single list seems to work well. In functional programming terms, rec_summarize appears similar to “map”, rec_groupby appears similar to “reduce”. Now – what if I want to derive a calculation from multiple statistics in the original dataset – eg. create a new column on the array which is derived from 2 (or up to n) other fields in a custom function which I pass into the process? For example, conditional counts/summaries (count transactions and sum the sales on all orders that weighed 5K lbs). Is there a way to do this within numpy or mlab without going all the way out to python and creating a list comprehension? There are a couple of ways with the existing functions. One is to use a logical mask:: mask = r.weight5 rg = mlab.rec_groupby(r[mask], groupby, stats) You could also create a new categorical variable with one or more values and attach it to your record array and then use rec_groupby:: heavy = np.where(r.weight5, 1, 0) and add that to your record array r = mlab.rec_append_fields(r, ['heavy'], [heavy]) and then do a rec_group_by using 'heavy' as your group by attribute. Brian Schwartz has a preliminary implementation of rec_query which allows you to make a SQL query on a record array by converting it to a sqllite table, running the sql query, and returning the results as a new record array, which would solve your problem more cleanly and generically. The code needs a little more polishing, but perhaps Brian you can send over what you have in case John wants to take a look. JDH -- 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] gimmicks/eye candy: Is for example fading possible?
On Wed, Jun 22, 2011 at 8:30 AM, Michael Droettboom md...@stsci.edu wrote: matplotlib doesn't currently support gradients. Patches welcome! :) It's probably a lot of work to get it working across all backends, but following the pattern of how hatches are handled now would probably be a good guide. There is however, the gradient hack, eg http://matplotlib.sourceforge.net/examples/pylab_examples/gradient_bar.html JDH -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Missing Data Points in plots generated using matplotlib
On Tue, Jun 7, 2011 at 5:16 PM, Shankararaman Ramakrishnan shankararaman_ramakrish...@trimble.com wrote: Hi, I use matplotlib as my python graphics library. I happen to see the following problems with the plot() function and would appreciate any help to resolve these problems! 1. Using the default line style under plot() results in the function dropping data points from the plot. Plotting the same data with a ‘dot’ linestyle shows the missing data points. 2. Any large outliers in a data set are generally excluded from the resulting plot. The original plot generated using the default linestyle does not show the large outliers in the dataset. Further comparing against the second plot shows missing data points which were not connected by the default linestyle. Several missing data points are not necessarily large outliers. My initial guess for missing large outliers was that the function was aliasing down large values. Missing nominal data points makes me wonder if the plot function internally generates a “best-fit” or least squares plot of the data points? This inconsistent plot occurs only with large data sets. The two plots were generated with over 10 (hundred thousand) data points. Would be happy to send you the original data if that may help troubleshoot this problem. In all liklihood, you are using an older version of matplotlib which had a bug in the path.simplify logic that caused some points to be dropped. The solution is to either upgrade to the latest matplotlib (1.0.1) or turn off path simplification by setting 'path.simplify : False' in your matplotlibrc http://matplotlib.sourceforge.net/users/customizing.html You can find out what version of matplotlib you are running by doing In [127]: import matplotlib In [128]: matplotlib.__version__ Out[128]: '1.0.1' JDH -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Increase max polygons/patches
On Thu, Apr 21, 2011 at 11:22 AM, Michael Droettboom md...@stsci.edu wrote: There is no hard coded limit to the number of quads in a pcolormesh. (Unlike the limit of the number of points in a path in the Agg backend). Can you provide some code that reproduces the error? Also, which version of matplotlib, platform and backend are you using? Is this potentially a path.simplify issue? If you set path.simplify to False in your rc params, does the problem go away? import matplotlib matplotlib.rcParams['path.simplify'] = False In older versions of matplotlib, there was a bug in path.simplify that caused it to simplify paths to the point where it caused perceptual problems. The current path.simplify is not supposed to produce detectable changes, so as Michael said please include your mpl version in your response. JDH -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] using matplotlib on a server
On Mon, Mar 28, 2011 at 8:19 AM, Paulo J. Matos pocma...@gmail.com wrote: Hi, I am trying to use matplotlib on a server which I don't run without it installed. I tried untarring it to a folder in the path of PYTHONPATH and using it directly without any luck. Has anyone successfully installed matplotlib and its dependencies under a user account? Sure, that's not particularly difficult. But untarring won't be enough. You also have to build it. We'd need to know more about your platform to help, but basically: install the dependencies and then run python setup.py install --prefix=~/mylocal On ubuntu and similar, you can get the build dependencies by first doing sudo python setup.py build_dep python-matplotlib See http://matplotlib.sourceforge.net/users/installing.html For running on a web app server, see also http://matplotlib.sourceforge.net/faq/howto_faq.html#matplotlib-in-a-web-application-server JDH -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Any update on streamline plot
On Sun, Feb 13, 2011 at 11:45 PM, Tom Flannaghan tj...@cam.ac.uk wrote: It would also be helpful if anyone has suggestions on a particular issue I had. Currently, to plot variable-width lines (i.e. streamlines2.png) I use a plot command for each line segment which is very slow and nasty. Is there a better way I'm missing? You probably want to use a compound path (one object for the entire plot). See the tutorial at http://matplotlib.sourceforge.net/users/path_tutorial.html, in particular the compound path for the histogram example near the end, and let me know if you have any questions. JDH -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] corrupt .tar.gz
On Thu, Jan 6, 2011 at 3:06 PM, aradea hakim arade...@gmail.com wrote: Hi all, I am trying to install matplotlib1.0.1 on my machine but somehow I keep on getting a corrupt .tar.gz file. This is the error message: tar: Skipping to next header gzip: stdin: invalid compressed data--crc error gzip: stdin: invalid compressed data--length error tar: Child returned status 1 tar: Exiting with failure status due to previous errors Any help would be appreciated. Thank you. Seems to work for me. What platform are you on -- can you verify the md5 sum of your download? Here is what I get (my md5 and sha sums match those reported on the sf download site) jdhun...@uqbar:tmp wget http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/matplotlib-1.0.1.tar.gz ...snip 2011-01-06 13:18:25 (159 KB/s) - `matplotlib-1.0.1.tar.gz' saved [13285166/13285166] jdhun...@uqbar:tmp md5sum matplotlib-1.0.1.tar.gz 2196c0482d5b33dc8d33f67bbafc1323 matplotlib-1.0.1.tar.gz jdhun...@uqbar:tmp sha1sum matplotlib-1.0.1.tar.gz c7a832f28a66817626e7a8af21e14ea0e15f4008 matplotlib-1.0.1.tar.gz jdhun...@uqbar:tmp tar tvf matplotlib-1.0.1.tar.gz |tail -5 -rw-r--r-- jdhunter/jdhunter9582 2010-07-06 18:41 matplotlib-1.0.1/lib/mpl_toolkits/axes_grid1/inset_locator.py -rw-r--r-- jdhunter/jdhunter 16648 2010-07-06 18:41 matplotlib-1.0.1/lib/mpl_toolkits/axes_grid1/parasite_axes.py -rw-r--r-- jdhunter/jdhunter 25637 2010-07-06 18:41 matplotlib-1.0.1/lib/mpl_toolkits/axes_grid1/axes_grid.py -rw-r--r-- jdhunter/jdhunter4658 2010-07-06 18:41 matplotlib-1.0.1/lib/mpl_toolkits/axes_grid1/axes_rgb.py -rw-r--r-- jdhunter/jdhunter 27358 2010-08-03 07:22 matplotlib-1.0.1/lib/mpl_toolkits/axes_grid1/colorbar.py -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] latest matplotlib requires python = 2.5
On Wed, Jan 5, 2011 at 9:51 AM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Jan 4, 2011 at 5:49 AM, Marcin Dulak marcin.du...@gmail.comwrote: Hi, the formlayout part in the latest matplotlib requires python = 2.5 See http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg19219.html That causes troubles on very popular in RHEL 5 based distributions - they use an old python 2.4 still. I already fixed this in my tree, haven't committed yet. Thanks, JDH -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Possible memory leak?
On Thu, Nov 18, 2010 at 2:20 PM, Benjamin Root ben.r...@ou.edu wrote: Interesting analysis. One possible source of a leak would be some sort of dangling reference that still hangs around even though the plot objects have been cleared. By the time of the matplotlib 1.0.0 release, we did seem to clear out pretty much all of these, but it is possible there are still some lurking about. We should probably run your script against the latest svn to see how the results compare. In our experience, many of the GUI backends have some leak, and these are in the GUI and not in mpl. Caleb, can you see if you can replicate the leak with your example code using the agg backend (no GUI). If so, could you post the code that exposes the leak. if not, I'm afraid it is in wx and you might need to deal with the wx developers. JDH -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Formatter dates
On Wed, Nov 17, 2010 at 2:29 AM, Tim Åberg qw...@hotmail.com wrote: Hello! I have now been tampering with a custom formatter and the more i think about it the more i feel there must be a more easy soulution. I have a set of values that are plotted over time (i use date2num, to get the conversion from date to num), i also have a list with dates that corresponds to these values; ['2010-11-05 10:27:45.605000', '2010-11-05 10:27:50.576000', '2010-11-05 10:27:55.913000'], this to not have to do a conversion back, i imagine its the most effective way to do it. Now to the question; The only two values in the datelist that is vital is the first and the last, in between i really just want to have values that corresponds lineary. Thats brings me to resoulution, if the values are far far in between, say weeks or even moth the time (h:s:ms) isnt so important and vice versa. Is there any formatter that do this sort of things? eg. takes in two values(dates) and format it by itself. Take a look at this example http://matplotlib.sourceforge.net/examples/api/date_index_formatter.html It's trying to solve a different but related problem: in financial time series you only have data on Monday - Friday, and you don't want to plot the gaps on weekends. So you plot the data linearly with an index, and use a custom locator and formatter to set and format the ticks. JDH -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Mac OSX backend
On Sat, Nov 13, 2010 at 7:46 AM, Michiel de Hoon mjldeh...@yahoo.com wrote: OK, thanks. With your example, I see a difference between the Mac OS X backend and the TKAgg/GtkAgg backend but only if interactive is False in matplotlibrc. If interactive is True, both the Mac OS X backend and the TkAgg backend open windows. Is this really the desired behavior? It seems counterintuitive that such a global parameter can determine whether a figure is opened or not. While we're on the topic, is this interactive parameter still needed in matplotlib? In my understanding, in older versions of matplotlib, interactive=False could significantly speed up some plots. But are there still any such cases with the current organization of the drawing code in matplotlib? Yes, this is the desired behavior. The interactive : True parameter is useful when working interactively from the shell, when want to do plt.figure() plt.plot([1,2,3]) plt.xlabel('a label') and have the figure show up on the figure call and update on the plot and xlabel call. This is most definitely not what you want to do in a script, because you don't want to pay for the draw until the end (when a call to show is made). This is discussed at http://matplotlib.sourceforge.net/users/shell.html JDH -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Mac OSX backend
On Sat, Nov 13, 2010 at 9:23 AM, Michiel de Hoon mjldeh...@yahoo.com wrote: Thanks for your reply. But nowadays drawing is done through draw_idle, so we don't trigger additional drawing even if interactive is True. In your example, if run as a script, there is no drawing until a call to show() is made, regardless of whether interactive is True or False. I see. I wasn't appreciating your point and had neglected to consider the idle drawing handling. Are we sure this will save us. Ie if we have a scirpt like # some plotting commands ... # some expensive non GUI computation ... # some update to plot above ... Would we not run the risk that the GUI is idle in the non GUI computation and therefore trigger a draw in it's thread, and then do redraws again after the update code? I did run some tests and confirmed what you said, that with the idle handling the repeat calls to pyplot commands did not generate extra calls (except in qtagg in which I suspect the idle handling has not been implemented. Are you proposing that we can get rid of the interactive setting entirely, always call draw on pyplot commands, and let the idle handler save us from doing repeated draws? -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Linecollection, Dates on X-axis
On Nov 12, 2010, at 4:12 AM, Tim Åberg qw...@hotmail.com wrote: Thats seems to be what im after, diffrent resolution but that would be a easy fix i guess :) Did you manage to run the example? i got a; datafile = cbook.get_sample_data('msft.csv', asfileobj=False) AttributeError: 'module' object has no attribute 'get_sample_data' error get_sample_data is only available in mpl 1.0 and later. -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Figure and Canvas
On Fri, Nov 12, 2010 at 4:20 AM, Olivier Verdier zelb...@gmail.com wrote: Hi, I would like to use matplotlib in a programmatic way. I thought about creating a Figure object (with no canvas), and plot in that Figure. Depending on what the user wants, I could then either plot on screen or save on file. The problem is that I don't know how to connect a Figure object to the FigureCanvas that the user chose in its preference file. In other words, I would like to do what the function figure() does, but for an existing Figure object. How could I do that? If you are using a GUI backend (eg GTKAgg, WXAgg, TkAgg, QtAgg) for your user interface and call fig.savefig with a hardcopy extension like PDF, PNG, SVG, EPS or PS, it will do the backend switching for you. If you'd like to see an example of how to do that for your own code if you need to, search for switch_backends in FigureCanvasBase: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/backend_bases.py?revision=8791view=markup JDH -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Mac OSX backend
On Thu, Nov 11, 2010 at 7:32 PM, Michiel de Hoon mjldeh...@yahoo.com wrote: For this example, I am finding the exact same behavior with the Mac OS X backend as with the gtkcairo and gtkagg backends (on Mac OS X and Cygwin). If this is a bug, then which backend can we use as an example of the correct behavior for this code? On a quick test, the following script import matplotlib.pyplot as plt for i in range(4): fig = plt.figure() (no show) run with -dTkAGG and -dGTKAgg, does not raise a figure window in svn HEAD. I thought the OP was complaining that the figure was being raised w/o a call to show in macosx (don't have ready access to test on an osx box right now) JDH -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Mac OSX backend
On Nov 11, 2010, at 4:15 AM, mdekauwe mdeka...@gmail.com wrote: Hi, I have my backend set up in my .matplotlib/matplotlibrc file as: backend : MacOSX However if I run a script which does multiple plots and I don't ask the script to display the plots (i.e. not imshow()), I still get blank windows popping up. Does anyone else have this problem? Any solutions? Please post the script that is giving you problems JDH -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Mac OSX backend
On Thu, Nov 11, 2010 at 6:32 AM, mdekauwe mdeka...@gmail.com wrote: It isn't any one script, if you did import numpy as np import matplotlib.pyplot as plt x = np.arange(10) for i in xrange(10): plt.plot(x) plt.savefig('x.png') it pops up the plot window even though I didn't ask it to. I don't get this functionality on a non mac system. So I wonder if it relates to the choice of backend I see -- so it is raising the window even w/o show. This is a bug, but a minor one. I suggest at the top of your script (before pyplot import) doing import matplotlib matplotlib.use('agg') if you only want to save hardcopy png -- macosx may not support offline rendering. -- Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem with negative numbers on axes in EPS file when using in Latex file
On Wed, Nov 10, 2010 at 6:38 AM, Mark Bakker mark...@gmail.com wrote: I have a pretty wacky problem. I create a figure which includes negative values along the y-axis: plot([-1,1]) for example. I save the figure as EPS. When I look at the figure with preview on my Mac it looks fine. When I import the figure in my Latex document the negative values disappear. My solution has been to use eps2eps on the eps file created by mpl, and this solves the problem. So apparently there is something not quite standard on the EPS file created by MPL. Is this a bug? I am running version 0.99.3 (Enthought dis) on a Mac running Leopard. mpl by default uses the unicode minus symbol rather than the hyphen to indicate negative numbers. It looks like your system may not be recognizing it. The easiest solution is to set axes.unicode_minus : False in your matplotlib rc. JDH -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] python v ipython problem in imshow()
On Wed, Nov 10, 2010 at 5:43 AM, Garry Willgoose garry.willgo...@newcastle.edu.au wrote: John, OK by looking at matplotlib.rcParams['backend'] I've been able to diagnose this a little more. When the backend is 'WXAgg' everything looks fine. The axes have (0,0) where you would expect and the data is plotted correctly. However, when the backend is 'MacOSX' the axes again have (0,0) where you would expect but the data is plotted so it is flipped vertically (i.e. what is at the top is at the bottom, and vice versa). It doesn't look like an issue between python and ipython, or at least I don't seem to have been able to reproduce it tonight I'm using matplotlib version 0.99.1.1. Is this likely to be fixed in V1.0? I haven't upgraded to the latest enthought distribution because I had some problems with the binary extension libraries I have written ... I ought to sort it out but I've got a bit of deadline approaching and I'd prefer to leave it til later It looks like the macosx backend has not implemented support for the image origin parameter. I'm CC-ing Michiel, the macosx author, to see if this is something he can add support for. Thanks, JDH -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] python v ipython problem in imshow()
On Wed, Nov 10, 2010 at 9:48 AM, Michiel de Hoon mjldeh...@yahoo.com wrote: Garry, if the bug still exists in matplotlib 1.0 could you open a bug report for it? I think Gary doesn't have easy access to 1.0. Here is the relevant example if anyone has 1.0 on macosx to test with http://matplotlib.sourceforge.net/examples/pylab_examples/image_origin.html JDH -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib sphinxext crashes in sphinx-build
On Thu, Nov 4, 2010 at 11:43 AM, Elizabeth Yip Dembart elyip.demb...@gmail.com wrote: Thank you for the prompt response. I cannot run matplotlib directly. It crashes as I tried to import matplotlib.pyplot: sphinx/sampledoc python Python 2.6 (r26:66714, Dec 3 2008, 10:55:18) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type help, copyright, credits or license for more information. import matplotlib.pyplot as plt Segmentation fault (core dumped) What do you mean by the Agg backend? This is our core rendering engine -- see http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend The problem you are experiencing has nothing to do with sphinx or the sphinx extensions, but is in your matplotlib installation. It may be a SUSE bug, or you may be getting conflicting installs from the stuff you are getting from SUSE and the stuff you are easy installing. First thing to do is start nailing down what you are getting and where you are getting it from. Paste these commands into your python shell and report the output import numpy as np print np.__file__ print np.__version__ import matplotlib as mpl print mpl.__file__ print mpl.__version__ A likely culprit is that you have an mpl compiled against one version of numpy and you are dynamically linking against another that is not ABI compliant. JDH -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib sphinxext crashes in sphinx-build
On Thu, Nov 4, 2010 at 12:06 PM, Elizabeth Yip Dembart elyip.demb...@gmail.com wrote: Thanks !! Here is the output from the python section you suggested: /sampledoc python Python 2.6 (r26:66714, Dec 3 2008, 10:55:18) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type help, copyright, credits or license for more information. import numpy as np print np.__file__ /usr/lib64/python2.6/site-packages/numpy/__init__.pyc print np.__version__ 1.2.1 import matplotlib as mpl print mpl.__file__ /usr/lib64/python2.6/site-packages/matplotlib/__init__.pyc print mpl.__version__ 1.0.0 Well, they are both coming from the same place so it looks like the SUSE build of each. But the numpy version is quite old. Looks like it may be an OPENSUSE bug http://forums.opensuse.org/english/development/programming-scripting/416182-python-matplolib.html You could consider building matplotlib from source. http://matplotlib.sourceforge.net/users/installing.html http://matplotlib.sourceforge.net/faq/installing_faq.html#source-install http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn or upgrading your linux distribution (ubuntu 10.10 is nice) JDH -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] recipes in the docs
I added a new section of the docs users/recipes.rst. This is meant to be a cookbook style place to place short tutorials, annotated examples, idioms and snippets. http://matplotlib.sourceforge.net/users/recipes.html I've added a few things already and would love to see contributions from users and developers, which you can submit as a svn diff http://matplotlib.sourceforge.net/faq/howto_faq.html#contribute-to-matplotlib-documentation JDH -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] plotting slow in directories with many files
On Mon, Oct 18, 2010 at 8:42 AM, Michael Droettboom md...@stsci.edu wrote: matplotlib, under normal usage, doesn't list all files in the current directory. Can you provide the steps you perform before calling show()? What platform are you on, and which backend are you using?\ The only thing I could think of is that matplotlib.matplotlib_fname does: fname = os.path.join( os.getcwd(), 'matplotlibrc') if os.path.exists(fname): return fname So if os.path.exists is slow for directories with many files, this could be the culprit (though it would surprise me). Maximilian, these lines are found in matplotlib/__init__.py -- you may want to try commenting them out and rerunning to see if this helps your issue. JDH -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] 3d plot without marker edge
On Fri, Oct 15, 2010 at 3:10 AM, Robert Fenwick robert.fenw...@irbbarcelona.org wrote: I have a 3d plot that I am trying to plot and I can not get rid of the marker edge. an example would help What have you tried -- if line is a Line3D object, the following should work: line.set_markeredgecolor('None') Note that 'None' is a string here, not the python object None. This is because None in matplotlib properties means do the default, ie the default value specified in matplotlibrc http://matplotlib.sourceforge.net/users/customizing.html JDH -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] user group video
On Thu, Oct 14, 2010 at 2:07 PM, Carl Karsten c...@personnelware.com wrote: yep - thanks. Not exactly how I remember it from the talk. wonder where the story got changed. Hey Carl -- I added the talk video link on the mpl website http://carlfk.blip.tv/file/2557425 The dolphins story you were referring to starts around 39:30. Not sure how your memory of the story got deformed :-) JDH -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Equation
On Wed, Oct 13, 2010 at 9:28 AM, Waléria Antunes David waleriantu...@gmail.com wrote: Hi all, I know here is a group for matplotlib, but can anyone help me? I need to pass this integral equation for for scipy.integrate pack for python. My integral equation is attached. Can anyone help me? 1. Subscribe to scipy-users: http://projects.scipy.org/mailman/listinfo/scipy-user 2. Describe your problem in more detail on scipy-users. 3. Most importantly, show what work you have already done, where you are stuck and why. Post code. Noone wants to do your homework -- people are willing to help those who are working hard on a problem. JDH -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] dolphin save as svg broken
On Wed, Oct 13, 2010 at 10:19 AM, Carl Karsten c...@personnelware.com wrote: On Wed, Oct 13, 2010 at 8:33 AM, Michael Droettboom md...@stsci.edu wrote: On 10/12/2010 07:16 PM, Fernando Perez wrote: On Tue, Oct 12, 2010 at 3:03 PM, Carl Karstenc...@personnelware.com wrote: Run the code, you get a window that has a 'save' button, the dialog has a 'type svg' option the svg renders with the blue/green dots everywhere (rendering using both rsvg-view and inkscape, which use different rendering engines.) save as png, display png, dots only inside circle. Yup, clipping is completely broken in SVG, reported here: http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTik-Ty-V-QFEmkjhJH%2B-%3DtEZTTXyJLXxW%2B34E_hh%40mail.gmail.comforum_name=matplotlib-devel Yes, but this is fixed in SVN 1.0 branch and trunk -- at least for me. Not for you? c...@dc10:~/Videos/veyepar/test_client/test_show/flv$ apt-cache policy python-matplotlib python-matplotlib: Installed: 0.99.3-1ubuntu1 Candidate: 0.99.3-1ubuntu1 Version table: *** 0.99.3-1ubuntu1 0 500 http://us.archive.ubuntu.com/ubuntu/ maverick/universe amd64 Packages 100 /var/lib/dpkg/status Is there a PPA that tracks trunk? I suggest sudo apt-get build_dep numpy scipy matplotlib svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib cd matplotlib python setup.py install --prefix=~/something and then set your PYTHONPATH accordingly. See also http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] dolphin save as svg broken
On Wed, Oct 13, 2010 at 10:45 AM, Carl Karsten c...@personnelware.com wrote: Need to get 535MB of archives. I am on a pretty slow shared connection, so need to wait a week to get back home before I do this. How much does just the mpl part cost you? -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Best way to use Excel Data
On Thu, Oct 7, 2010 at 12:27 PM, Michael Droettboom md...@stsci.edu wrote: You may want to look at this as well: http://matplotlib.sourceforge.net/api/mlab_api.html?highlight=csv#matplotlib.mlab.csv2rec And these examples: http://matplotlib.sourceforge.net/search.html?q=codex+csv2rec JDH -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users