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
(14) |
2
(22) |
3
(8) |
4
(10) |
5
(1) |
6
|
7
(11) |
8
(4) |
9
(14) |
10
(18) |
11
(18) |
12
(2) |
13
(8) |
14
(14) |
15
(6) |
16
(8) |
17
(9) |
18
(9) |
19
(7) |
20
(8) |
21
(8) |
22
(14) |
23
(10) |
24
(11) |
25
(17) |
26
(1) |
27
(3) |
28
(12) |
|
|
|
|
|
From: Jeff W. <js...@fa...> - 2005-02-10 13:04:46
|
The first matplotlib toolkit has been released. Matplotlib toolkits are collections of application-specific functions that extend matplotlib. This is hopefully the first of many - additional contributions are encouraged! The basemap toolkit allows matplotlib to plot regularly-space latitiude/longitude grids on map projections, including drawing coastlines, political boundaries, parallels and meridians. It currently supports six map projections (cylindrical equidistant, mercator, lambert conformal conic, lambert azimuthal equal area, albers equal area and stereographic). It uses routines from the proj.4 library (http://proj.maptools.org) to perform cartographic transformations. Documentation - http://matplotlib.sourceforge.net/toolkits.html. Screenshot - http://matplotlib.sourceforge.net/screenshots/plotmap_large.png Example Code - http://matplotlib.sourceforge.net/screenshots/plotmap.py Examples for each map projection are included in the source release (available at the sf download page (http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=142792). Windows binaries are provided (thanks John!) - but they do not include the examples. Comments/bug reports/suggestions are welcome. -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 |
From: Robert L. <ro...@le...> - 2005-02-10 04:40:46
|
John Hunter wrote: > > Below is a script that shows one way to do it.... > > Is this what you are looking for? Yep, although I wasn't expecting someone to write the script for me! A simple - check out the Rectangle command would have sufficed - which, incidentally is exactly what I was reading in the user manual when your email came in :-) Much appreciated. Robert |
From: Robert L. <ro...@le...> - 2005-02-10 04:26:33
|
John Hunter wrote: > > You can try this as an alternative download site -- > > http://amath.colorado.edu/faculty/fperez/python/pyworkshop/doc/pylab_users_guide_0.71.pdf > > Hope this helps! It worked perfectly at the first attempt - thanks! Robert |
From: John H. <jdh...@ac...> - 2005-02-10 04:17:13
|
>>>>> "Robert" == Robert Leftwich <ro...@le...> writes: Robert> I have a requirement to generate a scatter plot with the Robert> background divided into 4 equal rectangular regions, each Robert> a different colour/shade indicating a particular Robert> characteristic of the points in that region. What is the Robert> best way to do this in matplotlib? Below is a script that shows one way to do it. If you don't like the black border surrounding the different colored quadrants, you can set the "edgecolor" property to be the same as the "facecolor" Is this what you are looking for? JDH from pylab import * # lower left quadrant r1 = Rectangle( (0.0, 0.0), 5, 5, facecolor='yellow') # lower right quadrant r2 = Rectangle( (5.0, 0.0), 5, 5, facecolor='red') # upper left quadrant r3 = Rectangle( (0.0, 5.0), 5, 5, facecolor='blue') # upper right quadrant r4 = Rectangle( (5.0, 5.0), 5, 5, facecolor='green') ax = subplot(111) for r in (r1,r2,r3,r4): ax.add_patch(r) scatter(10*rand(100), 10*rand(100)) axis([0, 10, 0, 10]) show() |
From: John H. <jdh...@ac...> - 2005-02-10 04:05:58
|
>>>>> "Robert" == Robert Leftwich <ro...@le...> writes: Robert> I've tried a number of approaches on Linux and XP, Robert> including remote desktop into another box on the other Robert> side of the country, but all approaches failed. The only Robert> commonality between the 2 setups is we are both using Robert> IPCop as a firewall and are in Australia. You can try this as an alternative download site -- http://amath.colorado.edu/faculty/fperez/python/pyworkshop/doc/pylab_users_guide_0.71.pdf Hope this helps! JDH |
From: Perry G. <pe...@st...> - 2005-02-10 01:21:12
|
John Hunter wrote: > > Perry> Secondly, this example asks for a threshold based on > Perry> prenormalized data values (i.e., image value of 30). To get > Perry> what the user wants, the user must either define the alpha > Perry> map to match the normalized value of 30 or normalize the > Perry> data to match 30 to the alpha map threshold. It's not so > Perry> obvious to me how this is best handled. A fancier > Perry> normalization function that uses data-based thresholds to > Perry> map to color map thresholds? Otherwise, it may be fairly > Perry> painful to apply in practice. A convenient way to define a > Perry> color map based on data values and how the data will be > Perry> normalized? > > I'll think about these issues -- gotta run now. But they are > orthogonal to having an alpha channel in the colormap, no? > Well, yes and no. Yes in that this can be implemented without dealing with the issue, no in that it may not be easily used by just dealing with that. This has come up before and it makes me think that some tool (I'm thinking about an optional argument to normalize or something defining a correspondence between a data value and a normalized value) is needed to address that, and there are a number of different approaches that could be taken. I was just wondering if you had any thoughts about the best way to do that. Perry |
From: John H. <jdh...@ac...> - 2005-02-10 00:12:48
|
>>>>> "Cindy" == Cindy Hodgins Burian <cho...@pr...> writes: Cindy> I'm having some problems compiling matplotlib 0.7.1 on Cindy> solaris 8. I believe I have all the prerequisites there. Cindy> If I try to compile with setup.py as it is originally, Cindy> immediately it complains with "sh: pkg-config: not found", Cindy> and finally dies after working a while. If I change Cindy> "BUILD_GTKAGG = 0" it compiles with some complaints like Cindy> /usr/local/pkg/python/include/python2.3/pyconfig.h:856:1: Cindy> warning: "_XOPEN_SOURCE" redefined <command line>:1:1: Cindy> warning: this is the location of the previous definition I believe this is a solaris compiler bug -- we've seen it a couple of times before. Search the matplotlib-users mailing list archives for _XOPEN_SOURCE at http://sourceforge.net/mailarchive/forum.php?forum_id=33405 I can't remember the answer, but I know there are a few posts on the subject there... JDH |
From: John H. <jdh...@ac...> - 2005-02-10 00:10:50
|
>>>>> "Perry" == Perry Greenfield <pe...@st...> writes: Perry> Should self._alpha_lut always copy the blue segment data Perry> (or are you showing what the user would have to do?) I Perry> would have guessed that it would default to being always 1 Perry> (I think that's the intent above but how does one then Perry> define it independently outside of the class definition. Uh, maybe I have the flu. I meant self._alpha_lut = makeMappingArray(self.N, self._segmentdata.get('alpha', [1.0, 1.0]) I'm not sure about the [1.0, 1.0] -- that's your job :-) What I'm trying to say is that we can use the dict get method to default to the current behavior if the alpha channel is not defined in the segmentdata.... Perry> Secondly, this example asks for a threshold based on Perry> prenormalized data values (i.e., image value of 30). To get Perry> what the user wants, the user must either define the alpha Perry> map to match the normalized value of 30 or normalize the Perry> data to match 30 to the alpha map threshold. It's not so Perry> obvious to me how this is best handled. A fancier Perry> normalization function that uses data-based thresholds to Perry> map to color map thresholds? Otherwise, it may be fairly Perry> painful to apply in practice. A convenient way to define a Perry> color map based on data values and how the data will be Perry> normalized? I'll think about these issues -- gotta run now. But they are orthogonal to having an alpha channel in the colormap, no? Cheers -- hope you're feeling better! JDH |
From: Robert L. <ro...@le...> - 2005-02-09 23:29:44
|
John Hunter wrote: > > I'm able to download it from the sf site -- perhaps it's your download > client? I've tried a number of approaches on Linux and XP, including remote desktop into another box on the other side of the country, but all approaches failed. The only commonality between the 2 setups is we are both using IPCop as a firewall and are in Australia. Robert |
From: Chris B. <Chr...@no...> - 2005-02-09 23:22:36
|
Cindy Hodgins Burian wrote: > If I > change "BUILD_GTKAGG = 0" it compiles with some complaints like This will keep it form building the GTKAGG back end...do you need that? > >>> import pylab > from _gtkagg import agg_to_gtk_drawable You're getting this error because you don't have the GTKAGG back end, which makes sense, as you told setup.py not to build it. The problem is that your matplotlibrc file sets gtkagg as the default back end. First, try this: >>> import matplotlib >>> matplotlib.use('Agg') >>> import pylab If that works, then you seem to have a working matplotlib with the Agg back end. If you generating plots that you want to save as PNG and use ion a wed site or something, you're done. You should also be able to use it with wxPython. Tkinter may also work. If you do need the PyGTK back end, I can't help you, except to say that make sure you have PyGTK working first. To change the default back end, edit matplotlibrc: http://matplotlib.sf.net/.matplotlibrc Good luck, -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
From: Perry G. <pe...@st...> - 2005-02-09 23:05:52
|
John Hunter wrote: > >>>>> "Teemu" == Teemu Rinne <Tee...@he...> writes: > > > Teemu> How to do this? Do I have to combine the RGB values of the > Teemu> two images 'manually'? > > Basically what you are talking about is adding an alpha channel to the > color map, and setting it to be transparent for image values less than > a certain value. Perry Greenfield is the colormap implementer and > resident expert. > > Perry -- how hard would it be to either subclass or extend the current > framework to include an alpha channel? I think it could be done in > just a few lines of code actually. Eg, something like > > self._alpha_lut = makeMappingArray(self.N, > self._segmentdata.get('blue', [1.0, 1.0]) > > and then modifying > > def __call__(self, X, alpha=1.0): > > to deal with it. > > Perry do you have time to take a crack at this? I think this would be > very useful. > Offhand it doesn't look like it should be a problem, but I need to clarify some things about your suggestion and the user interface. Should self._alpha_lut always copy the blue segment data (or are you showing what the user would have to do?) I would have guessed that it would default to being always 1 (I think that's the intent above but how does one then define it independently outside of the class definition. Secondly, this example asks for a threshold based on prenormalized data values (i.e., image value of 30). To get what the user wants, the user must either define the alpha map to match the normalized value of 30 or normalize the data to match 30 to the alpha map threshold. It's not so obvious to me how this is best handled. A fancier normalization function that uses data-based thresholds to map to color map thresholds? Otherwise, it may be fairly painful to apply in practice. A convenient way to define a color map based on data values and how the data will be normalized? But maybe I'm suffering from flu-induced confusion. Perry |
From: John H. <jdh...@ac...> - 2005-02-09 22:55:10
|
>>>>> "Fernando" == Fernando Perez <Fer...@co...> writes: Fernando> Well, the funny thing about my sometimes-odd results, is Fernando> that in python 2.3, list.sort _is_ stable: Fernando> http://py-stablesort.sourceforge.net/doc/2002_07_28_pythonowns_archive.html Fernando> http://mail.python.org/pipermail/python-list/2003-April/160326.html Fernando> So I'm not quite sure why I get odd results in a few Fernando> cases. And I can't seem to find a reliable way to Fernando> repeat the behavior. Hmm, I hesitate to say this, but I wonder if it's a bug in the stable sort. I also see the behavior you describe in ipython -- intermittently the order is wrong. But when I add the extra ind to the axes dsu sort, I never get it. Changes in CVS. Make sure you have revision - CHANGELOG 1.270 Fernando> But thanks for the clarification on the zorder argument, Fernando> that's enough for me to get the behavior I need. Fernando> I'll update the zorder_demo example with a more explicit Fernando> docstring so others don't fall into the same confusion. Thanks. JDH |
From: Cindy H. B. <cho...@pr...> - 2005-02-09 22:00:40
|
I'm having some problems compiling matplotlib 0.7.1 on solaris 8. I believe I have all the prerequisites there. If I try to compile with setup.py as it is originally, immediately it complains with "sh: pkg-config: not found", and finally dies after working a while. If I change "BUILD_GTKAGG = 0" it compiles with some complaints like /usr/local/pkg/python/include/python2.3/pyconfig.h:856:1: warning: "_XOPEN_SOURCE" redefined <command line>:1:1: warning: this is the location of the previous definition But seems to work. When I try to import it I get: ghia{chodgins}120: python Python 2.3 (#1, Sep 12 2003, 16:47:52) [GCC 3.0.3] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/pkg/python/lib/python2.3/site-packages/pylab.py", line 1, in ? from matplotlib.pylab import * File "/usr/local/pkg/python/lib/python2.3/site-packages/matplotlib/pylab.py", line 191, in ? from backends import new_figure_manager, error_msg, \ File "/usr/local/pkg/python/lib/python2.3/site-packages/matplotlib/backends/__init__.py", line 20, in ? globals(),locals(),[backend_name]) File "/usr/local/pkg/python/lib/python2.3/site-packages/matplotlib/backends/backend_gtkagg.py", line 16, in ? from _gtkagg import agg_to_gtk_drawable ImportError: No module named _gtkagg >>> I'm not sure how to proceed from here. I also am not a python programmer, just a system administrator trying to get this installed. Any help or fingers pointing me in a direction are greatly appreciated. Thanks. Cindy |
From: Fernando P. <Fer...@co...> - 2005-02-09 21:48:04
|
John Hunter wrote: > Hmm, seems to work for me -- you didn't specify the colors in your > example which makes it hard to test, so I'll add them Weird. I ran this a ton of times, and in _most_ cases I get your same results. And yet a _few_ times, and only when I pasted the code in an interactive window, the horizontal line ends below the sine/cosine plots. Very, very strange. > Well the zorder kwarg is your friend -- did you see > examples/zorder_demo.py ? Eg > > plot(x,y, zorder=100) # I'm on top! I did read it, but I guess I misunderstood the docstring on top. I understood it as meaning that you could only reorder classes of objects relative to one another (lines, text, patches), but not individual lines within the class of all lines. > Now, if I recall correctly, python sort doesn't guarantee preserving > order for equal element. Since the order in the respective list > (patches, lines, etc) *is* determined by the order of the plot > commands, we might be better off with > > dsu = [ (a.zorder, i, a) for i, a in enumerate(artists)] > dsu.sort() > > for zorder, i, a in dsu: > a.draw(renderer) > > to guarantee relative order for artists with the same zorder. > > Or is sort relative order preserving for equal elements? Well, the funny thing about my sometimes-odd results, is that in python 2.3, list.sort _is_ stable: http://py-stablesort.sourceforge.net/doc/2002_07_28_pythonowns_archive.html http://mail.python.org/pipermail/python-list/2003-April/160326.html So I'm not quite sure why I get odd results in a few cases. And I can't seem to find a reliable way to repeat the behavior. But thanks for the clarification on the zorder argument, that's enough for me to get the behavior I need. I'll update the zorder_demo example with a more explicit docstring so others don't fall into the same confusion. Cheers, f |
From: John H. <jdh...@ac...> - 2005-02-09 21:41:31
|
>>>>> "Robert" == Robert Leftwich <ro...@le...> writes: Robert> I'm unable to successfully download the user guide, it Robert> keeps bombing out at about 3MB (other downloads are Robert> fine). Google doesn't turn up any alternate sources and I Robert> was wondering if there is another site (as yet Robert> undiscovered by the Googlebots) to download it from? I'm able to download it from the sf site -- perhaps it's your download client? JDH |
From: John H. <jdh...@ac...> - 2005-02-09 20:00:04
|
>>>>> "Fernando" == Fernando Perez <Fer...@co...> writes: Fernando> Hi all, I am having a bit of a problem with the order Fernando> things get drawn. I looked at the zorder example and Fernando> the docs, but I can't seem to find a solution. Here's Fernando> an illustration: Fernando> http://amath.colorado.edu/faculty/fperez/tmp/zorder_prob.png Fernando> The red wiggly line is drawn first, by a loglog() call, Fernando> and then the green one is an axhline() call. However, Fernando> the green line ends up below the red one. It turns out Fernando> that in cases where the range of the red stuff is above Fernando> the green cutoff, this causes the green line to be Fernando> totally obscured. And for my plots, it's important that Fernando> the green line is clearly visible always. Fernando> My naive expectation was that whatever was called last Fernando> on the plot would end up on top, but that doesn't seem Fernando> to be the case. I did a few experiments: Fernando> x=frange(0,2*pi,npts=100) figure() Fernando> plot(x,sin(x),x,cos(x),linewidth=10) Fernando> plot(x,sin(2*x),linewidth=10) axhline(0,linewidth=10) Hmm, seems to work for me -- you didn't specify the colors in your example which makes it hard to test, so I'll add them from pylab import * x=frange(0,2*pi,npts=100) figure() plot(x,sin(x),x,cos(x),linewidth=10, color='red') plot(x,sin(2*x),linewidth=10, color='green') axhline(0,linewidth=10, color='blue') show() with results at http://matplotlib.sf.net/jdh.png Fernando> And I can't really figure out what determines the zorder Fernando> of all the line objects. Well the zorder kwarg is your friend -- did you see examples/zorder_demo.py ? Eg plot(x,y, zorder=100) # I'm on top! I think I have an idea of what may be causing the plot order problem you are experiencing From axes.py draw method artists = [] artists.extend(self.collections) artists.extend(self.patches) artists.extend(self.lines) artists.extend(self.texts) dsu = [ (a.zorder, a) for a in artists] dsu.sort() for zorder, a in dsu: a.draw(renderer) Now, if I recall correctly, python sort doesn't guarantee preserving order for equal element. Since the order in the respective list (patches, lines, etc) *is* determined by the order of the plot commands, we might be better off with dsu = [ (a.zorder, i, a) for i, a in enumerate(artists)] dsu.sort() for zorder, i, a in dsu: a.draw(renderer) to guarantee relative order for artists with the same zorder. Or is sort relative order preserving for equal elements? JDH |
From: Fernando P. <Fer...@co...> - 2005-02-09 19:41:22
|
Hi all, I am having a bit of a problem with the order things get drawn. I looked at the zorder example and the docs, but I can't seem to find a solution. Here's an illustration: http://amath.colorado.edu/faculty/fperez/tmp/zorder_prob.png The red wiggly line is drawn first, by a loglog() call, and then the green one is an axhline() call. However, the green line ends up below the red one. It turns out that in cases where the range of the red stuff is above the green cutoff, this causes the green line to be totally obscured. And for my plots, it's important that the green line is clearly visible always. My naive expectation was that whatever was called last on the plot would end up on top, but that doesn't seem to be the case. I did a few experiments: x=frange(0,2*pi,npts=100) figure() plot(x,sin(x),x,cos(x),linewidth=10) plot(x,sin(2*x),linewidth=10) axhline(0,linewidth=10) And I can't really figure out what determines the zorder of all the line objects. Is there a way to control this? Would it make sense to make the default behavior something more like what hand-drawing would cause? I mean: you draw on the canvas as if it were paper, and newly drawn lines appear on top of older ones. Maybe there's a good reason for the current design, and I'm just missing the proper incantation. I'd be very grateful for a pointer in the right direction. Cheers, f |
From: Darren D. <dd...@co...> - 2005-02-09 16:03:56
|
Try this: a=arange(10) l1,err = errorbar(a,a,sqrt(a)) legend((l1,),('it works',)) On Wednesday 09 February 2005 10:05 am, Bryan Cole wrote: > Hi, > > When I try to add a legend to an errorbar plot, each individual errorbar > gets added to the legend (without a label). With ~2000 points in my > plot, I end up with >2000 entries in my legend: not good. > > Can anyone suggest a work-around for this? > > thanks, > Bryan > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren |
From: Bryan C. <bry...@te...> - 2005-02-09 15:06:12
|
Hi, When I try to add a legend to an errorbar plot, each individual errorbar gets added to the legend (without a label). With ~2000 points in my plot, I end up with >2000 entries in my legend: not good. Can anyone suggest a work-around for this? thanks, Bryan |
From: Christoph H. <c.h...@gm...> - 2005-02-09 13:26:12
|
Hello, I have a problem with the interactive zooming function of the matplotlib "figure" Object. I plotted a set of data as a line (simulated data) and a set of data (measured data) as points. They are both in a subplot to show the differences: plot (X1, Y1, color=(r1,g1,b1),linewidth=1.0) plot (X2, Y2, 'ro',markersize=2) Problem: Zooming is only possible in parts of the graph, where there is only the data (X1, Y1) printed. Does someone can help me? Thanks in advance. Christoph -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl |
From: Robert L. <ro...@le...> - 2005-02-09 10:21:20
|
I have a requirement to generate a scatter plot with the background divided into 4 equal rectangular regions, each a different colour/shade indicating a particular characteristic of the points in that region. What is the best way to do this in matplotlib? Robert PS I apologise in advance if this is answered in the user guide, but I'm unable to download it atm for some strange reason. |
From: Robert L. <ro...@le...> - 2005-02-09 10:04:25
|
I'm unable to successfully download the user guide, it keeps bombing out at about 3MB (other downloads are fine). Google doesn't turn up any alternate sources and I was wondering if there is another site (as yet undiscovered by the Googlebots) to download it from? Robert |
From: John H. <jdh...@ac...> - 2005-02-08 19:04:32
|
A little roll reversal today. Rather than you asking me how to use matplotlib interactively on win32, I'll ask you... The reason: a former adviser of mine is teaching a biomath course, and is using python with Numeric and matplotlib for the computational part. Almost all of his students are windows XP users, and are struggling a little bit with the impoverished command shell. I've recommended ipython to them, and sent a zip file with all the prereqs, but even this may be a bit much for some typical windows users who came of age in the post DOS era -- for one thing they still need a code editor. Is anyone using matplotlib robustly a GUI IDE in win32? By robustly, I mean, generating plots from the command shell and files, editing the files with an integrated editor, running them from there, interactively opening and closing windows, switching between command line interaction and file mode, without crashes and freezes? If so, please advise, with info about your configuration and suggestions. idle was my first inclination, despite the fact that it is rather impoverished GUI, but with all the recent matplotlib changes in tkagg's PYTHONINSPECT setting with or w/o idle -n I am not sure how robust it is currently. Thanks! JDH |
From: John H. <jdh...@ac...> - 2005-02-08 13:42:09
|
>>>>> "Teemu" == Teemu Rinne <Tee...@he...> writes: Teemu> How to do this? Do I have to combine the RGB values of the Teemu> two images 'manually'? Basically what you are talking about is adding an alpha channel to the color map, and setting it to be transparent for image values less than a certain value. Perry Greenfield is the colormap implementer and resident expert. Perry -- how hard would it be to either subclass or extend the current framework to include an alpha channel? I think it could be done in just a few lines of code actually. Eg, something like self._alpha_lut = makeMappingArray(self.N, self._segmentdata.get('blue', [1.0, 1.0]) and then modifying def __call__(self, X, alpha=1.0): to deal with it. Perry do you have time to take a crack at this? I think this would be very useful. Thanks, JDH |
From: John H. <jdh...@ac...> - 2005-02-08 13:34:42
|
>>>>> "Chris" == Chris Barker <Chr...@no...> writes: Chris> I'd vote for Agg. Postscript is not the native format on Chris> OS-X that it is on other unices. Chris> Is there a way to make the default back-end system Chris> dependent on install? For a src distribution, you could write a postinstall script that does try/except on various GUIs and writes an rc file based on what it finds. This is basically what setup.py does in trying to figure out which backend to build, but doesn't transmit that information to rc -- perhaps it should. Although this would be fairly easy in a src distro, it would be fairly hard in the binary installer which you are trying to build. Alternatively, the backend importer could be a little smarter, and first try the default rc param and then loop over available backends trying to find a match, and issue a verbose report saying "dear newbie, I cannot import your default backend, please see http://blah." but still go ahead and launch something. I have mixed feelings about this -- the more magic we do the more complex it is to debug problems. Also, you have to be careful not to swallow tracebacks, eg pygtk import can fail even if pygtk has been installed on the system, and the user needs to know about this. But I am not totally opposed to it. In fact, I would definitely include it if it was an rc option. Eg, binary package makers like yourself could turn it on since you don't know the user configuration, and src distributors like me could turn it off, assuming people who build their own code can configure it like they like it. Power users want as little magic going on as possible -- new users usually want maximal magic. The function to look at is __init__.py in the main matplotlib tree. Currently we do def get_backend(): return rcParams['backend'] you would want to add an rc param, something like backend : ['TkAgg'] # try these if default fails backend.try = ['GTKAgg, 'WXAgg', 'Agg', 'PS] and then modify get_backend to iterate over these backends, trying to import something to test if it is available, issuing reports if the default backend fails. In the src distro, I always have the option of making backend.try the empty list, which would be the same as the current behavior. and JDH |