-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'plot_nucleotide_secondary_structure()' not able to set color for base symbols #333
Comments
You should be able to set the text color of the
However, I could not find a proper documentation page in the matplotlib documentation and according to this issue this is a quite unknown feature: While it might be more user friendly add a |
While reading the documentation I also noticed that it is only possible to set the |
I tried using the
What do you think about replacing t = axes.text(
x=coords[0], y=coords[1], s=label,
ha='center', va='center', **base_text
) This could include the current font options, but also color and other options and it would not increase the number of parameters for the function.
I agree that the user should be able to supply the text properties for each base individually. |
This sounds like a good idea. I will create a PR, allowing the user to set a |
I tried to change the text color of the
Text
objects representing the bases inplot_nucleotide_secondary_structure()
, but I found no appropriate parameter for it. I think this would be a nice option to have.The source code snippet for the text creation is the following:
biotite/src/biotite/structure/graphics/rna.py
Lines 204 to 210 in d308e5f
@tomtomhdx Could you have a look at it?
The text was updated successfully, but these errors were encountered: