Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

graphic problem

Status
Not open for further replies.

btcpar

Technical User
Jan 23, 2003
10
ES
Hello

I am a spanish bioinformatician, and I need to develop a tool that could analyze the data obtained from DNA microarrays experiment. I have nearly finished, but there is one part that I can't develop.
The problem is that I have a dot graph which shows the expression levels of thousand of genes, and I don't know how to get the coordenates of the spots when I click on them.

Thanks a lot anyway

Joaquin
 
Hello

I resolve my problem, I just had to use "bind" with the Canvas graph, it was something like:

first I created the following function

def callback(event):
event.x
event.y

I joined the Canvas graph with the function callback

Canvas.bind("Double-Button-1",callback)

With this simple command I could obtain the coordenates x and y in a graphic (values of the coordenates loaded as event.x and event.y)

Thanks anayway

Joaquín
 
Interesting. I wonder if you have any insight into the problem with GTK Canvases that was posted last week.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top