[Matplotlib-users] Issue with basemap.plot() when lon_0 nonzero

2014-04-15 Thread Scott Henderson
Hello, I’m trying to make a plot data on a map with the ‘cyl’ projection with a shifted centerline (lon_0=180), but I receive an error when shiftdata() is called. Since the plot works when lon_0=0, this seems to be a bug. I’ve posted the code, error, and plots here:

[Matplotlib-users] Trouble installing basemap 1.0.6 on OSX 10.8.2

2013-01-20 Thread Scott Henderson
Hello, I've tried installing the latest version of basemap on OSX Lion and am getting the following error: # --- scotthenderson@basemap-1.0.6:python setup.py build ld: warning: ld: warning: ignoring file nad2bin.o, file was built for unsupported file format ( 0xcf 0xfa 0xed

Re: [Matplotlib-users] Trouble installing basemap 1.0.6 on OSX 10.8.2

2013-01-20 Thread Scott Henderson
jeffrey.s.whita...@noaa.gov wrote: Scott Henderson wrote: Hello, I've tried installing the latest version of basemap on OSX Lion and am getting the following error: # --- scotthenderson@basemap-1.0.6:python setup.py build ld: warning: ld: warning: ignoring file nad2bin.o

[Matplotlib-users] set_clip_mask() single polygon for multiple subplots

2012-09-24 Thread Scott Henderson
I'd like to use the same patch to clip two images that share the same axes, and extract values from the un-clipped region of both arrays. Unfortunately this seems harder than expected. Code questions below, Thanks! from matplotlib.patches import Polygon import matplotlib.pyplot as plt from

[Matplotlib-users] basemap imshow() extents

2012-08-20 Thread Scott Henderson
I'm having trouble with transform_scalar() and imshow() with basemap. Essential I have data from satellite tracks that are either smaller or larger than the map extent, so I don't want to use Basemap.imshow() which sets the 'extent' keyword automatically. I tried following the following

[Matplotlib-users] Get distances between points in basemap?

2012-08-20 Thread Scott Henderson
I'm trying to efficiently get the distances of all points on a map to a specified point. If the map is in projected coordinates, what is the best way of going about this? Is there is a 'standard' way to get the distance between points through internal basemap functions? After some scrounging

[Matplotlib-users] axes_grid1.inset_axes frame background color

2012-08-15 Thread Scott Henderson
Hello, I'm trying to modify the following script to no avail: http://matplotlib.github.com/examples/axes_grid/demo_colorbar_with_inset_locator.html I'd like to have a white background behind the inset colorbar that adjusts automatically to figure resizing. I'm thinking of doing this by adding

[Matplotlib-users] Modifying lasso_demo.py

2012-07-25 Thread Scott Henderson
Hello, I'm trying to incorporate some matplotlib widgets into my scripts that generate plots. I'm unsure why, but if I wrap the figure creation lines in lasso_demo.py with a function the demo does not work. Why? #Original: # if __name__ == '__main__': data = [Datum(*xy) for xy

Re: [Matplotlib-users] Modifying lasso_demo.py

2012-07-25 Thread Scott Henderson
Thanks for the response. To be more specific, if I run the modified script in an ipython --pylab terminal: In [1]: %run lasso_demo.py In [2]: The function returns, and the lasso manager is garbage collected as you say. In other words, the plot shows up, but I can't draw a lasso and select