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
(20) |
2
(21) |
3
(21) |
4
(14) |
5
(8) |
|
6
(12) |
7
(16) |
8
(27) |
9
(39) |
10
(19) |
11
(12) |
12
(3) |
|
13
(3) |
14
(18) |
15
(14) |
16
(6) |
17
(7) |
18
(19) |
19
(5) |
|
20
(8) |
21
(24) |
22
(42) |
23
(12) |
24
(11) |
25
(16) |
26
(2) |
|
27
(4) |
28
(10) |
|
|
|
|
|
|
From: Thomas L. <thl...@ms...> - 2011-02-09 12:22:29
|
matplotlib.cbook documentation : http://matplotlib.sourceforge.net/api/cbook_api.html?highlight=matplotlib.cbook#matplotlib.cbook.get_sample_data matplotlib.cbook.get_sample_data(fname, asfileobj=True)¶ Check the cachedirectory ~/.matplotlib/sample_data for a sample_data file. If it does not exist, fetch it with urllib from the mpl svn repo http://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/sample_data/ and store it in the cachedir. If asfileobj is True, a file object will be returned. Else the path to the file as a string will be returned To add a datafile to this directory, you need to check out sample_data from matplotlib svn: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/sample_data and svn add the data file you want to support. This is primarily intended for use in mpl examples that need custom data. To bypass all downloading, set the rc parameter examples.download to False and examples.directory to the directory where we should look. So, you have to have the logo.png image in the $home$/matplotlib/sample_data. If it is not present there, the script will try to download it from the server. Thomas ps : emailing 3 times the same question doesn't make the answer come faster. ********************** Thomas Lecocq Geologist Ph.D.Student (Seismology) Royal Observatory of Belgium ********************** > Date: Wed, 9 Feb 2011 12:27:21 +0100 > From: tho...@is... > To: mat...@li... > Subject: [Matplotlib-users] Trouble with api example code within watermark_image.py > > Dear Developers of Matplotlib, > > at first thanks for this mightiest tool for graphical output from python > data. I have encountered problems on trying the watermark feature as > described at > http://matplotlib.sourceforge.net/examples/api/watermark_image.html. > > When I invoke the script from a Enthought Python Compiler in the Windows > COM then I got this message: > > Traceback (most recent call last): > File "Fluide\script1.py", line 13, in <module> > datafile = cbook.get_sample_data('logo.png', asfileobj=False) > File > "D:\Programme\Enthought\lib\site-packages\matplotlib-1.0.1_r0-py2.6-win32.egg\matplotlib\cbook.py", > line 676, in get_sample_data > return myserver.get_sample_data(fname, asfileobj=asfileobj) > File > "D:\Programme\Enthought\lib\site-packages\matplotlib-1.0.1_r0-py2.6-win32.egg\matplotlib\cbook.py", > line 623, in get_sample_data > raise KeyError(msg) > KeyError: 'file iselogo.png not in cache; received <urlopen error [Errno > 10061] No connection could be made because the target machine actively > refused it> when trying to retrieve' > > Does anyone no a solution for this problem? Image is in the same > directory as the script. Or if now I switched to it by os.chdir to the > specific path. > > Thanks in advance for your help. > > Kindly regards, > Thore Oltersdorf > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Thore O. <tho...@is...> - 2011-02-09 11:33:33
|
Dear Developers of Matplotlib, at first thanks for this mightiest tool for graphical output from python data. I have encountered problems on trying the watermark feature as described at http://matplotlib.sourceforge.net/examples/api/watermark_image.html. When I invoke the script from a Enthought Python Compiler in the Windows COM then I got this message: Traceback (most recent call last): File "Fluide\script1.py", line 13, in <module> datafile = cbook.get_sample_data('logo.png', asfileobj=False) File "D:\Programme\Enthought\lib\site-packages\matplotlib-1.0.1_r0-py2.6-win32.egg\matplotlib\cbook.py", line 676, in get_sample_data return myserver.get_sample_data(fname, asfileobj=asfileobj) File "D:\Programme\Enthought\lib\site-packages\matplotlib-1.0.1_r0-py2.6-win32.egg\matplotlib\cbook.py", line 623, in get_sample_data raise KeyError(msg) KeyError: 'file iselogo.png not in cache; received <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it> when trying to retrieve' Does anyone no a solution for this problem? Thanks in advance for your help. Kindly regards, Thore Oltersdorf |
|
From: Thore O. <tho...@is...> - 2011-02-09 11:27:28
|
Dear Developers of Matplotlib, at first thanks for this mightiest tool for graphical output from python data. I have encountered problems on trying the watermark feature as described at http://matplotlib.sourceforge.net/examples/api/watermark_image.html. When I invoke the script from a Enthought Python Compiler in the Windows COM then I got this message: Traceback (most recent call last): File "Fluide\script1.py", line 13, in <module> datafile = cbook.get_sample_data('logo.png', asfileobj=False) File "D:\Programme\Enthought\lib\site-packages\matplotlib-1.0.1_r0-py2.6-win32.egg\matplotlib\cbook.py", line 676, in get_sample_data return myserver.get_sample_data(fname, asfileobj=asfileobj) File "D:\Programme\Enthought\lib\site-packages\matplotlib-1.0.1_r0-py2.6-win32.egg\matplotlib\cbook.py", line 623, in get_sample_data raise KeyError(msg) KeyError: 'file iselogo.png not in cache; received <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it> when trying to retrieve' Does anyone no a solution for this problem? Image is in the same directory as the script. Or if now I switched to it by os.chdir to the specific path. Thanks in advance for your help. Kindly regards, Thore Oltersdorf |
|
From: Thore O. <tho...@is...> - 2011-02-09 11:21:34
|
Dear Developers of Matplotlib, at first thanks for this mightiest tool for graphical output from python data. I have encountered problems on trying the watermark feature as described at http://matplotlib.sourceforge.net/examples/api/watermark_image.html. When I invoke the script from a Enthought Python Compiler in the Windows COM then I got this message: Traceback (most recent call last): File "Fluide\script1.py", line 13, in <module> datafile = cbook.get_sample_data('logo.png', asfileobj=False) File "D:\Programme\Enthought\lib\site-packages\matplotlib-1.0.1_r0-py2.6-win32.egg\matplotlib\cbook.py", line 676, in get_sample_data return myserver.get_sample_data(fname, asfileobj=asfileobj) File "D:\Programme\Enthought\lib\site-packages\matplotlib-1.0.1_r0-py2.6-win32.egg\matplotlib\cbook.py", line 623, in get_sample_data raise KeyError(msg) KeyError: 'file iselogo.png not in cache; received <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it> when trying to retrieve' Does anyone no a solution for this problem? Thanks in advance for your help. Kindly regards, Thore Oltersdorf |
|
From: Thore O. <tho...@is...> - 2011-02-09 11:18:17
|
Dear Matplotlib-Users. I try to generate some 2d plot with dimension log10(p)-h from refprop. For the isolines (isentropes, isotherms, isochores etc.) I was successful but adding labels to these isolines were quite discouraging until now. Please have a view on the screenshot to have an idea of the feature I try to realize. I tried to find a similar feature as given in the contour API for the clabel. There it is possible to define something like an inline label. (Of course I could have done this job with contour plots from the beginnings. But please no hints like this. It would mean to begin from scratch again...) Then I had the idea to generate points directly at the limits of the x- and y-axis on each isoline to use it for an annotate instance. But it would mean to annotate in the ticker region which is in a layer on top of the graph/image. Later I wanted to set markeredgewidth and markersize to zero just to have annotation as the feature of choice. Now I am not sure how to procede and hope that someone of you has an idea. Thanks in advance for your help. Kindly regards, Thore Oltersdorf |
|
From: Thore O. <tho...@is...> - 2011-02-09 11:11:56
|
Dear Matplotlib-Users. After changing the scaling from the y-axis from default to semilogy the tickers were not updated anymore automatically when a zoom is applied. Even after deep searches within the ticker API as well as the mail archive list I could not find an appropriate solution for this. In the original artist/image (sorry for confused usage of this termini, I am pretty new to matplotlib): the scale has a default log10-base with major tickers including labels and minor tickers without (guess this is the default ticker formatting). I was messing around a lot with autoscale(enable=True,axis='both') and set_autoscale_on(True) and relim(). But actually the sovereign handling ot this API is still missing for me and I was not able to solve the problem. Thanks in advance for your help. Kindly regards, Thore Oltersdorf |
|
From: neurino <ne...@gm...> - 2011-02-09 10:53:24
|
Hi, I'm a matplotlib newbie. An example is worth a thousand words: In [1]: matplotlib.__version__ Out[1]: '0.99.3' In [2]: a, b, x = np.zeros(10), np.ones(10), np.arange(10) In [3]: plot(x, a); plot(x, b) Well all I see is an empty plot with the two horizontal lines at y=0 and y=1 covered by the upper and lower frame lines. Why aren't bounds set a little more larger so the two lines can show properly??? I guess this is a common situation, for example 2 or more stable temperatures: the higher and the lower never show... How can I fix it? Thanks for your support. |
|
From: Eric L. <eri...@gm...> - 2011-02-09 09:58:48
|
On 01/27/2011 09:24 PM, Thomas Lecocq wrote: > Hi, > > Adding some extra work in the readshapefile method in your code allows > you to play with the region names etc,... > > I've just made a new tutorial script to show this : > > http://www.geophysique.be/2011/01/27/matplotlib-basemap-tutorial-07-shapefiles-unleached/ > Thanks for your great job, it's brilliant! And sorry for the long time delay to reply your mail, as I've just been back from the Chinese new year's vacation. Wishing you peace, joy and happiness throughout the coming year! Eric > > Thom > > > ********************** > Thomas Lecocq > Geologist > Ph.D.Student (Seismology) > Royal Observatory of Belgium > ********************** > > > > ------------------------------------------------------------------------ > Date: Thu, 27 Jan 2011 17:59:03 +0800 > From: eri...@gm... > To: thl...@ms... > CC: eri...@gm...; mat...@li... > Subject: Re: [Matplotlib-users] How to draw a specific country by basemap? > > On 01/27/2011 01:38 AM, Thomas Lecocq wrote: > > Hi, > > An easy way is to use the data from http://www.gadm.org/ and to > plot it with m.readshapefile() > > Thank you very much. The GDAM database is great. > > BTW, would you like to give some suggestions about how to color the > map, i.e., highlight a specific region? > > Thanks, > Eric > > > HTH, > > Thom > > ********************** > Thomas Lecocq > Geologist > Ph.D.Student (Seismology) > Royal Observatory of Belgium > ********************** > > > > ------------------------------------------------------------------------ > Date: Wed, 26 Jan 2011 16:03:27 +0800 > From: eri...@gm... <mailto:eri...@gm...> > To: mat...@li... > <mailto:mat...@li...> > Subject: [Matplotlib-users] How to draw a specific country by basemap? > > Hi all, > > I'm using the Basemap module in matplotlib, it's great to draw a > world map but for a specific country. Empirically, one can draw > its own country by specifying the lats and longs like this example: > > http://matplotlib.sourceforge.net/basemap/doc/html/users/geography.html > > And you can use the method: drawcontries() to draw the country > boundries, but all the countries are in the same colour. Does > anyone know how to highlight a specific country? Thanks in advance. > > Eric > > -- > -----BEGIN GEEK CODE BLOCK----- > Version: 3.1 > GCM/CS/E/MU/P d+(-) s: a- C++ UL$ P+>++ L++ E++ W++ N+ o+>++ K+++ w !O > M-(+) V-- PS+ PE+ Y+ PGP++ t? 5? X? R+>* tv@ b++++ DI-- D G++ e++>+++@ h* > r !y+ > ------END GEEK CODE BLOCK------ > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD > value)! Finally, a world-class log management solution at an even > better price-free! Download using promo code > Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your > free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ Matplotlib-users > mailing list Mat...@li... > <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > -- > -----BEGIN GEEK CODE BLOCK----- > Version: 3.1 > GCM/CS/E/MU/P d+(-) s: a- C++ UL$ P+>++ L++ E++ W++ N+ o+>++ K+++ w !O > M-(+) V-- PS+ PE+ Y+ PGP++ t? 5? X? R+>* tv@ b++++ DI-- D G++ e++>+++@ h* > r !y+ > ------END GEEK CODE BLOCK------ > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer > expires February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ Matplotlib-users > mailing list Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/CS/E/MU/P d+(-) s: a- C++ UL$ P+>++ L++ E++ W++ N+ o+>++ K+++ w !O M-(+) V-- PS+ PE+ Y+ PGP++ t? 5? X? R+>* tv@ b++++ DI-- D G++ e++>+++@ h* r !y+ ------END GEEK CODE BLOCK------ |
|
From: Eric F. <ef...@ha...> - 2011-02-09 07:50:48
|
On 02/08/2011 02:39 PM, Christoph Gohlke wrote: > > > Please consider the attached patch for the _image.frombyte function. It > avoids temporary copies in case of non-contiguous input arrays. Copying > a 1024x1024 slice out of a contiguous 4096x4096 RGBA or RGB array is > about 7x faster (a common case for zooming/panning). Copying contiguous > RGB input arrays is ~2x faster. Tested on win32-py2.7. > > Christoph > Thank you! Looks good, speeds up zooming and panning on large images as advertised. An 8000x8000 image is actually manageable now. interpolation='nearest' is still very slow until the image is substantially zoomed, but everything is quite quick with other interpolation styles. The slowness of 'nearest' looks like a basic characteristic of the implementation. I committed the patch in 8966. Before that I found and committed a big speed-up in Normalize. Eric |
|
From: Benjamin R. <ben...@ou...> - 2011-02-09 02:44:15
|
On Tue, Feb 8, 2011 at 5:53 PM, Paul Leopardi <pau...@ii...>wrote: > Hi Ben, > On Wed, 9 Feb 2011 03:15:19 AM you wrote: > > As formatted, the code would not run. I presume that everything after > "for > > j in range(0,M):" should be indented? When I did that and ran it in > > ipython, I could not reproduce your problem. What version of matplotlib > > are you running? > > Thanks for your continued close attention to this undoubted problem. > > Your email system mangled the indentation. The correct indentation is > displayed at > http://sourceforge.net/mailarchive/message.php?msg_id=27020771 > > I have also included a copy of the script matplotlib_bug_example.py with > this > message. [*Not* posted to the list.] Here is how I run it: > > ipython -pylab > Python 2.6.2 (r262:71600, Oct 28 2010, 20:54:41) > Type "copyright", "credits" or "license" for more information. > > IPython 0.10 -- An enhanced Interactive Python. > ? -> Introduction and overview of IPython's features. > %quickref -> Quick reference. > help -> Python's own help system. > object? -> Details about 'object'. ?object also works, ?? prints more. > > Welcome to pylab, a matplotlib-based Python environment. > For more information, type 'help(pylab)'. > > In [1]: run matplotlib_bug_example.py > > My original post > http://sourceforge.net/mailarchive/message.php?msg_id=27016368 > listed what I thought were the relevant versions: > > Quote > I am using openSUSE 11.2 with > python-base-2.6.2-6.7.1.x86_64 > python-matplotlib-1.0.1-20.1.x86_64 > python-matplotlib-tk-1.0.1-20.1.x86_64 > python-matplotlib-wx-1.0.1-20.1.x86_64 > Unquote > > I have since run the script on a second machine which uses Ubuntu Karmic, > with > identical results. > > Versions in brief: > Linux linfinit 2.6.31.12-0.1-default #1 SMP PREEMPT 2010-12-10 11:18:32 > +0100 > x86_64 x86_64 x86_64 GNU/Linux > > IPython-0.10-3.2.noarch > python-2.6.2-6.7.1.x86_64 > python-matplotlib-1.0.1-20.1.x86_64 > python-matplotlib-tk-1.0.1-20.1.x86_64 > python-matplotlib-wx-1.0.1-20.1.x86_64 > python-numpy-1.5.0-17.2.x86_64 > python-tk-2.6.2-6.7.1.x86_64 > > Linux cheeze 2.6.31-22-generic #70-Ubuntu SMP Wed Dec 1 23:51:13 UTC 2010 > i686 GNU/Linux > > ipython 0.10-1 > python 2.6.4-0ubuntu1 > python-matplotlib 0.99.0-1ubuntu1 > python-numpy 1:1.3.0-3 > python-tk 2.6.3-0ubuntu1 > > > I have included a listing showing all versions of all packages with names > containing the string "python", on both machines. [*Not* posted to the > list.] > Best, Paul > > Trying out the script on another machine of mine, I was able to reproduce the problem. I will have to see what is the difference between my two computers that would cause the other one to work perfectly fine. Ben Root |
|
From: Curiouslearn <cur...@gm...> - 2011-02-09 00:43:41
|
Thanks again, Paul! Now I understand. I tried your example and I can
see the effect of those commands.
On Tue, Feb 8, 2011 at 7:29 PM, Paul Ivanov <piv...@gm...> wrote:
> Curiouslearn, on 2011-02-08 19:04, wrote:
>> I wonder then what edgecolor, linewidth etc. change in case of axes.patch.
>
> They do what one would expect, but the spines were likely
> preventing you from seeing this:
>
> ax = plt.subplot(1,1,1)
> [s.set_visible(False) for s in ax.spines.values()]
> ax.patch.set_linewidth(2)
> ax.patch.set_edgecolor('red')
> plt.draw()
>
> best,
> --
> Paul Ivanov
> 314 address only used for lists, off-list direct email at:
> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAk1R39oACgkQe+cmRQ8+KPd9xgCfQcoPu5wU9O/k5IqlsTlUpTKD
> P6sAnjPfi4Dv1xxEDDB8WxVtiy7s1Oj9
> =/N2z
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
|
|
From: Christoph G. <cg...@uc...> - 2011-02-09 00:39:58
|
On 2/5/2011 1:02 PM, Eric Firing wrote: > On 02/04/2011 02:03 PM, Christoph Gohlke wrote: > [...] >> >> How about these changes to color.py (attached). This avoids copies, uses >> in-place operations, and calculates single precision when normalizing >> small integer and float32 arrays. Similar could be done for LogNorm. Do >> masked arrays support in-place operations? >> >> Christoph > > Christoph, > > Thank you. > > Done (with slight modifications) in 8946 (trunk). > > I was surprised by the speedup in normalizing large arrays when using > float32 versus float64. A factor of 10 on my machine with (1000,1000), > timed with ipython %timeit. Because of the way %timeit does multiple > tests, I suspect it may exaggerate cache effects. > > Eric Please consider the attached patch for the _image.frombyte function. It avoids temporary copies in case of non-contiguous input arrays. Copying a 1024x1024 slice out of a contiguous 4096x4096 RGBA or RGB array is about 7x faster (a common case for zooming/panning). Copying contiguous RGB input arrays is ~2x faster. Tested on win32-py2.7. Christoph |
|
From: Paul I. <piv...@gm...> - 2011-02-09 00:29:37
|
Curiouslearn, on 2011-02-08 19:04, wrote:
> I wonder then what edgecolor, linewidth etc. change in case of axes.patch.
They do what one would expect, but the spines were likely
preventing you from seeing this:
ax = plt.subplot(1,1,1)
[s.set_visible(False) for s in ax.spines.values()]
ax.patch.set_linewidth(2)
ax.patch.set_edgecolor('red')
plt.draw()
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
|
|
From: Curiouslearn <cur...@gm...> - 2011-02-09 00:04:21
|
Thanks very much Paul. This worked great.
I wonder then what edgecolor, linewidth etc. change in case of axes.patch.
Thanks again.
On Tue, Feb 8, 2011 at 6:22 PM, Paul Ivanov <piv...@gm...> wrote:
> Curiouslearn, on 2011-02-08 15:32, wrote:
>> Sorry if the subject line does not use correct terminology. But the
>> following explains the question I have:
>> Suppose I have the following code:
>>
>> import matplotlib.pyplot as plt
>>
>> fig1 = plt.figure()
>> ax1 = fig1.add_subplot(1,1,1)
>>
>> ax1.scatter(xvalues, yvalues)
>> ax1.axvline(1.3, color='DarkGreen')
>> rect = ax1.patch
>> rect.set_facecolor('SteelBlue') #This works
>> rect.set_edgecolor('red') # Is it supposed to set the color of the
>> border. If so, this DOES NOT work.
>> rect.set_linestyle('dashed') # This DOES NOT work.
>> rect.set_linewidth(4) # This DOES NOT work.
>>
>> For the things that do not work, I tried both
>>
>> plt.show()
>>
>> and,
>>
>> plt.savefig('this_figure.pdf')
>>
>> Why do the things that I have indicated do not work?
>>
>> My second question is, if I want to have only the x-axis and y-axis
>> line (i.e., get rid of the right edge and top edge of the axes frame)
>> how do I do it?
>
> The names of the things you want to change are called spines.
>
> You want:
>
> ax1.spines['right'].set_visible(False)
> ax1.spines['top'].set_visible(False)
> ax1.spines['left'].set_color('red')
> ax1.spines['bottom'].set_color('red')
> #and so on for .set_linestyle, .set_linewidth
>
> To hide the tickmarks that are right next to the spines, you can
> do:
>
> ax1.xaxis.tick_bottom()
> ax1.yaxis.tick_left()
>
> and finally, to color the ticks in red as well, do:
>
> ax1.tick_params(color='red')
>
> best,
> --
> Paul Ivanov
> 314 address only used for lists, off-list direct email at:
> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAk1R0CoACgkQe+cmRQ8+KPcmJwCgk8DmrReu7A+v8qSqK0OmXxFe
> HWQAnjRAogcretSNthEJN82koTuPmFhx
> =zzWa
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
|