Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c54a58

Browse files
committed
fixed a long lines agg bug
svn path=/trunk/matplotlib/; revision=2300
1 parent e9380eb commit 1c54a58

3 files changed

Lines changed: 27 additions & 3 deletions

File tree

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
2006-04-18 Fixed a bug that caused agg to not render long lines
12

23
2006-04-16 Masked array support for pcolormesh; changed default to
34
"flat" (don't show edges); made pcolormesh support the

DEVNOTES

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,21 @@ http://matplotlib.sourceforge.net
6262
ncftp> cd incoming
6363
ncftp> put tar.gz, zip exe
6464

65-
5) go to https://sourceforge.net/project/admin/?group_id=80706 and do a
66-
# file release
65+
5) go to https://sourceforge.net/project/admin/?group_id=80706 and do
66+
a file release. Click on the "Admin" tab to log in as an admin,
67+
and then the "File Releases" tab. Go to the bottom and click "add
68+
release" and enter the package name but not the version number in
69+
the "Package Name" box. You will then be prompted for the "New
70+
release name" at which point you can add the version number, eg
71+
somepackage-0.1 and click "Create this release".
72+
73+
You will then be taken to a fairly self explanatory page where you
74+
can enter the Change notes, the release notes, and select which
75+
packages from the incoming ftp archive you want to include in this
76+
release. For each binary, you will need to select the platform and
77+
file type, and when you are done you click on the "notify users who
78+
are monitoring this package link"
79+
6780

6881
Standard reminders for numarray build
6982

src/_backend_agg.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,7 @@ RendererAgg::draw_lines(const Py::Tuple& args) {
13361336
double lastx(-2.0), lasty(-2.0);
13371337

13381338
for (size_t i=0; i<Nx; i++) {
1339+
13391340
thisx = *(double *)(xa->data + i*xa->strides[0]);
13401341
thisy = *(double *)(ya->data + i*ya->strides[0]);
13411342

@@ -1375,12 +1376,21 @@ RendererAgg::draw_lines(const Py::Tuple& args) {
13751376
//std::cout << "snapto "<<thisx<<" "<<thisy<<std::endl;
13761377
}
13771378

1379+
13781380
if (moveto)
13791381
path.move_to(thisx, thisy);
13801382
else
13811383
path.line_to(thisx, thisy);
1382-
1384+
13831385
moveto = false;
1386+
if ((i%10000)==0) {
1387+
//draw the path in chunks
1388+
_render_lines_path(path, gc);
1389+
path.remove_all();
1390+
path.move_to(thisx, thisy);
1391+
}
1392+
1393+
13841394
//std::cout << "draw lines " << thisx << " " << thisy << std::endl;
13851395
}
13861396

0 commit comments

Comments
 (0)