Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Talk:Spectrumbar
Add topic
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Add topic
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Have been planning to write this script for a while now but never got around to it. Its strength lies within its customizability. If you want a specific color to occupy a larger span of space in the spectrum then simply list that color twice (or multiple times): spectrumbar red, green, green, blue This will produce a bar where the green section occupies more of the bar. Further customization can be done by automatically defining a rainbow spectrum but this requires borrowing code from Robert Cambell's script(s) (namely the hsv to rgb conversion). Also, the length, head, and tail options need to be cleaned up but, realistically, it isn't necessary to touch those options. [[User:slaw|Sean]] 01:55, 3 Sept 2009 (EST) Just added rounded ends for aesthetic look [[User:slaw|Sean]] 08:25, 9 Sept 2009 (EST) Made some changes to the way the colours were being recognized as it couldn't handle colour specifications like "gray10" where there's a mix of numbers and letters (before it reserved numbers to R,G,B values and letters to PyMOL color values). Now it checks the command line input. If it sees that the input contains both numbers and letters then it will check to see if it is part of the list of colour values, if not, it will return an error. This should be fully functional now and was corrected as requested by a user from the PyMOL mailing list. [[User:slaw|Sean]] 13:35, 6 Nov 2009 (EST)
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Talk:Spectrumbar
Add topic