With code I can plot starfields in size and color ,very good.
what I like to do now is, hovering or click on a star and then extra information from that star pops up.
to achieve this, I was thinking this way:
every time the code plots a star in the graphic there is information about the x,y value, catch this value in a dataframe together with the star ID. simple ? it isn’t.
this is a acutelly the code who does the plot work.
sns.relplot(x='ra', y='dec', height=8.5, aspect=1.2, legend=None, hue='bp_rp', palette='RdYlBu_r', size='R_sun', sizes=(1,rr1['R_sun'].max()/rr1['R_sun'].min()), data=rr1 )
So in the script this is a loop, so everytime the relplot plots new data on the graph (x,y) from the dataframe.
I like to catch these x,y values to store in a dataframe.
what i,m struggling with is how to get the seaborn relplot x,y values. so I can store them in a dataframe.
I searched and tried many lecture and code but I cant get these x,y values, maybe somebody has an Idea? or a better way?
thanks for answers.
with kind regards…