I am using mpl_point_clicker to get pixel positions from a sunpy map. But it just doesn't seem to work and doesn't throw up any error either

This is the piece of code I am using:

fig = plt.figure(constrained_layout=True, figsize=[15,15])
ax = fig.add_subplot(projection=out_warp)
out_warp.plot(axes=ax, clip_interval=(10, 100)*u.percent)

klicker = clicker(ax, [“event”], markers=[“.”])

plt.show()

Hi @Yoshita_Baruah can you please explain what you mean by doesn’t seem to work. Do oyu mean that no points show up?

Can you also please give a complete minimal example. i.e. if I copy and paste the code you post here it should run without errors. as it is I can’t try this out because I don’t konw where things like u.percent or out_warp come from