[matplotlib-devel] Home page text

2006-11-01 Thread Charlie Moad
I think this needs some clean-up:

"The latest matplotlib-0.87.7 for windows was compiled with numpy 1.0
final. Please make sure you are not using the latest numpy-1.0."

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Home page text

2006-11-01 Thread John Hunter
> "Charlie" == Charlie Moad <[EMAIL PROTECTED]> writes:

Charlie> I think this needs some clean-up: "The latest
Charlie> matplotlib-0.87.7 for windows was compiled with numpy 1.0
Charlie> final. Please make sure you are not using the latest
Charlie> numpy-1.0."

Oops -- done.  Thanks.

JDH

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Home page text

2006-11-01 Thread Chris Walker
John Hunter <[EMAIL PROTECTED]> writes:

> > "Charlie" == Charlie Moad <[EMAIL PROTECTED]> writes:
> 
> Charlie> I think this needs some clean-up: "The latest
> Charlie> matplotlib-0.87.7 for windows was compiled with numpy 1.0
> Charlie> final. Please make sure you are not using the latest
> Charlie> numpy-1.0."
> 
> Oops -- done.  Thanks.

On which subject, "What's new" starts:

What's new in matplotlib 0.83

rather than the 0.87.7

Chris

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Home page text

2006-11-01 Thread John Hunter
> "Chris" == Chris Walker <[EMAIL PROTECTED]> writes:
Chris> On which subject, "What's new" starts:

Chris> What's new in matplotlib 0.83

Chris> rather than the 0.87.7

yes, that is a bit out of date  If you would like to help here,
the file htdocs/whats_new.html.template is in the htdocs svn
repository.  The format of what's new is a python dictionary where the
keys are version numbers and the values are tuples of (header,
description) tuples.

If you could take some time to peruse the CHANGELOG file and update
some entries in the what's new dictionary, I will apply them to the
svn code and update the web page.  


versioninfo['0.87.5'] = (
  ("aspect handling", """\
Excellent support for axes aspect handling, with aspect='equal' or
  aspect=1.5 or aspect='norm' passed to an Axes or Subplot
"""),

  ("lasso tool", """\
Use a lasso tool for picking points -- see lasso demo
"""),

  ("true ellipses", """\
Earlier versions of matplotlib used a polygon approximation to
ellipses.  With this release we have arcs supporting scale free
ellipses and circles.  See ellipse demo.py
"""),

  ("pdf backend", """\
A alpha release of the PDF backend
"""),

  ("quiver2", """\
Better support for quiver / direction field plots
"""),

  ("enhanced colorbar support", """\
Supports discrete colorbars and more
"""),

  ("John Porter's 3D code incorporated", """\ A prototype
implementation of simple 3D plots -- see simple3d_oo.py """),



)

