Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions examples/text_labels_and_annotations/rainbow_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
On the matplotlib-users list back in February 2012, Gökhan Sever asked the
following question:

Is there a way in matplotlib to partially specify the color of a string?

Example:

plt.ylabel("Today is cloudy.")

How can I show "today" as red, "is" as green and "cloudy." as blue?

Thanks.
| Is there a way in matplotlib to partially specify the color of a string?
|
| Example:
|
| plt.ylabel("Today is cloudy.")
|
| How can I show "today" as red, "is" as green and "cloudy." as blue?
|
| Thanks.

The solution below is modified from Paul Ivanov's original answer.
"""
Expand Down
4 changes: 2 additions & 2 deletions requirements/testing/flake8.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Extra pip requirements for the GitHub Actions flake8 build

flake8>=3.8
pydocstyle<4.0
flake8-docstrings
pydocstyle
flake8-docstrings>=1.3.1