Re: [matplotlib-devel] pdf file path or other problem in docs?
On Tue, Jun 17, 2008 at 5:47 PM, John Hunter <[EMAIL PROTECTED]> wrote: > There are significant changes to image handling, how they are copied > etc, between the prior sphinx version and HEAD, so I suspect we need > to figure out if we need to do something different or if it is a > plain-ol-bug. I suspect the latter. > > I'll post on the sphinx list. This bug is fixed in sphinx svn so another svn up is required. JDH - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] PNG transparency
Hi all, Is it possible to produce transparent png's with mpl ? Nils - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] PNG transparency
On Wed, Jun 18, 2008 at 8:56 AM, Nils Wagner <[EMAIL PROTECTED]> wrote: > Is it possible to produce transparent png's with mpl ? Yes, but you must explicitly set the transparency on every object you want to be transparent:: fig = plt.figure() fig.figurePatch.set_alpha(0.5) ax = fig.add_subplot(111) ax.axesPatch.set_alpha(0.5) l, = ax.plot(x, y, alpha=0.8) t = ax.set_xlabel('hi', alpha=0.8) and so on I wonder if we should support a global rc alpha JDH PS: these kinds of questions are best for the users list. In general: "how do I?" or "does such a feature exist?" or "why doesn't this work?" or "can you add this feature?" should go on users. "this is broken in svn" or "will you accept this patch" or "shouldn't the function x do something else?" and the like should be on the devel - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] PNG transparency
On Wed, 18 Jun 2008 09:17:27 -0500 "John Hunter" <[EMAIL PROTECTED]> wrote: > On Wed, Jun 18, 2008 at 8:56 AM, Nils Wagner > <[EMAIL PROTECTED]> wrote: > >> Is it possible to produce transparent png's with mpl ? > > Yes, but you must explicitly set the transparency on >every object you > want to be transparent:: > > fig = plt.figure() > fig.figurePatch.set_alpha(0.5) > > ax = fig.add_subplot(111) > ax.axesPatch.set_alpha(0.5) > > l, = ax.plot(x, y, alpha=0.8) > > t = ax.set_xlabel('hi', alpha=0.8) > > and so on > > I wonder if we should support a global rc alpha > +1 Nils - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] PNG transparency
Nils Wagner wrote: > "John Hunter" <[EMAIL PROTECTED]> wrote: >> I wonder if we should support a global rc alpha I'd make it an optional parameter to savefig(), but I like the idea. Of course one could pretty easily post-process it as well. -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] PNG transparency
Of course, this depends on what you mean by transparency. If you mean to change the alpha of the entire PNG, then yes, the global parameter (or postprocessing) is the way to go. But I'm not sure how useful that is -- that will still lighten things behind the figure and axes patch. A more useful option, IMHO, would be to just make the figure patch and axes patch fully transparent and leave everything else "as is". That avoids the "white box on a colored background" problem. Cheers, Mike Christopher Barker wrote: > Nils Wagner wrote: > >> "John Hunter" <[EMAIL PROTECTED]> wrote: >> >>> I wonder if we should support a global rc alpha >>> > > I'd make it an optional parameter to savefig(), but I like the idea. > > Of course one could pretty easily post-process it as well. > > -CHB > > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Fwd: rgrids and thetagrids raise AttributeError and TypeError
I was playing around with polar plots and trying to alter the grid labels when I ran into some weird errors. Whenever I call pyplot.thetagrids() (and similarly with rgrids) I get: >>> AttributeError: 'PolarAxesSubplot' object has no attribute 'thetagridlines After searching the MPL directory, it didn't seem like thetagridlines was defined anywhere. Alternatively, If I call thetagrids with an argument [e.g. thetagrids(range(45,360,90))], I get >>> TypeError: 'NoneType' object is not iterable which comes from the following line in pyplot: >>> lines, labels = ax.set_thetagrids(*args, **kwargs) Strangely, the set_thetagrids method of PolarAxes doesn't return any values and this is causing the TypeError above. I'm really confused about these errors. Any help would be greatly appreciated. -Tony PS: Full tracebacks are shown below. I'm on MPL trunk, r5588. CASE 1: Traceback (most recent call last): File "polar.py", line 19, in lines, labels = thetagrids() File "/Users/Tony/python/matplotlib/trunk/matplotlib/lib/matplotlib/ pyplot.py", line 984, in thetagrids lines = ax.thetagridlines() AttributeError: 'PolarAxesSubplot' object has no attribute 'thetagridlines' CASE 2: Traceback (most recent call last): File "polar.py", line 19, in lines, labels = thetagrids(range(45,360,90)) File "/Users/Tony/python/matplotlib/trunk/matplotlib/lib/matplotlib/ pyplot.py", line 987, in thetagrids lines, labels = ax.set_thetagrids(*args, **kwargs) TypeError: 'NoneType' object is not iterable - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel