mdciao icon indicating copy to clipboard operation
mdciao copied to clipboard

Removing legend from the plot generated by mdc_neighborhoods.py

Open accibio opened this issue 1 year ago • 3 comments

Hi. Is there a way to remove the legend inside the residue-residue distance plot generated by mdc_neighborhoods.py? I had installed mdciao using pip and I couln't find any argument that can be passed to hide the legend. Please help.

accibio avatar Mar 28 '25 12:03 accibio

Hi, currently that is not possible to do from the command line alone

I encourage you to re-run in API mode, which allows for more flexibility. Do you need help with that?

gph82 avatar Mar 28 '25 16:03 gph82

Yes, I could use some help. Could you help me with running it in API mode? Thanks!

accibio avatar Mar 29 '25 06:03 accibio

Hi, the jupyter-noteboook tutorials are a good place to start, in particular this one.

You can run this notebook locally using mdc_notebooks.py, as stated here.

That will help in learning how to use the API

Once you are familiar with mdciao's API mode and its objects, and since you mention neighborhoods, probably this method plot_neighborhood_freqs is the method you want to use. Since it returns the axes object, you can further manipulate it with matplotlib

gph82 avatar Mar 29 '25 14:03 gph82