versioninfo['0.83'] = (

  ("axis('scale')", """\
Added Mark Athen's 'scale' patch, so that on a scaled axis a circle
looks like circle. See help(axis).
"""),

  ('New cursor and span selector widgets', """\
Added new Cursor and HorizontalSpanSelector
to matplotlib.widgets.  See cursor.py and span_selector.py.  Set
useblit = True on gtkagg for significantly enhanced
performance.
"""),

  ('draw events', """\
You can use use matplotlib event handling to register a callback after
figure draw using 'draw_event' which calls the callback with a DrawEvent instance


  def callback(event):
 #event.renderer is the backend Renderer instance
 pass
  connect('draw_event')

"""),

  ('Full screen mode in GTK*', """\
Use 'f' to toggle full screen mode in the GTK backends.
"""),

  ('GTK and SVG fixes', """\
Steve Chaplin has made numerous updates to the GTK and SVG backends.  See the 
CHANGELOG for details.
"""),

  ('Reorganized config files', """\

Made HOME/.matplotlib the new config dir where the
matplotlibrc file, the ttf.cache, and the
tex.cache live.  The new default filenames in
.matplotlib have no leading dot and are not hidden.  Eg, the
new names are matplotlibrc, tex.cache, and
ttffont.cache.  This is how http://ipython.scipy.org>ipython does it so it must be right.
If old files are found, a warning is issued and they are moved to the
new location.  Also fixed texmanager to put all files,
including temp files in ~/.matplotlib/tex.cache, which allows
you to usetex in non-writable dirs.

"""),

  ('Using matplotlib.agg to draw paths', """\

Updated agg_test.py to demonstrate
curved paths and fills.  """ ),

  ('CocoaAgg', """\
New CocoaAgg backend for native GUI on OSX, 10.3 and 10.4 compliant.
"""),

  ('Qt enhancements', """\
Applied Ted Drain's QtAgg patch: 1) Changed the toolbar to be a
horizontal bar of push buttons instead of a QToolbar and updated the
layout algorithms in the main window accordingly.  This eliminates the
ability to drag and drop the toolbar and detach it from the window.
2) Updated the resize algorithm in the main window to show the correct
size for the plot widget as requested.  This works almost correctly
right now.  It looks to me like the final size of the widget is off by
the border of the main window but I haven't figured out a way to get
that information yet.  We could just add a small margin to the new
size but that seems a little hacky.  3) Changed the x/y location label
to be in the toolbar like the Tk backend instead of as a status line
at the bottom of the widget.  4) Changed the toolbar pixmaps to use
the ppm files instead of the png files.  I noticed that the Tk backend
buttons looked much nicer and it uses the ppm files so I switched
them.

"""),

  ('mathtext optimizations', """\
Upgraded pyparsing and applied Paul McGuire's suggestions for speeding
things up.  This more than doubles the speed of mathtext in my simple
tests.
"""),

  ('Bugs fixed / small features', """\
Applied SF patches 1242648, 1244732.  Fixes SF bugs 1238412, 1231611,
1209354, subplot (2,1,1) bug, 
"""),


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplot

Re: [matplotlib-devel] basemap compile problem

2006-11-01 Thread John Hunter
> "Jeff" == Jeff Whitaker <[EMAIL PROTECTED]> writes:

Jeff> John Hunter wrote:

Jeff> John: In the process of updating the proj4 source files to
Jeff> version 4.5.0, I've somehow munged the repository.  Could
Jeff> you try revision 2836?  If that works for you, I'll try to
Jeff> revert the repository.

Yes, this works.

But now I am getting a traceback with basemap + mpl svn in contour
with the attached file.  I don't know if this is a bug in the example
code or in the contour module (it appears tcolors is not getting set
because the changed method is not being called, but I only looked at
it briefly)

matplotlib/htdocs/screenshots> python
plotmap.py
/usr/lib/python2.4/site-packages/matplotlib/figure.py:690:
DeprecationWarning: Old colorbar kwargs (tickfmt) found; using
colorbar_classic.
  warnings.warn(msg, DeprecationWarning)
Traceback (most recent call last):
  File "plotmap.py", line 36, in ?
colorbar(tickfmt='%d', cax=cax) # draw colorbar
  File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line
  342, in colorbar
ret = gcf().colorbar(mappable, cax = cax, **kw)
  File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line
  691, in colorbar
self.colorbar_classic(mappable, cax, **kw)
  File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line
  825, in colorbar_classic
CS = cax.contourf(*args, **kw)
  File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
  4097, in contourf
return ContourSet(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/matplotlib/contour.py", line
  456, in __init__
for level, level_upper, color in zip(lowers, uppers,
self.tcolors):
AttributeError: ContourSet instance has no attribute 'tcolors'

# make plot of etopo bathymetry/topography data on
# lambert conformal conic map projection, drawing coastlines, state and
# country boundaries, and parallels/meridians.

# the data is interpolated to the native projection grid.

from matplotlib.toolkits.basemap import Basemap, shiftgrid
from pylab import *

# read in topo data (on a regular lat/lon grid)
# longitudes go from 20 to 380.
topoin = array(load('etopo20data.gz'),'d')
lons = array(load('etopo20lons.gz'),'d')
lats = array(load('etopo20lats.gz'),'d')
# shift data so lons go from -180 to 180 instead of 20 to 380.
topoin,lons = shiftgrid(180.,topoin,lons,start=False)

# setup of basemap ('lcc' = lambert conformal conic).
# use major and minor sphere radii from WGS84 ellipsoid.
m = Basemap(llcrnrlon=-145.5,llcrnrlat=1.,urcrnrlon=-2.566,urcrnrlat=46.352,\
rsphere=(6378137.00,6356752.3142),\
resolution='l',area_thresh=1000.,projection='lcc',\
lat_1=50.,lon_0=-107.)
# transform to nx x ny regularly spaced native projection grid
nx = int((m.xmax-m.xmin)/4.)+1; ny = int((m.ymax-m.ymin)/4.)+1
topodat,x,y = m.transform_scalar(topoin,lons,lats,nx,ny,returnxy=True)
# create the figure.
fig=figure(figsize=(8,8))
# add an axes, leaving room for colorbar on the right.
ax = fig.add_axes([0.1,0.1,0.7,0.7])
# plot image over map with imshow.
im = m.imshow(topodat,cm.jet)
# setup colorbar axes instance.
l,b,w,h = ax.get_position()
cax = axes([l+w+0.075, b, 0.05, h])
colorbar(tickfmt='%d', cax=cax) # draw colorbar
axes(ax)  # make the original axes current again
# plot blue dot on boulder, colorado and label it as such.
xpt,ypt = m(-104.237,40.125) 
m.plot([xpt],[ypt],'bo') 
text(xpt+10,ypt+10,'Boulder')
# draw coastlines and political boundaries.
m.drawcoastlines()
m.drawcountries()
m.drawstates()
# draw parallels and meridians.
# label on left, right and bottom of map.
parallels = arange(0.,80,20.)
m.drawparallels(parallels,labels=[1,1,0,1])
meridians = arange(10.,360.,30.)
m.drawmeridians(meridians,labels=[1,1,0,1])
# set title.
title('ETOPO Topography - Lambert Conformal Conic')
show()

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] basemap compile problem

2006-11-01 Thread Jeff Whitaker
John Hunter wrote:
>> "Jeff" == Jeff Whitaker <[EMAIL PROTECTED]> writes:
>> 
>
> Jeff> John Hunter wrote:
>
> Jeff> John: In the process of updating the proj4 source files to
> Jeff> version 4.5.0, I've somehow munged the repository.  Could
> Jeff> you try revision 2836?  If that works for you, I'll try to
> Jeff> revert the repository.
>
> Yes, this works.
>
> But now I am getting a traceback with basemap + mpl svn in contour
> with the attached file.  I don't know if this is a bug in the example
> code or in the contour module (it appears tcolors is not getting set
> because the changed method is not being called, but I only looked at
> it briefly)
>
> matplotlib/htdocs/screenshots> python
> plotmap.py
> /usr/lib/python2.4/site-packages/matplotlib/figure.py:690:
> DeprecationWarning: Old colorbar kwargs (tickfmt) found; using
> colorbar_classic.
>   warnings.warn(msg, DeprecationWarning)
> Traceback (most recent call last):
>   File "plotmap.py", line 36, in ?
> colorbar(tickfmt='%d', cax=cax) # draw colorbar
>   File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line
>   342, in colorbar
> ret = gcf().colorbar(mappable, cax = cax, **kw)
>   File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line
>   691, in colorbar
> self.colorbar_classic(mappable, cax, **kw)
>   File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line
>   825, in colorbar_classic
> CS = cax.contourf(*args, **kw)
>   File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
>   4097, in contourf
> return ContourSet(self, *args, **kwargs)
>   File "/usr/lib/python2.4/site-packages/matplotlib/contour.py", line
>   456, in __init__
> for level, level_upper, color in zip(lowers, uppers,
> self.tcolors):
> AttributeError: ContourSet instance has no attribute 'tcolors'
>
>   
John:  If you take the 'tickfmt' argument out of the colorbar call, it 
works.  Apparently, it's a problem with the deprecated 
colorbar_classic.  Note that the updated plotmap.py example in the 
basemap examples directory doesn't use colorbar_classic, and works.

-Jeff

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


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel