[Matplotlib-users] empty scatter
Vincent Douce Mathoscope
mathoscope at netcourrier.com
Tue Dec 26 03:03:07 EST 2017
thank you very much Paul
it works fine
following your help and the documentation about .plot, i have found this that i will use :
'''
#full circles
lafigure.scatter([1, 2, 3], [2, 5, 0], 25, color ='black')
#empty circles
lafigure.plot([1, 2, 3], [3, 6, 1],
linestyle='none', marker='$\circ$',
markeredgecolor='k')#,
'''
i have also, for a purpose of homogeneity in the code, tried to use $\bullet$ as a marker but it has produced an error
thanks
Vincent
> Le 25 déc. 2017 à 23:38, Paul Hobson <pmhobson at gmail.com> a écrit :
>
> Vincent,
>
> I think you want to use `plot` with no line, like so:
>
>
> from matplotlib import pyplot
> fig, ax = pyplot.subplots()
> ax.plot([1, 2, 3], [3, 6, 1],
> linestyle='none', marker='o',
> markeredgecolor='k',
> markerfacecoloir='none')
>
> On Mon, Dec 25, 2017 at 12:48 PM, Vincent Douce Mathoscope <mathoscope at netcourrier.com <mailto:mathoscope at netcourrier.com>> wrote:
> hi
> i can not find on the documentation of matplotlib if a scatter can be empty
> i have made a program that calculates the position of the finger on a guitar :
> https://mathoscope.wordpress.com/2017/12/25/mathematiques-pour-la-guitare/ <https://mathoscope.wordpress.com/2017/12/25/mathematiques-pour-la-guitare/>
> you can see the source code here by clicking on "programme.txt"
> http://mathoscope.ouvaton.org/mathoscope_xyz/Informatique/distributeur.php?mot=gammes <http://mathoscope.ouvaton.org/mathoscope_xyz/Informatique/distributeur.php?mot=gammes>
> i would like the grey scaters on the left (coresponding to the chords played withou pressing them or "cordes à vide") to be black but empty like a "O"
> of course i can calculate a circle...
> do you think there is a means to have an empty scatter ?
> ––––––––––––––––––––––––––
> Vincent Douce
> :=: Mathoscope :=:
> http://mathoscope.xyz <http://mathoscope.xyz/>
> 06°13°11°07°26
> Bagnères de Bigorre 65200
>
>
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org <mailto:Matplotlib-users at python.org>
> https://mail.python.org/mailman/listinfo/matplotlib-users <https://mail.python.org/mailman/listinfo/matplotlib-users>
>
>
––––––––––––––––––––––––––
Vincent Douce
:=: Mathoscope :=:
http://mathoscope.xyz
06°13°11°07°26
Bagnères de Bigorre 65200
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20171226/b1f64450/attachment-0001.html>
More information about the Matplotlib-users
mailing list