SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] plotting markers fails with current svn

From: Jae-Joon L. <lee...@gm...> - 2008年08月18日 19:33:31
Hi all,
With the current svn, It fails with the following Exception if I try
to draw markers (I'm using GtkAgg backends and I presume this only
happens with Agg backends). Can others confirm this?
 745 renderer.draw_markers(
 746 gc, Path.unit_circle(), transform, path, path_trans,
--> 747 rgbFace)
 748
 749
ValueError: Codes array is wrong length
And this seems to be due to the error checking code in
"src/agg_py_path_iterator.h" recently introduced by Michael (r6033).
At line 42,
 if (PyArray_DIM(m_codes, 0) != PyArray_DIM(m_vertices, 1))
 throw Py::ValueError("Codes array is wrong length");
I guess the second argument of the PyArray_DIM should be 0 in both cases.
 if (PyArray_DIM(m_codes, 0) != PyArray_DIM(m_vertices, 0))
 throw Py::ValueError("Codes array is wrong length");
Above simple change worked fine for me.
Regards,
-JJ

View entire thread

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 によって変換されたページ (->オリジナル) /