schrodinger / pymol-open-source

Open-source foundation of the user-sponsored PyMOL molecular visualization system.
https://pymol.org/
Other
1.2k stars 281 forks source link

How do you change the position of the color ramp? #308

Open sam-mahdi opened 1 year ago

sam-mahdi commented 1 year ago

When using cmd.ramp_new(), an object (a color bar) is generated that is located at the bottom center of the screen. How is this moved however? E.G. Have the color bar be on the center left, or center right? Something like this

image

JarrettSJohnson commented 1 year ago

From what I see, this is all hardcoded, but it's definitely reasonable to have this be rotated around to fit your use-cases.

sam-mahdi commented 1 year ago

Hi Jarrett,

Are you saying that there are no arguments built into the color bar allowing it to move around?

JarrettSJohnson commented 1 year ago

Correct. AFAIK, this is not yet possible.

sam-mahdi commented 1 year ago

Do I close this then (I'm not very familiar with how github issues work, since my issue was answered)?

JarrettSJohnson commented 1 year ago

Let's leave it up as as a feature request. I do think something like this is helpful to have in the future.