Michael Hearne wrote:
> Jeff - Darn it.  So is there a way to embed an axis _inside_ another, 
> possibly with a transparent background?
>
> --Mike


Mike:  Not quite sure why you need to have it transparent - you 
definitely can't have that with postscript, but it should be possible 
with the other backends (png, pdf or svg).  There's an example of 
embedded axes at http://matplotlib.sourceforge.net/screenshots.html 
(axes_demo.py).  The inset axes is just drawn on top of the primary axes 
in the same figure. Is that what you want?

-Jeff

> On Dec 14, 2007, at 12:28 PM, Jeff Whitaker wrote:
>
>> Michael Hearne wrote:
>>> I am using Basemap, and trying to create two maps:
>>>
>>> One large-scale map, and a small-scale inset map of the world 
>>> centered on the location of the large-scale map.  My ultimate goal 
>>> is to create a figure where the inset map is inserted into a corner 
>>> of the large-scale map.  I can see two ways of doing this:
>>>
>>> 1) Create both as encapsulated postscript images separately, and put 
>>> them together in a later "compositing" process. (I'm doing this 
>>> already).
>>> 2) Create both as basemap instances, and then draw the smaller one 
>>> on top of the large-scale one.  I have no idea how to do this.
>>>
>>> A problem I have encountered with the first method is that my image 
>>> background is set to white by default.  I've tried to make it 
>>> transparent by doing the following:
>>>
>>> fig = figure(figsize=(5,5),frameon=False) #turn the frame off completely
>>> fig.figurePatch.set_alpha(0.0) #tried setting this to 1.0 and 0.0, 
>>> neither works
>>>
>>> Method #2 would be cleaner, if I could do what I wanted to do in 
>>> terms of transparencies, but if not, I'll take method #1.
>>>
>>> Does anyone know if it is possible to set the image background 
>>> transparent for encapsulated postscript output?
>>>
>>> Thanks,
>>>
>>> Mike 
>>>
>>
>> Mike:  Postscript doesn't support alpha transparency.  It might work 
>> with PDF though.
>>
>> -Jeff
>>
>> -- 
>> Jeffrey S. Whitaker         Phone  : (303)497-6313
>> Meteorologist               FAX    : (303)497-6449
>> NOAA/OAR/PSD  R/PSD1        Email  : [EMAIL PROTECTED] 
>> <mailto:[EMAIL PROTECTED]>
>> 325 Broadway                Office : Skaggs Research Cntr 1D-124
>> Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg
>
>
>
>
> ------------------------------------------------------
> Michael Hearne
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> (303) 273-8620
> USGS National Earthquake Information Center
> 1711 Illinois St. Golden CO 80401
> Senior Software Engineer
> Synergetics, Inc.
> ------------------------------------------------------
>
>


-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : [EMAIL PROTECTED]
325 Broadway                Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to