SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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
(1)
2
(43)
3
(17)
4
(12)
5
(9)
6
(14)
7
(8)
8
9
(15)
10
(16)
11
(11)
12
(10)
13
(20)
14
(7)
15
(4)
16
(16)
17
(25)
18
(10)
19
(27)
20
(26)
21
(6)
22
(20)
23
(12)
24
(15)
25
(22)
26
(15)
27
(43)
28
(8)
29
(6)
30
(12)





Showing 17 results of 17

From: Andrew S. <str...@as...> - 2008年06月03日 17:16:58
I have .debs for Ubuntu Hardy available at http://debs.astraw.com/hardy/
. Note that these packages don't follow all Debian/Ubuntu guidelines and
are of lower quality than the official packages, which I recommend over
these. Nevertheless, I've packaged these things up for my personal and
my laboratory's use, and anyone is welcome to use them, too. As always,
please let me know if you find any bugs.
(The source .dsc packages are also available at the same site, and might
work with recompilation for Debian testing and possibly older Ubuntu
versions.)
-Andrew
Johan Mazel wrote:
> Hi
> I'd like to know when the latest packages in *.deb or *.rpm (from the
> 0.98.0 version) will be available in the repositories ?
> If you have any addresses of "custom" repositories where I could get
> this package, it would be nice too.
>
> I prefer to have a package installed than installed the software
> myself since I think it would be easier for me if I want to uninstall it.
>
> Thanks.
> Johan Mazel
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
From: Johan M. <joh...@gm...> - 2008年06月03日 16:01:10
Hi
I'd like to know when the latest packages in *.deb or *.rpm (from the 0.98.0
version) will be available in the repositories ?
If you have any addresses of "custom" repositories where I could get this
package, it would be nice too.
I prefer to have a package installed than installed the software myself
since I think it would be easier for me if I want to uninstall it.
Thanks.
Johan Mazel
From: Michael D. <md...@st...> - 2008年06月03日 14:24:55
Berit Hinnemann wrote:
>
> Hi Michael,
>
> Thanks a lot for your reply.
>
> >No. As of 0.91 and later, you can mix normal text with math. Just
> >stick the math inside a pair of '$'.
>
> I just realized that I have version 0.90 installed. Is it advisable to 
> upgrade to 0.93 or to 0.98 directly? Also, how do I uninstall the 0.90 
> version before installing the new one? My old version is located in 
> site-packages as an .egg directory.
I never use eggs myself, but you should be able to delete that egg 
directory and then install a new matplotlib version. matplotlib doesn't 
install anything required outside of site-packages/matplotlib.
>
> As for the code to set the fonts, I use
>
> rc('font',**{'family':'sans-serif', 'sans-serif':['Helvetica']})
>
That seems to work for me for any font I throw at it. Do you have 
usetex on, or any other non-default settings in your matplotlibrc file? 
Are you running this line (above) before any plotting?
Cheers,
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Friedrich H. <fri...@gm...> - 2008年06月03日 13:58:59
On Tue, Jun 03, 2008 at 03:55:48PM +0200, Friedrich Hagedorn wrote:
>
> I want do add an arrow *tip* to a line with the same angle.
It should behave like a marker: it should not resize when I zoom in.
By, Friedrich
From: Friedrich H. <fri...@gm...> - 2008年06月03日 13:56:00
Attachments: arrow.png
Hello,
I want do add an arrow *tip* to a line with the same angle.
I have tried this:
from pylab import *
from matplotlib import collections, transforms
def MyArrow(ax, x, y, ang, scale=50, over=.5, color='k'):
 ar = [(0,0), (-.5,-over), (0,1), (.5,-over), (0,0)]
 col = collections.PolyCollection(
 [ar],
 offsets=(x, y),
 transOffset=ax.transData,
 color=color
 )
 col.set_transform(transforms.Affine2D().rotate(ang).scale(scale))
 ax.add_collection(col)
