You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
(10) |
2
(30) |
3
(11) |
4
(5) |
5
(14) |
6
(21) |
7
(19) |
8
(29) |
9
(23) |
10
(5) |
11
(3) |
12
(9) |
13
(6) |
14
(12) |
15
(10) |
16
(15) |
17
(5) |
18
(6) |
19
(4) |
20
(28) |
21
(8) |
22
(5) |
23
(10) |
24
(4) |
25
(1) |
26
(6) |
27
(13) |
28
(11) |
29
(9) |
30
(23) |
|
>>>>> "christophe" == christophe grimault <chr...@no...> writes: christophe> from matplotlib._nc_transforms import * ImportError: christophe> /usr/lib/python2.4/site- christophe> packages/matplotlib/_nc_transforms.so: undefined christophe> symbol: christophe> _ZNSt24__default_alloc_templateILb1ELi0EE8allocateEj christophe> However, Numeric24 is installed (and was installed christophe> before matplotlib), and import Numeric is OK. christophe> BTW, I use gcc33... but i don't think it matters a christophe> lot, does it ?l Wonder if this could be a compiler version / C++ name mangling issue? Did you compile from src? If so please rm -rf the build dir and site-packages/matplotlib and try a clean install. If not, you may want to contact the maintainer of the binary build you are using. JDH
>>>>> "Stephen" == Stephen Boulet <st...@th...> writes: Stephen> Is there a way to set the size of a polar plot (similar Stephen> to the axis argument to the plot command for a Stephen> rectangular plot)? Thanks. Hmmm. I do not believe the plot command takes an axis argument. Do you mean the "axes" and "subplot" commands which are used to set the size of the Axes that contains the plot? If so, just pass polar=True to them, as in subplot(111, polar=True) axes([0.2, 0.2, 0.7, 0.7], polar=True) I am updating the axes doc string. API users, note that the same applies to fig.add_axes and fig.add_subplot. JDH
>>>>> "Zhang" == Zhang Le <zha...@gm...> writes: Zhang> Hello, In one of my figure I'd like to add one or more Zhang> rules below the xAxis specifying time alignment label info: Zhang> How can I do that? Many thanks, Zhang Le There is no good support for having multiple axis lines right now, but it is on the wish list. You can use major and minor ticks though. See the section "Tick locators and formatters" in the User's Guide and the examples/major_minor_demo*.py in the examples dir. You could also manually draw the axis lines, the ticks, and add the tick labels yourself, but this is a bit more work. JDH
Hello everyone, Hello John, as you advised in a Mail some days ago concerning a fastplot-command I wrote a polygon_factory and it worked quite well (In large parts taken from Line2D). See the code attached. What I now want to ask you is: Would it be good to write this object-oriented (propably yes, so one gets rid of all those tiny funktions _make_...(size))? One drawback which comes into my mind is: How should this class be used within fastplot()? Initialize an instance each time you plot a single point? Wouldn't this slow down everything a bit (or am I overestimating the time-scales)? On the otherhand using a class would look very 'tidy'. Thanks for your suggestion. Bye, Martin #-------------------------------------------------------------------- """ A routine which uses blitting so that it is possible to plot seperate markers faster than usual. """ from pylab import * import time # for profiling #-------------------------------------------------------------------- from matplotlib.lines import Line2D from matplotlib.transforms import identity_transform, lbwh_to_bbox from Numeric import pi def _make_point(size): size *= .5 if size <= 0.5: return _make_pixel() elif size <= 2: return _make_hexagon1(size, point=True) else: return _make_circle(size, point=True) def _make_pixel(): return ((-0.5, -0.5), (-0.5, 0.5), ( 0.5, 0.5), ( 0.5, -0.5)) def _make_circle(size, point=False): if point: size *= .5 N = 50.0 r = size/2.0 rads = (2*pi/N)*arange(N) xs = r*cos(rads) ys = r*sin(rads) verts = [(xs[0], ys[0])] for x, y in zip(xs[1:], ys[1:]): verts.append((x, y)) return tuple(verts) def _make_triangle_up(size): return (( 0, size), (-size, -size), ( size, -size)) def _make_triangle_down(size): return ((-size, size), ( size, size), ( 0, -size)) def _make_triangle_left(size): return ((-size, 0), ( size, -size), ( size, size)) def _make_triangle_right(size): return (( size, 0), (-size, -size), (-size, size)) def _make_tri_down(size): size1 = size*0.8 size2 = size*0.5 return ((-size1, size2), ( 0, 0), ( size1, size2), ( 0, 0) ( 0, -size) ( 0, 0)) def _make_tri_up(size): size1 = size*0.8 size2 = size*0.5 return ((-size1, -size2), ( 0, 0), ( size1, -size2), ( 0, 0), ( 0, size), ( 0, 0)) def _make_tri_left(size): size1 = size*0.8 size2 = size*0.5 return ((size2, -size1), ( 0, 0), (size2, size1), ( 0, 0), (-size, 0), ( 0, 0)) def _make_tri_right(size): size1 = size*0.8 size2 = size*0.5 return ((-size2, -size1), ( 0, 0), (-size2, size1), ( 0, 0), ( size, 0), ( 0, 0)) def _make_square(size): return ((-size, -size), (-size, size), ( size, size), ( size, -size)) def _make_diamond(size): return (( size, 0), ( 0, -size), (-size, 0), ( 0, size)) def _make_thin_diamond(size): xsize = 0.6*size return (( xsize, 0), ( 0, -size), (-xsize, 0), ( 0, size)) def _make_pentagon(size): sizeX1 = size*0.95 sizeY1 = size*0.31 sizeX2 = size*0.59 sizeY2 = size*0.81 return (( 0, size), (-sizeX1, sizeY1), (-sizeX2, -sizeY2), ( sizeX2, -sizeY2), ( sizeX1, sizeY1)) def _make_hexagon1(size, point=False): if point: size *= .5 sizeX1 = size*0.87 sizeY1 = size*0.5 return (( 0, size), (-sizeX1, sizeY1), (-sizeX1, -sizeY1), ( 0, -size), ( sizeX1, -sizeY1), ( sizeX1, sizeY1)) def _make_hexagon2(size): sizeX1 = size*0.5 sizeY1 = size*0.87 return (( size, 0), ( sizeX1, sizeY1), (-sizeX1, sizeY1), ( -size, 0), (-sizeX1, -sizeY1), ( sizeX1, -sizeY1)) def _make_plus(size): return ((-size, -size), ( size, size), ( 0, 0), ( size, -size), (-size, size), ( 0, 0)) def _make_x(size): return ((-size, 0), ( size, 0), ( 0, 0), ( 0, -size), ( 0, size), ( 0, 0)) def _make_vline(size): return ((0, -size), (0, size)) def _make_hline(size): return ((-size, 0), ( size, 0)) markerd = { '.' : _make_point, ',' : _make_pixel, 'o' : _make_circle, 'v' : _make_triangle_down, '^' : _make_triangle_up, '<' : _make_triangle_left, '>' : _make_triangle_right, '1' : _make_tri_down, '2' : _make_tri_up, '3' : _make_tri_left, '4' : _make_tri_right, 's' : _make_square, 'p' : _make_pentagon, 'h' : _make_hexagon1, 'H' : _make_hexagon2, '+' : _make_plus, 'x' : _make_x, 'D' : _make_diamond, 'd' : _make_thin_diamond, '|' : _make_vline, '_' : _make_hline } def polygon_factory(ax, marker, size, args, **kwargs): """ This function creates a Polygon-instance having a shape according to the given marker. This instance is located at the position specified by the args (containing two floats x and y). """ func = markerd[marker] renderer = ax.get_renderer_cache() verts = func(size = 1.0*renderer.points_to_pixels(int(size))) trans = identity_transform() trans.set_offset( (args[0], args[1]), ax.transData) poly = Polygon( verts, transform=trans, **kwargs ) poly.set_clip_box(ax.bbox) return poly def fastplot_points(*args, **kwargs): """This program tries to enable a routine 'fastplot' using JDH's method of reblitting only a small region around the new object. Notice: args have to be (x, y) and not ([x], [y]) like for plot(). You can select the markers with the keyword marker = 'h' for example. To change their color use facecolor = 'g' or fc = 'g' and edgecolor = 'b' or ec = 'b' respectivly. To vary their size use either ms = 4.5 or markersize = 4.5. For a change of the markeredgewidth use markeredgewith, mew, linewidth or lw (If more of them are given they are respected in this order) Also all other kwargs can be used (antialiased, alpha, ...) """ ax = gca() trans = identity_transform() trans.set_offset(args, ax.transData) marker = kwargs.pop('marker', 'o') # which marker is desired # (default:'o')? msize = kwargs.pop('markersize', kwargs.pop('ms', 6)) # filter out the desired size # (If both kwargsare given # 'markersize' is prefered.) lw = kwargs.pop('markeredgewidth', kwargs.pop('mew', kwargs.pop('linewidth', kwargs.pop('lw', .5)))) # filter out the desired kwargs.update({'lw':lw}) # edgewidth p = polygon_factory(ax, marker, msize, args, **kwargs) p.set_clip_box(ax.bbox) l,b,w,h = p.get_window_extent().get_bounds() pad = 3 bbox = lbwh_to_bbox(l-pad, b-pad, w+2*pad, h+2*pad) ax.draw_artist(p) ax.figure.canvas.blit(bbox) #------------------------------------------------------------------- n=300 phi=2.0*pi*arange(n)/n x=cos(phi) y=sin(phi) ion() figure(1) subplot(111, autoscale_on=False) tstart = time.time() title('point by point with blitting') axis([-1,1,-1,1]) axis('scaled') for i in xrange(n): # plot all data step by step fastplot_points( x[i], y[i],marker='o', fc = 'b') tend = time.time() t_fast = tend - tstart close(1) ioff() print " It took %6.2f s."%(t_fast) #------------------------------------------------------------------- -- 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++
>>>>> "Christian" == Christian Kristukat <ck...@ho...> writes: Christian> Hi, the WXAgg backend of 0.84 produces segfaults on Christian> linux using wxPython2.6-gtk2-unicode-2.6.1.0-1_py2.3. Have you verified that it is wxagg specific? Eg, what do happens with the following backends: WX, Agg, PS? Christian> This is the debugging output: Christian> found Bitstream Vera Sans, normal, normal 500, normal, Christian> 12.0 findfont returning /usr/share/matplotlib/Vera.ttf Christian> Segmentation fault Nadia recently reported a crash in the font module in OS X when loading Vera.ttf, but hers was only in ipython. Weird. What version of freetype are you using? She was using 2.1.9 think. It would really help if we could nail this down, but I haven't been able to replicate it on my end yet. If you could edit src/ft2font.cpp and fint the Ft2Font::set_text function. Add a lot of lines thoughout that function like _VERBOSE("FT2Font::set_text 1"); //some code here _VERBOSE("FT2Font::set_text 2"); //some code here _VERBOSE("FT2Font::set_text 3"); and then switch VERBOSE=True in setup.py and reinstall. I sometimes go through a couple of iterations ("poorman's binary search") to find the precise line that is crashing. Note it is only a guess that the crash is in set_text, based on the information I got from Nadia when we left off on this issue, but the VERBOSE output will give more precise information in this regard. JDH
> I want to plot a stepwise line using >plot([1,2,3,4,5],[2,-2,2,-2,2]). But what I get is something like two >triangular like shape. But I want a stepwise shape that has steep >vertical jumps. How can I do that? > > this what you mean? #!/usr/bin/env python from pylab import * plot([1,2,3,4,5],[2,-2,2,-2,2], linestyle='steps') gca().set_ylim( (-3, 3)) show() > Many thanks, >Zhang Le > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. Download >it for free - -and be entered to win a 42" plasma tv or your very own >Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > -- Peter Groszkowski Gemini Observatory Tel: +1 808 9742509 670 N. A'ohoku Place Fax: +1 808 9359235 Hilo, Hawai'i 96720, USA
Hello, In one of my figure I'd like to add one or more rules below the xAxis specifying time alignment label info: xAxis------------------------------------------------------------------ 1 2 3 ... =20 99 100 ruler1--|------------|--------------------|----------------------|------ label1 label2 label3 label n ruler2--------|--------------------|----------------------|------------- label1 label2 label3 How can I do that? Many thanks, Zhang Le
Hello, I want to plot a stepwise line using plot([1,2,3,4,5],[2,-2,2,-2,2]). But what I get is something like two triangular like shape. But I want a stepwise shape that has steep vertical jumps. How can I do that? Many thanks, Zhang Le
On 9/20/05, Steinar Rune Eriksen <sr...@bi...> wrote: > One question for me (being a new matplotlib user). When using this > recipe to get it incorporated in Zope, I get a gray area around my > chart. Anyway to set this to a different color (white) ? you could try figure.facecolor : white in your matplotlibrc Helge
Hi, the WXAgg backend of 0.84 produces segfaults on linux using wxPython2.6-gtk2-unicode-2.6.1.0-1_py2.3. This is the debugging output: ck@bla:~/testarea/matplotlib-0.84/examples> python pcolor_demo2.py -dWXAgg loaded rc file /home/ck/.matplotlib/matplotlibrc matplotlib version 0.84 verbose.level debug interactive is False platform is linux2 loaded modules: ['pylab', '__future__', 'copy_reg', 'sre_compile', 'distutils', 'itertools', '_sre', 'japanese.aliases', 'site', '__builtin__', 'datetime', 'matplotlib.tempfile', 'encodings', 'encodings.encodings', 'sre_constants', 'distutils.string', 'dateutil', 'matplotlib.datetime', 'posixpath', '_random', 'tempfile', 'errno', 'matplotlib.warnings', 'encodings.codecs', 'matplotlib.sys', 'pytz.datetime', 're', 'os.path', 'pytz.sys', '_codecs', 'distutils.sysconfig', 'encodings.exceptions', 'pytz.sets', 'math', 'fcntl', 'stat', 'zipimport', 'string', 'warnings', 'encodings.types', 'UserDict', 'sets', 'encodings.utf_8', 'matplotlib', 'japanese', 'sys', 'japanese.aliases.encodings', 'pytz.tzinfo', 'pytz', '__main__', 'matplotlib.__future__', 'codecs', 'distutils.re', 'matplotlib.pytz', 'types', 'strop', 'matplotlib.dateutil', 'matplotlib.os', 'thread', 'sre', 'bisect', 'matplotlib.distutils', 'signal', 'distutils.errors', 'random', 'linecache', 'distutils.os', 'posix', 'encodings.aliases', 'time', 'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.sys', 'os'] numerix Numeric 23.3 font search path ['/usr/share/matplotlib'] trying fontname /usr/share/matplotlib/VeraIt.ttf trying fontname /usr/share/matplotlib/VeraMoIt.ttf trying fontname /usr/share/matplotlib/cmsy10.ttf trying fontname /usr/share/matplotlib/VeraSe.ttf trying fontname /usr/share/matplotlib/cmmi10.ttf trying fontname /usr/share/matplotlib/Vera.ttf $HOME=/home/ck CONFIGDIR=/home/ck/.matplotlib loaded ttfcache file /home/ck/.matplotlib/ttffont.cache matplotlib data path /usr/share/matplotlib backend WXAgg version 2.6.1.0 findfont failed Lucida Grande findfont failed Verdana findfont failed Geneva findfont failed Lucida findfont found Bitstream Vera Sans, normal, normal 500, normal, 12.0 findfont returning /usr/share/matplotlib/Vera.ttf Segmentation fault Christian
Nils Wagner wrote: > Hi all, > > Is it intended that a variety of messages like > > LazyValue::init_type > Value::init_type > BinOp::init_type > Point::init_type > Interval::init_type > Bbox::init_type > Func::init_type > FuncXY::init_type > Transformation::init_type > SeparableTransformation::init_type > NonseparableTransformation::init_type > Affine::init_type > init_nc_transforms > Glyph::init_type > FT2Font::init_type > _transforms_module::new_value > _transforms_module::new_value > _transforms_module::new_point > Point::Point > _transforms_module::new_value > _transforms_module::new_value > _transforms_module::new_point > Point::Point > _transforms_module::new_bbox > Bbox::Bbox > _transforms_module::new_value > _transforms_module::new_value > _transforms_module::new_point > Point::Point > _transforms_module::new_value > _transforms_module::new_value > _transforms_module::new_point > Point::Point > _transforms_module::new_bbox > Bbox::Bbox > _transforms_module::new_func > _transforms_module::new_func > _transforms_module::new_separable_transformation > BBoxTransformation::BBoxTransformation > SeparableTransformation::SeparableTransformation > init_nc_image > Image::init_type > _transforms_module::new_value > Value::~Value > init_nc_backend_agg > > appear on the screen ? I am using the latest cvs version. > > Nils > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > Hi Did you compile with VERBOSE = True? cheers, steve -- Women are like cell phones. They like to be held and talked to, but push the wrong button, and you'll be disconnected.
Hi all, Is it intended that a variety of messages like LazyValue::init_type Value::init_type BinOp::init_type Point::init_type Interval::init_type Bbox::init_type Func::init_type FuncXY::init_type Transformation::init_type SeparableTransformation::init_type NonseparableTransformation::init_type Affine::init_type init_nc_transforms Glyph::init_type FT2Font::init_type _transforms_module::new_value _transforms_module::new_value _transforms_module::new_point Point::Point _transforms_module::new_value _transforms_module::new_value _transforms_module::new_point Point::Point _transforms_module::new_bbox Bbox::Bbox _transforms_module::new_value _transforms_module::new_value _transforms_module::new_point Point::Point _transforms_module::new_value _transforms_module::new_value _transforms_module::new_point Point::Point _transforms_module::new_bbox Bbox::Bbox _transforms_module::new_func _transforms_module::new_func _transforms_module::new_separable_transformation BBoxTransformation::BBoxTransformation SeparableTransformation::SeparableTransformation init_nc_image Image::init_type _transforms_module::new_value Value::~Value init_nc_backend_agg appear on the screen ? I am using the latest cvs version. Nils
Thanks for the examples. One question for me (being a new matplotlib user). When using this recipe to get it incorporated in Zope, I get a gray area around my chart. Anyway to set this to a different color (white) ? Sascha wrote: > John, > >> Hey Sascha, thanks for this example. If you get some time, could you >> add it to the matplotlib wiki at >> http://www.scipy.org/wikis/topical_software/MatplotlibCookbook? > > > It's been a pleasure. I have added my example (including your suggested > changes) to the wiki: > http://www.scipy.org/wikis/topical_software/MatplotlibAndZope > > Sascha > >> I have one suggestion: you need to be careful to do >> >> import matplotlib >> matplotlib.use('Agg') >> >> *before* importing pylab, in case the default matplotlibrc setting has >> a GUI backend (eg 'backend : GTKAgg') >> >> Thanks! >> JDH > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Petr Jakes wrote: >Jeff, >thanks for your posting. I would like to ask some more questions: > >I have got GPS data in the WGS 84 datum format >I have got paper map in the WGS 84 datum format (I mean I can scan it >and I will have the picture of this map and the picture will be in >WGS84 format as well) > >I would like to follow your suggestions, but I can not find WGS84 >projection in 17 supported map projections formats >( http://tinyurl.com/9s593 ). > >I would really appreciate your comments. > >Petr > > > Petr: WGS84 is not a projection, it's a set of parameters that describe the shape of the earth (http://www.wgs84.com/) - these parameters should be given to basemap in the form of 'rmajor' and 'rminor' keyword arguments. A map projection is a system for mapping a portion of the earth on a flat surface (http://www.colorado.edu/geography/gcraft/notes/mapproj/mapproj_f.html). -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449 325 Broadway Web : http://www.cdc.noaa.gov/~jsw Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
Hi Folks, I wanted to share a quick story. I'm in the process of wrapping up my dissertation. Nearly every figure is generated with MPL, using the TeX support that John spearheaded a while back. I paid a visit to the dreaded thesis secretary on Friday, who has a reputation of being extremely tough. She gave me an A+. John, you don't hear this frequently enough. You're the man. Darren
Jeff, thanks for your posting. I would like to ask some more questions: I have got GPS data in the WGS 84 datum format I have got paper map in the WGS 84 datum format (I mean I can scan it and I will have the picture of this map and the picture will be in WGS84 format as well) I would like to follow your suggestions, but I can not find WGS84 projection in 17 supported map projections formats ( http://tinyurl.com/9s593 ). I would really appreciate your comments. Petr > Petr: You can easily plot data on arbitrary map projections, there are > many examples of this in the source distribution and the wiki > (http://www.scipy.org/wikis/topical_software/Maps). Using your own > image as a background will be trickier, in fact I've never tried it. > Basemap comes with it's own data (coastlines, political boundaries and > rivers) for drawing maps. However, you may be able to do it by > importing your image using PIL, converting it to a Numeric array and > then plotting it over the map projection using imshow. To see how to > convert an image to and from a Numeric array see > http://effbot.org/zone/pil-numpy.htm. To see how to plot an image with > Basemap see http://matplotlib.sourceforge.net/screenshots/plotmap.py. > If you do get this to work, please post an example to the list. I'm > sure many would be interested. > -Jeff
I was just working on the same problem when I saw your post. There is a way to do this without having to hack code. As I myself learned from this list, the ticks are markers. The trick is to set the markeredgewidth of the ticks. For example: plot1 = subplot(111,axisbg='w') set(plot1.get_xticklines() + plot1.get_yticklines() , mew=3.0) This should do the trick. Doug On Thursday 08 September 2005 04:58 am, Martin Richter wrote: > Hello everyone, > > Arnd Baecker and I tried a while to enlarge the thickness of tick-lines. > One of our presumptions was: > > ax = gca() > xticks = ax.xaxis.get_ticklines() > setp(xticks, linewidth= 4) > > This was not working. > But we finally found a way to do so. To do the desired enlargement we had > to edit the 'lines.py'-file. Because of the ticks also just being lines we > added something to the methods > > _draw_tickleft(self, renderer, gc, xt, yt) > _draw_tickright(self, renderer, gc, xt, yt) > _draw_tickup(self, renderer, gc, xt, yt) > _draw_tickdown(self, renderer, gc, xt, yt). > > Right after each > > offset = renderer.points_to_pixels(self._markersize) > > (which as far as we know sets the lenght of the ticks with help of the > rc-file via some minor detours) > we wrote a > > gc.set_linewidth(self._linewidth). > > Now the > > ax = gca() > xticks = ax.xaxis.get_ticklines() > setp(xticks, linewidth= 4) > > did work well! > > Now there are three more things to ask: > > a) Is there any drawback? We just used the self._linewidth without really > knowing what it was for. Could it be that some user sets a parameter > somewhere to change some other linewidth and changes the tickwidth "en > passant"? > b) In behalf of unification it would possibly be better to add this option > to the .matplotlibrc-file in the neighbourhood of > > tick.major.size : 4 # major tick size in points. > > (As far as I can see this means changeing the Class Tick's __init__ placed > in axis.py a little bit.) > c) Now it is possible to change 'lw'. Should it also be possible to change > 'color', 'linestyle'? > > Bye, > Martin -- ---------------------------------------------------------------------------- F. Douglas Swesty Research Assistant Professor Department of Physics and Astronomy, SUNY at Stony Brook email: ds...@ma... www: http://www.astro.sunysb.edu/dswesty phone: (631)-632-8055 FAX: (631)-632-1745 Postal mail: Dept. of Physics and Astronomy SUNY at Stony Brook Stony Brook, NY 11794+3800 ----------------------------------------------------------------------------
Is there a way to set the size of a polar plot (similar to the axis argument to the plot command for a rectangular plot)? Thanks. _________ Stephen If your desktop gets out of control easily, you probably have too much stuff on it that doesn't need to be there. Donna Smallin, "Unclutter Your Home"
Hi all, This is a quick release in advance of scipy this Thursday. I'm short on time right now so I'll just paste in the CHANGELOG since the last release. I also have not been able to make a binary build for python2.3 on win32, but there is a 2.4 version. I'll get this all sorted out next week. 2005年09月14日 Added a new 'resize_event' which triggers a callback with a backend_bases.ResizeEvent object. Not implemented on all backends - JDH 2005年09月14日 font_manager.py: removed chkfontpath from x11FontDirectory() - SC 2005年09月14日 Factored out auto date locator/formatter factory code into matplotlib.date.date_ticker_factory; applies John Bryne's quiver patch. 2005年09月13日 Added Mark's axes positions history patch #1286915 2005年09月09日 Added support for auto canvas resizing with fig.set_figsize_inches(9,5,forward=True) # inches OR fig.resize(400,300) # pixels 2005年09月07日 figure.py: update Figure.draw() to use the updated renderer.draw_image() so that examples/figimage_demo.py works again. examples/stock_demo.py: remove data_clipping (which no longer exists) - SC 2005年09月06日 Added Eric's tick.direction patch: in or out in rc 2005年09月06日 Added Martin's rectangle selector widget 2005年09月04日 Fixed a logic err in text.py that was preventing rgxsuper from matching - JDH 2005年08月29日 Committed Ken's wx blit patch #1275002 2005年08月26日 colorbar modifications - now uses contourf instead of imshow so that colors used by contourf are displayed correctly. Added two new keyword args (cspacing and clabels) that are only relevant for ContourMappable images - JSWHIT 2005年08月24日 Fixes a PS image bug reported by Darren - JDH 2005年08月23日 colors.py: change hex2color() to accept unicode strings as well as normal strings. Use isinstance() instead of types.IntType etc - SC 2005年08月16日 removed data_clipping line and rc property - JDH 2005年08月22日 backend_svg.py: Remove redundant "x=0.0 y=0.0" from svg element. Increase svg version from 1.0 to 1.1. Add viewBox attribute to svg element to allow SVG documents to scale-to-fit into an arbitrary viewport - SC 2005年08月16日 Added Eric's dot marker patch - JDH 2005年08月08日 Added blitting/animation for TkAgg - CM 2005年08月05日 Fixed duplicate tickline bug - JDH 2005年08月05日 Fixed a GTK animation bug that cropped up when doing animations in gtk//gtkagg canvases that had widgets packed above them 2005年08月05日 Added Clovis Goldemberg patch to the tk save dialog 2005年08月04日 Removed origin kwarg from backend.draw_image. origin is handled entirely by the frontend now. 2005年07月03日 Fixed a bug related to TeX commands in backend_ps 2005年08月03日 Fixed SVG images to respect uppoer and lower origins. 2005年08月03日 Added flipud method to image and removed it from to_str. 2005年07月29日 Modified figure.figaspect to take an array or number; modified backend_svg to write utf-8 - JDH 2005年07月30日 backend_svg.py: embed png image files in svg rather than linking to a separate png file, fixes bug #1245306 (thanks to Norbert Nemec for the patch) - SC
Hi all, I have switched to python2.4 and matplotlib does not install fine ! When doing : import pylab I get : >>> import pylab The import of the numeric version of the _transforms module, _nc_transforms, failed. This is is either because numeric was unavailable when matplotlib was compiled, because a dependency of _nc_transforms could not be satisfied, or because the build flag for this module was turned off in setup.py. If it appears that _nc_transforms was not built, make sure you have a working copy of numeric and then re-install matplotlib. Otherwise, the following traceback gives more details: Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/pylab.py", line 1, in ? from matplotlib.pylab import * File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 198, in ? from axes import Axes, PolarAxes File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 13, in ? from artist import Artist, setp File "/usr/lib/python2.4/site-packages/matplotlib/artist.py", line 4, in ? from transforms import identity_transform File "/usr/lib/python2.4/site- packages/matplotlib/transforms.py", line 189, in ? from _transforms import Value, Point, Interval, Bbox, Affine File "/usr/lib/python2.4/site- packages/matplotlib/_transforms.py", line 11, in ? from matplotlib._nc_transforms import * ImportError: /usr/lib/python2.4/site- packages/matplotlib/_nc_transforms.so: undefined symbol: _ZNSt24__default_alloc_templateILb1ELi0EE8allocateEj However, Numeric24 is installed (and was installed before matplotlib), and import Numeric is OK. BTW, I use gcc33... but i don't think it matters a lot, does it ?l Any idea is welcome ! Chris
Thanks a lot Eric, your demo works excellent! Petr
I forgot to include that I am speaking about the vertical/y axis.
In my application, I am creating a second axes using pylab's twinx and plot various lines on both axes. I'd like to take advantage of the automatic change of the line color that happens when using the plot() command. Unfortunately, this is done only within one axes i.e. when plotting on the other axes, the first line color is used again. This results in multiple lines that have the some color. Is there a smart way to make Matplotlib use the next color in sequence for the first line on a new axes? As is: Axes 1 - Line 1 (blue) - Line 2 (green) Axes 2 - Line 1 (blue) - Line 2 (green) To be: Axes 1 - Line 1 (blue) - Line 2 (green) Axes 2 - Line 1 (red) - Line 2 (light blue) Thanks, Sascha
I am having some issues creating axis labels. When I set horizontalalignment='right' (which is the default), the y axis label is positioned correctly for the left axis. Using 'center', the text is positioned too close to the axis so that multiline text runs into the tick labels. For the right axis (created with pylab.twinx(), it's the other way around - 'right' is too close to the tick labels and 'center' works better. Any hints what I can do to position the labels correctly? Thanks, Sascha
Petr Jakes wrote: >Hi all, >using the basemap module, I would like to import my own image (scanned >paper map) as a background layer and than plot my GPS data on it. I >would like to know: > >1) if it is possible in general? >if yes: >2) are there any good examples or suggestion which way to go and how > to do it? > >Thanks for your postings > >Petr Jakes > > > Petr: You can easily plot data on arbitrary map projections, there are many examples of this in the source distribution and the wiki (http://www.scipy.org/wikis/topical_software/Maps). Using your own image as a background will be trickier, in fact I've never tried it. Basemap comes with it's own data (coastlines, political boundaries and rivers) for drawing maps. However, you may be able to do it by importing your image using PIL, converting it to a Numeric array and then plotting it over the map projection using imshow. To see how to convert an image to and from a Numeric array see http://effbot.org/zone/pil-numpy.htm. To see how to plot an image with Basemap see http://matplotlib.sourceforge.net/screenshots/plotmap.py. If you do get this to work, please post an example to the list. I'm sure many would be interested. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449 325 Broadway Web : http://www.cdc.noaa.gov/~jsw Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124