<div dir="ltr">Hi Chao,<div><br></div><div>For that callback, you're only allowed to specify keyword arguments accepted by matplotlib.axes.Axes.scatter: <a href="http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.scatter">http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.scatter</a></div>
<div><br></div><div>or Collection properties: <a href="http://matplotlib.org/api/collections_api.html#matplotlib.collections.Collection">http://matplotlib.org/api/collections_api.html#matplotlib.collections.Collection</a></div>
<div><br></div><div>I'd have to look closer to figure out which keyword corresponds to what you're looking for, but hopefully that leaves you enough information to figure out how to do what you're trying to do.</div>
<div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 1, 2013 at 3:53 PM, Chao Shi <span dir="ltr"><<a href="mailto:shichao116@gmail.com" target="_blank">shichao116@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I'm trying to mark some positions with circle on slice and projection plot. But it can't recognize arguments used for specifying the property of the marker. For example:</div>
<div><br></div><div><br></div><div><div><font color="#0000ff">>>> p = SlicePlot(pf,'x','Density')</font></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff">>>> p.annotate_marker([0.5]*3,marker='o', plot_args={'color': 'red', 'mew': 5})</font></div>
<div><font color="#0000ff"><br></font></div><div><font color="#0000ff">Traceback (most recent call last):</font></div><div><font color="#0000ff"> File "<stdin>", line 1, in <module></font></div><div>
<font color="#0000ff"> File "/home/cshi31/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 100, in newfunc</font></div><div><font color="#0000ff"> args[0]._setup_plots()</font></div><div><font color="#0000ff"> File "/home/cshi31/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 886, in _setup_plots</font></div>
<div><font color="#0000ff"> self.run_callbacks(f)</font></div><div><font color="#0000ff"> File "/home/cshi31/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 896, in run_callbacks</font></div><div>
<font color="#0000ff"> callback(cbw)</font></div><div><font color="#0000ff"> File "/home/cshi31/yt-x86_64/src/yt-hg/yt/visualization/plot_modifications.py", line 777, in __call__</font></div><div><font color="#0000ff"> plot._axes.scatter(x,y, marker = self.marker, **self.plot_args)</font></div>
<div><font color="#0000ff"> File "/home/cshi31/yt-x86_64/lib/python2.7/site-packages/matplotlib/axes.py", line 6123, in scatter</font></div><div><font color="#0000ff"> collection.update(kwargs)</font></div>
<div>
<font color="#0000ff"> File "/home/cshi31/yt-x86_64/lib/python2.7/site-packages/matplotlib/artist.py", line 670, in update</font></div><div><font color="#0000ff"> raise AttributeError('Unknown property %s' % k)</font></div>
<div><font color="#ff0000">AttributeError: Unknown property mew</font></div></div><div><font color="#ff0000"><br></font></div><div><font color="#000000">mew is an alias for markeredgewidth. I also tried with 'markeredgewidth' but it gave the same error.</font></div>
<div><font color="#000000"><br></font></div><div><font color="#000000">Besides, 'mec', 'ms' also can't be recognized. Only 'color' works.</font></div><div><font color="#000000"><br></font></div>
<div><font color="#000000">Does anyone have a clue about this?</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Thanks very much.</font></div><span class="HOEnZb"><font color="#888888"><div>
<font color="#000000"><br></font></div><div>
<font color="#000000">Chao</font></div><div><br></div></font></span></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>