Open paitor opened 8 years ago
Digging into this, once I fixed the "truthiness" problem and added your unit test, it revealed some more bugs under the hood.
This is gonna be a fun rabbit hole!
I have created #224 that should partly address the problem. At the very least, it won't error out anymore.
Related to #197
See also question on Stack Overflow.
plot()
. If one does scatter()
, then it works, so there appears to be orthogonal issues at play here.Upping this issue since it's been 4 months and I'm still experiencing this issue...
Also very interested in a solution to this problem. I need plot and not scatter: I want to draw segments. I also wanted to mention that the problem is still here in release 1.1.
Hi
Using Python 2.7.8 and Basemap 1.0.7 there seems to be a problem plotting points that wrap around longitudinal map boundaries in plot() method of Basemap if the points wrap back and forth. The problem can be avoided by sorting the points by longitude prior plotting (but this does of course not work if plotting a segment based on the points since sorting will screw up the order of the points along the segment)
The following code illustrates the problem by plotting the same three points sorted in different ways (first plot works)
and the error running the above code (after closing the first successful plot window) is
regP