[Matplotlib-users] plotting positions with non-default markers
Benjamin Root
ben.v.root at gmail.com
Tue Dec 1 13:26:33 EST 2015
I wonder if Ryan May's "scattertext()" work might be what you are looking
for? https://github.com/matplotlib/matplotlib/pull/4063
Cheers!
Ben Root
On Tue, Dec 1, 2015 at 12:54 PM, Joao Fonseca <joao.q.fonseca at gmail.com>
wrote:
> To visualize a simulation, I would like to plot positions of two
> populations using the $\top$ and $\bot$ (similar to $\perp$ and rotated
> $\perp$) symbols as markers, but make the coordinates coincide with the
> line intersections in the symbols. In this way, if two points from
> different populations have the same coordinates they should create a cross
> with a long vertical line.
>
> I have tried using plt.text and $\perp$, with a 90 degree rotation to get
> $\bot$:
>
> text(x,y,r’$\bot$',
> va=’top',ha='center',color='w',rotation=180,fontsize=14)
>
> but this doesn’t really work or scale, and I would rather use plot or
> scatter instead of text.
>
> Is there a good way to do this in pyplot? Should I use something else?
>
> Thank you
>
> João
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20151201/063d69b2/attachment.html>
More information about the Matplotlib-users
mailing list