Re: [matplotlib-devel] Home page text
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=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Home page text
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=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Home page text
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 a href=examples/lasso_demo.pylasso demo/a ), (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 a href=examples/ellipse_demo.pyellipse demo.py/a ), (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 a href=examples/simple3d_oo.pysimple3d_oo.py/a ), ) versioninfo['0.83'] = ( (axis('scale'), \ Added Mark Athen's 'scale' patch, so that on a scaled axis a circle looks like circle. See a href=matplotlib.pylab.html#-axishelp(axis)/a. ), ('New cursor and span selector widgets', \ Added new a href=matplotlib.widgets.html#CursorCursora/ and a href=matplotlib.widgets.html#HorizontalSpanSelectorHorizontalSpanSelector/a to a href=matplotlib.widgets.htmlmatplotlib.widgets/a. See a href=examples/widgets/cursor.pycursor.py/a and a href=examples/widgets/span_selector.pyspan_selector.py/a. Set ttuseblit = True/tt 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 a href=matplotlib.backend_bases.html#DrawEventDrawEvent/a instance pre def callback(event): #event.renderer is the backend Renderer instance pass connect('draw_event') /pre ), ('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 a href=CHANGELOGCHANGELOG/a for details. ), ('Reorganized config files', \ Made ttHOME/.matplotlib/tt the new config dir where the ttmatplotlibrc/tt file, the f.cache/tt, and the tttex.cache/tt live. The new default filenames in tt.matplotlib/tt have no leading dot and are not hidden. Eg, the new names are ttmatplotlibrc/tt, tttex.cache/tt, and ffont.cache/tt. This is how a href=http://ipython.scipy.orgipython/a 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 a href=matplotlib.texmanager.htmltexmanager/a to put all files, including temp files in tt~/.matplotlib/tex.cache/tt, which allows you to usetex in non-writable dirs. ), ('Using matplotlib.agg to draw paths', \ Updated a href=examples/agg_test.pyagg_test.py/a 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, ),
Re: [matplotlib-devel] basemap compile problem
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=lnkkid=120709bid=263057dat=121642___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel