empty scatter

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

empty scatter

vincent_mathoscope
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 :
you can see the source code here by clicking on "programme.txt"
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
                 06°13°11°07°26
          Bagnères de Bigorre 65200





_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
        ––––––––––––––––––––––––––
                  Vincent Douce
               :=: Mathoscope :=:
             http://mathoscope.xyz
                 06°13°11°07°26
          Bagnères de Bigorre 65200
Reply | Threaded
Open this post in threaded view
|

Re: empty scatter

Paul Hobson-2
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 <[hidden email]> 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 :
you can see the source code here by clicking on "programme.txt"
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
                 06°13°11°07°26
          Bagnères de Bigorre 65200





_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users



_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: empty scatter

vincent_mathoscope
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 <[hidden email]> 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 <[hidden email]> 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 :
you can see the source code here by clicking on "programme.txt"
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
                 06°13°11°07°26
          Bagnères de Bigorre 65200





_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users



        ––––––––––––––––––––––––––
                  Vincent Douce
               :=: Mathoscope :=:
             http://mathoscope.xyz
                 06°13°11°07°26
          Bagnères de Bigorre 65200





_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
        ––––––––––––––––––––––––––
                  Vincent Douce
               :=: Mathoscope :=:
             http://mathoscope.xyz
                 06°13°11°07°26
          Bagnères de Bigorre 65200