Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Display label on each marker point in 2D plot
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Shanu  
View profile  
 More options Oct 9 2011, 10:22 pm
From: Shanu <shaher...@gmail.com>
Date: Sun, 9 Oct 2011 19:22:48 -0700 (PDT)
Local: Sun, Oct 9 2011 10:22 pm
Subject: Display label on each marker point in 2D plot
Dear Ahmet,

I'm using Prody to create a projection of the ensemble onto PC1 and
PC2 for my analysis:

plt.figure(figsize=(5,4))
showProjection(ensemble, pca[:2])
plt.show ()

Can you suggest me on how to label each marker point. I want to check
which point represent which protein. Is it possible to plot the string
label (PDB ID) besides each point?

Thanks in advance.

Regards,
Shaherin Basith.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ahmet Bakan  
View profile  
 More options Oct 9 2011, 11:15 pm
From: Ahmet Bakan <lordn...@gmail.com>
Date: Sun, 9 Oct 2011 23:15:17 -0400
Local: Sun, Oct 9 2011 11:15 pm
Subject: Re: Display label on each marker point in 2D plot

Hi Shaherin,

You can do it as follows:

>>> plt.figure(figsize=(10,8)) # make a large figure so that you can see

labels clearly when you have a large ensemble

>>> labels = ['1XXX', '2YYY', ...] # len of labels must be equal to len of
ensemble
>>> for i, conf in enumerate(ensemble):
>>>    showProjection(conf, pca[:2])
>>>    xy = calcProjection(conf, pca[:2])[0]
>>>    plt.text(xy[0], xy[1], labels[i])

This is something I just figure looking examples in
http://matplotlib.sourceforge.net/gallery.html and picking the one
that looks like what I want to do. It maybe helpful to make other
adjustments in your figures.

Best,
Ahmet


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shaherin Basith  
View profile  
 More options Oct 16 2011, 11:07 am
From: shaherin Basith <shaher...@gmail.com>
Date: Mon, 17 Oct 2011 00:07:25 +0900
Local: Sun, Oct 16 2011 11:07 am
Subject: Re: Display label on each marker point in 2D plot

Dear Ahmet,

The length of the PDB files for the query sequence obtained is 38. However,
the length of ensemble obtained is 76 [len (pdbfiles) is not equal to
len(ensemble)]. In this case, please suggest me how to label each marker
point inorder to check which point represent which protein.

Thanking you in advance.

Regards,
--
Shaherin Basith
Phd Student
Systems Biology lab
Ajou University
Suwon
South Korea
e-mail: shaher...@ajou.ac.kr
Mobile: 010-6873-1033


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ahmet Bakan  
View profile  
 More options Oct 16 2011, 12:03 pm
From: Ahmet Bakan <lordn...@gmail.com>
Date: Sun, 16 Oct 2011 12:03:32 -0400
Local: Sun, Oct 16 2011 12:03 pm
Subject: Re: Display label on each marker point in 2D plot

Shaherin,
It looks like some of your PDB files contain NMR structures. You should
generate a list of labels while building the ensemble, and you should append
the label for an NMR structure as many times as the number of models in the
structure.
Ahmet

On Sun, Oct 16, 2011 at 11:07 AM, shaherin Basith <shaher...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »