[EMAIL PROTECTED] wrote:
> Hi,all:
> How do I include the stop value in the array by using arrayrange?
> Say:
> arrayrange(0,10,1.0,Float)
> [ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.,]
> but I want 10 to be included

1. arrayrange() is a deprecated name. arange() is the preferred name.

2. However, arange() with floating point numbers is unreliable. Because of
floating point precision issues, it is often difficult to tell whether or not
the endpoint will be included. Use linspace() instead.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to