plot([0,1,2], '.-', lw=2)
MyArrow(gca(), .5, .5, -pi/4)
draw()
and I get an arrow tip without the same line angle :-( See the attached
image.
Can you help me to get the right transformation?
Thanks,
 Friedrich
From: Tom E. <ted...@ep...> - 2008年06月03日 13:36:53
Hello all,
Just a quick question which I can't seem to find an answer to on google
or in the documentation. Is it possible to produce a Radar or Spider
chart: http://en.wikipedia.org/wiki/Radar_chart with Matplotlib?
I can see that you can produce polar plots, however the only references
I can find to "radar" plots are the "radar" green colour in the examples
file.
Just wondering whether it was worth pursuing this technique or using a
different method (if anyone knows of a python library that can do this I
would appreciate it?)
Kind regards,
Tom
From: John H. <jd...@gm...> - 2008年06月03日 13:36:16
Attachments: ticker.py
On Mon, Jun 2, 2008 at 11:44 PM, <chu...@ch...> wrote:
> Windows XP SP2 / MPL 0.98 / NumPy 1.1
>
> I wrote some code which has the following line
> ax1.yaxis.set_major_locator(MLT.LinearLocator(numticks=10))
>
> I now get the error
> AttributeError: LinearLocator instance has no attribute 'verify_intervals'
>
> This was working fine with the previous version of MPL.
>
> Any ideas for a workaround?
This looks like old cruft that did not have any tests and slipped
through the cracks on the upgrade. I'm attaching an updated file you
can drop in site-packages/matplotlib/. We'll fix this on our end so
that the updated version comes out in the bug-fix release. Let us
know if you see any more problems.
BTW: the LinearLocator is prettty old and the default matplotlib tick
locating has gotten a lot better so this is mostly obsolete. My guess
is you will get better results by simply commenting out the linear
locator part.
JDH
From: Berit H. <be...@to...> - 2008年06月03日 12:41:09
Hi Michael,
Thanks a lot for your reply.
>No. As of 0.91 and later, you can mix normal text with math. Just 
>stick the math inside a pair of '$'.
I just realized that I have version 0.90 installed. Is it advisable to 
upgrade to 0.93 or to 0.98 directly? Also, how do I uninstall the 0.90 
version before installing the new one? My old version is located in 
site-packages as an .egg directory. 
As for the code to set the fonts, I use
rc('font',**{'family':'sans-serif', 'sans-serif':['Helvetica']})
Best regards, Berit
No. As of 0.91 and later, you can mix normal text with math. Just 
stick the math inside a pair of '$'.
> -When I do that and set the default font to e.g. Helvetica, everything 
> gets printed in Helvetica, except the numbers on the axes. How can I 
> get them in Helvetica as well?
Can you include a snippet of code showing how you set those fonts?
This e-mail message (including attachments, if any) is confidential and 
may be privileged. It is intended only for the addressee.
Any unauthorised distribution or disclosure is prohibited. Disclosure to 
anyone other than the intended recipient does not constitute waiver of 
privilege.
If you have received this e-mail in error, please notify the sender by 
e-mail and delete it and any attachments from your computer system and 
records.
HALDOR TOPSOE (www.topsoe.com)
From: Michael D. <md...@st...> - 2008年06月03日 12:32:07
I've never needed to ask this question, so I don't know the answer, but 
I would suspect pylab, in reality, adds very little overhead to matplotlib.
But -- I would modify your test script to actually perform a plot using 
pylab vs. matplotlib API. Until you actually "do" something, you're 
just measuring the cost of importing and initialization, which is likely 
not the significant part of memory usage.
Also, make sure you aren't using a GUI backend. Use Agg, Pdf, Svg, Ps 
etc. depending on your desired output. The GUI backends will not only 
take up more memory, but they can break inside of a CGI/mod_python 
environment where you don't have an X server.
Cheers,
Mike
Larsen, Jesper wrote:
>
> Hi matplotlib users and developers,
>
> I am trying to run a web application using matplotlib in a memory 
> constrained environment. I have therefore tried to figure out what 
> memory overhead matplotlib incurs. When I run the following method 
> prior to and after importing pylab and matplotlib respectively I get:
>
> def report_memory():
> import os
> pid = os.getpid()
> a2 = os.popen('ps -p %d -o rss,vsz,%%mem' % pid).readlines()
> print a2[1],
> return int(a2[1].split()[1])
>
> import numpy
> report_memory()
> #import pylab
> #import matplotlib
> report_memory()
>
> $ python test.py
> 5976 17872 0.5
> 15608 41924 1.5
> $ python test.py
> 5972 17824 0.5
> 7608 20608 0.7
>
> I am importing numpy separately since I need it for other purposes. So 
> pylab uses ~24 MB while matplotlib uses 2.8 MB. Does this mean that I 
> should rewrite my application so that it does not depend on pylab or 
> will the matplotlib memory usage ramp up as I import sub modules? What 
> is your experience?
>
> Regards,
> Jesper
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Michael D. <md...@st...> - 2008年06月03日 12:23:26
Berit Hinnemann wrote:
>
> Hi again,
>
> Thanks a lot for all the replies. Markersize and Markeredgewidth work 
> beautifully.
>
> A couple more questions, which is, I think, are related to what Erik 
> Tollerud asked
>
> -Is it correct that I can only mix math symbols and normal text in an 
> axis label, when I use "usetex = True"
No. As of 0.91 and later, you can mix normal text with math. Just 
stick the math inside a pair of '$'.
> -When I do that and set the default font to e.g. Helvetica, everything 
> gets printed in Helvetica, except the numbers on the axes. How can I 
> get them in Helvetica as well?
Can you include a snippet of code showing how you set those fonts?
Cheers,
Mike
>
> Thanks a lot!
>
> Best regards,
> Berit
> ------------------------------------------------------------------------
> *Berit Hinnemann*
> Research Scientist | Characterization Department | Research & Development
>
> *Haldor Topsøe A/S*
> Nymøllevej 55
> DK-2800 Kgs. Lyngby
> Phone: +45 4527 2130 (direct)
>
> /Haldor Topsøe is market leading within heterogeneous catalysis and 
> supplies catalysts and process design for oil refineries, chemical 
> plants and the energy sector. The environment plays an important role 
> in Topsøe's research and production, and through the introduction of 
> new catalysts and technologies the company supports a more sustainable 
> use of the world's resources. Annual revenues total DKK 3.5 billion 
> generated by our 1,700 dedicated employees. For additional information 
> please see our web site /*_www.topsoe.com_* <http://www.topsoe.com/>
>
>
> *"John Hunter" <jd...@gm...>*
>
> 02-06-2008 19:51
>
> 	
> To
> 	Berit Hinnemann [BEHI]@htas
> cc
> 	mat...@li...
>
> 	
> Subject
> 	Re: [Matplotlib-users] Make tick labels thicker
>
>
>
> 	
>
>
>
>
>
> On Mon, Jun 2, 2008 at 12:45 PM, John Hunter <jd...@gm...> wrote:
>
> > for line in ax.get_xticklines() + ax.get_yticklines():
> > line.set_markeredgewidth(10)
>
> Correction ( I should have read the link myself first). The property
> you are probably interested is the markersize (marker size in points)
> though markeredgewidth may be useful too....
>
> JDH
>
>
>
> ------------------------------------------------------------------------
>
> This e-mail message (including attachments, if any) is confidential 
> and may be privileged. It is intended only for the addressee.
> Any unauthorised distribution or disclosure is prohibited. Disclosure 
> to anyone other than the intended recipient does not constitute waiver 
> of privilege.
> If you have received this e-mail in error, please notify the sender by 
> e-mail and delete it and any attachments from your computer system and 
> records.
> HALDOR TOPSOE (_www.topsoe.com_ <http://www.topsoe.com/>)
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Tom E. <ted...@ep...> - 2008年06月03日 11:51:31
Hello all,
Just a quick question which I can't seem to find an answer to on google 
or in the documentation. Is it possible to produce a Radar or Spider 
chart: http://en.wikipedia.org/wiki/Radar_chart with Matplotlib?
I can see that you can produce polar plots, however the only references 
I can find to "radar" plots are the "radar" green colour in the examples 
file.
Just wondering whether it was worth pursuing this technique or using a 
different method (if anyone knows of a python library that can do this I 
would appreciate it?)
Kind regards,
Tom
From: Larsen, J. <jl...@dm...> - 2008年06月03日 11:48:04
Hi matplotlib users and developers,
I am trying to run a web application using matplotlib in a memory constrained environment. I have therefore tried to figure out what memory overhead matplotlib incurs. When I run the following method prior to and after importing pylab and matplotlib respectively I get:
def report_memory():
 import os
 pid = os.getpid()
 a2 = os.popen('ps -p %d -o rss,vsz,%%mem' % pid).readlines()
 print a2[1],
 return int(a2[1].split()[1])
import numpy
report_memory()
#import pylab
#import matplotlib
report_memory()
$ python test.py 
 5976 17872 0.5
15608 41924 1.5
$ python test.py 
 5972 17824 0.5
 7608 20608 0.7
I am importing numpy separately since I need it for other purposes. So pylab uses ~24 MB while matplotlib uses 2.8 MB. Does this mean that I should rewrite my application so that it does not depend on pylab or will the matplotlib memory usage ramp up as I import sub modules? What is your experience?
Regards,
Jesper
From: Friedrich H. <fri...@gm...> - 2008年06月03日 09:49:48
On Mon, Jun 02, 2008 at 11:17:44PM +0300, Jouni K. Seppänen wrote:
> I can confirm this in at least version 0.91.3. The problem seems to be
> caused by the midpoint of the stem being included in the path twice in a
> row. The following patch removes the midpoint altogether and fixes the
> rendering problem at least on my version of xpdf. I'm kind of swamped
> right now, so I hope someone else can check whether this breaks any
> other uses of arrows, or some other backend. (If this doesn't seem to
> happen, please file a bug report in the tracker so it isn't forgotten.)
> The patch is against the maintenance branch, but the trunk has
> similar-looking code.
Thank you very much. It works for me too.
> Index: lib/matplotlib/patches.py
> ===================================================================
> --- lib/matplotlib/patches.py (revision 5366)
> +++ lib/matplotlib/patches.py (working copy)
> @@ -634,7 +634,13 @@
> if shape == 'right':
> coords = right_half_arrow
> elif shape == 'full':
> - coords=npy.concatenate([left_half_arrow,right_half_arrow[::-1]])
> + # Concatenating the full paths caused the midpoint
> + # of the stem to be included twice, which was
> + # rendered badly by xpdf. Since the point is right
> + # between the corners of the stem, we can drop it
> + # from both halves.
> + coords=npy.concatenate([left_half_arrow[:-1],
for the most recent svn version: npy => np
> + right_half_arrow[-2::-1]])
> else:
> raise ValueError, "Got unknown shape: %s" % shape
> cx = float(dx)/distance
By,
 Friedrich
From: Berit H. <be...@to...> - 2008年06月03日 07:18:41
Hi again,
Thanks a lot for all the replies. Markersize and Markeredgewidth work 
beautifully.
A couple more questions, which is, I think, are related to what Erik 
Tollerud asked
-Is it correct that I can only mix math symbols and normal text in an axis 
label, when I use "usetex = True"
-When I do that and set the default font to e.g. Helvetica, everything 
gets printed in Helvetica, except the numbers on the axes. How can I get 
them in Helvetica as well?
Thanks a lot!
Best regards,
Berit
Berit Hinnemann
Research Scientist | Characterization Department | Research & Development 
Haldor Topsøe A/S
Nymøllevej 55
DK-2800 Kgs. Lyngby
Phone: +45 4527 2130 (direct)
Haldor Topsøe is market leading within heterogeneous catalysis and 
supplies catalysts and process design for oil refineries, chemical plants 
and the energy sector. The environment plays an important role in Topsøe's 
research and production, and through the introduction of new catalysts and 
technologies the company supports a more sustainable use of the world's 
resources. Annual revenues total DKK 3.5 billion generated by our 1,700 
dedicated employees. For additional information please see our web site 
www.topsoe.com
"John Hunter" <jd...@gm...> 
02-06-2008 19:51
To
Berit Hinnemann [BEHI]@htas
cc
mat...@li...
Subject
Re: [Matplotlib-users] Make tick labels thicker
On Mon, Jun 2, 2008 at 12:45 PM, John Hunter <jd...@gm...> wrote:
> for line in ax.get_xticklines() + ax.get_yticklines():
> line.set_markeredgewidth(10)
Correction ( I should have read the link myself first). The property
you are probably interested is the markersize (marker size in points)
though markeredgewidth may be useful too....
JDH
This e-mail message (including attachments, if any) is confidential and 
may be privileged. It is intended only for the addressee.
Any unauthorised distribution or disclosure is prohibited. Disclosure to 
anyone other than the intended recipient does not constitute waiver of 
privilege.
If you have received this e-mail in error, please notify the sender by 
e-mail and delete it and any attachments from your computer system and 
records.
HALDOR TOPSOE (www.topsoe.com)
From: <chu...@ch...> - 2008年06月03日 04:44:49
Windows XP SP2 / MPL 0.98 / NumPy 1.1
I wrote some code which has the following line
ax1.yaxis.set_major_locator(MLT.LinearLocator(numticks=10))
I now get the error
AttributeError: LinearLocator instance has no attribute 'verify_intervals'
This was working fine with the previous version of MPL.
Any ideas for a workaround?
From: Eric F. <ef...@ha...> - 2008年06月03日 04:39:14
Brian McLaughlin wrote:
> If I do:
> t1=datetime.datetime(2008,06,02,01,0,0)
> t1=datetime.datetime(2008,06,02,02,0,0)
> tVec1=drange(t1,t2,datetime.timedelta(seconds=1))
> tVec2=drange(t1,t2,datetime.timedelta(seconds=5))
> tVec3=nan*ones(tVec1.shape)
> 
> I cannot do something like:
> for i in tVec2:
> tVec3[where(tVec1==i)]=i
You don't need the "where", but you do need something like this:
 tVec3[fabs(tVec1 - i) < 1e-6]=i
Using perfect equality in floating point comparisons is usually wrong.
Eric
> 
> tVec3[0] is written, yet the others are not.
> 
> print tVec1[0]
> > 733195.083333
> 
> print tVec1
> >[ 733195.08333333 733195.08334491 733195.08335648 ..., 
> 733195.50376352
> 733195.5037751 733195.50378667]
> 
> There is more precision in the second statement and, I believe, the 
> result for no matches inside the for loop.
> Is this the desired behavior?
> 
> I can do:
> vec1=arange(0,100,1)
> vec2=arange(0,100,5)
> vec3=nan*ones(tVec1.shape)
> for i in vec2:
> vec3[where(vec1==i)]=i
> 
> thanks,
> Brian
> 
From: Brian M. <bem...@gm...> - 2008年06月03日 02:11:54
If I do:
t1=datetime.datetime(2008,06,02,01,0,0)
t1=datetime.datetime(2008,06,02,02,0,0)
tVec1=drange(t1,t2,datetime.timedelta(seconds=1))
tVec2=drange(t1,t2,datetime.timedelta(seconds=5))
tVec3=nan*ones(tVec1.shape)
I cannot do something like:
for i in tVec2:
 tVec3[where(tVec1==i)]=i
tVec3[0] is written, yet the others are not.
print tVec1[0]
 > 733195.083333
print tVec1
 >[ 733195.08333333 733195.08334491 733195.08335648 ..., 
733195.50376352
733195.5037751 733195.50378667]
There is more precision in the second statement and, I believe, the 
result for no matches inside the for loop.
Is this the desired behavior?
I can do:
vec1=arange(0,100,1)
vec2=arange(0,100,5)
vec3=nan*ones(tVec1.shape)
for i in vec2:
 vec3[where(vec1==i)]=i
thanks,
Brian
-- 
Brian E. McLaughlin
Oceanographic Research Specialist
Department of Oceanography
School of Ocean and Earth Science and Technology
University of Hawaii at Manoa
Honolulu, HI 96822
--
e:be...@so...
p:808.956.7625
f:808.956.9516
--

Showing 17 results of 17

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /