This might be related to a change I made in the Agg backend to make the markers look better by rounding their coordinates to the nearest pixel. It certainly made the stock markers at a standard size look better, but I suspect as they get smaller, they are converging down to the same value, thus having a truly zero-sized marker.

I'm away from a machine with build tools at the moment, so can't confirm. Does the attached patch work for you?

Mike

Andrew Straw wrote:
John Hunter wrote:
On Sat, Nov 29, 2008 at 3:55 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
Hi All,

I have been testing the latest svn matplotlib, which failed to produce
any visible data in some long-standing scripts of mine. :(

Investigating further, my use of markersize=0.5 combined with the '.'
symbol and the Agg backend caused a complete disappearance of the
markers. I'm attaching example images from 0.93.3 and the most recent
SVN using the attached script.

I'd be happy to track this down, but I think this might be a no-brainer
for someone on the list.
Is this agg only?

It doesn't happen with PS or SVG, so I'll say yes.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Index: src/_backend_agg.cpp
===================================================================
--- src/_backend_agg.cpp	(revision 6457)
+++ src/_backend_agg.cpp	(working copy)
@@ -494,8 +494,8 @@

   PathIterator marker_path(marker_path_obj);
   // The built-in markers look better if snapping is turned on.
-  const bool marker_snap = true;
-  // bool marker_snap = should_snap(marker_path, marker_trans);
+  // const bool marker_snap = true;
+  bool marker_snap = should_snap(marker_path, marker_trans);
   transformed_path_t marker_path_transformed(marker_path, marker_trans);
   simplify_t marker_path_simplified(marker_path_transformed, marker_snap, false, width, height);
   curve_t marker_path_curve(marker_path_simplified);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to