On Sat, Jul 11, 2009 at 3:43 AM, Eli Brosh<ebro...@gmail.com> wrote: > Hello, > A few weeks earlier I was asking whether it is possible to plot half-filled > markers in matplotlib. > As I got no answers I tried to do it myself. > There are several ways to do it. For example, I considered following the > example in > http://matplotlib.sourceforge.net/examples/api/scatter_piecharts.html > but with the approach described there I could not reproduce the custom > marker in the legend. > > The approach that did work was to modify the lines.py file in the matplotlib > folder. > My version of the file is attached with several new markers added. > > The implementation is not very elegant but half-filled markers are quite > useful when plotting lots of data. > > Does anyone have a better idea for the implementation of half-filled markers > in matplotlib ?
This looks interesting, and the functionality is certainly nice, but it looks like a brute force hammer approach when a scapel might be preferable, For example, what if we introduce a new kwarg fillstyle with options 'full|top|bottom|left|right' so *any* marker could be half filled. This would result in both less code and more functionality. If you are interested in tackling this, I'd be happy to consider a patch. Please see http://matplotlib.sourceforge.net/faq/howto_faq.html#submit-a-patch JDH ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users