Skip to content
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

Various colours to labels #41

Open
wwwwwww123 opened this issue Feb 24, 2018 · 5 comments
Open

Various colours to labels #41

wwwwwww123 opened this issue Feb 24, 2018 · 5 comments

Comments

@wwwwwww123
Copy link

Hi, how do we assign different colours to different letters in the same text label using adjust Text?

@Phlya
Copy link
Owner

Phlya commented Feb 24, 2018

Hi, is it possible in matplotlib at all?..

@wwwwwww123
Copy link
Author

wwwwwww123 commented Feb 24, 2018

Yes, it is possible if we were to use annotate(). I attempted with adjust_text but it didn't seemed to work. So I was wondering if there is a way to do this?

@Phlya
Copy link
Owner

Phlya commented Feb 24, 2018

Just curious - how exactly can you do it?
If you have to use annotate and not text, it is currently not possible with adjustText, I am afraid...

@wwwwwww123
Copy link
Author

One example is using \textcolor[HTML]{0BFF01}{Text to colour}.

@Phlya
Copy link
Owner

Phlya commented Feb 24, 2018

Mmm can please you give a concrete example with code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants