• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

domdfcoding / domplotlib / 15188046115

22 May 2025 01:35PM UTC coverage: 92.683%. Remained the same
15188046115

push

github

domdfcoding
Drop support for Python 3.6

76 of 82 relevant lines covered (92.68%)

0.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/domplotlib/styles/__init__.py
1
#!/usr/bin/env python3
2
#
3
#  styles/__init__.py
4
"""
5
Matplotlib styles.
6
"""
7
#
8
#  Copyright © 2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
9
#
10
#  Permission is hereby granted, free of charge, to any person obtaining a copy
11
#  of this software and associated documentation files (the "Software"), to deal
12
#  in the Software without restriction, including without limitation the rights
13
#  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
#  copies of the Software, and to permit persons to whom the Software is
15
#  furnished to do so, subject to the following conditions:
16
#
17
#  The above copyright notice and this permission notice shall be included in all
18
#  copies or substantial portions of the Software.
19
#
20
#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21
#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22
#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23
#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
24
#  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
25
#  OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
26
#  OR OTHER DEALINGS IN THE SOFTWARE.
27
#
28

29
# print(plt.style.available)
30

31
# Good combinations
32

33
# >> White border, grey background, subdued colours
34
# plt.style.use('ggplot')
35

36
# >> White border, blue-grey background, nice coloured bars.
37
# >> Could have black border but might manage without
38
# plt.style.use('seaborn')
39

40
# plt.style.use('seaborn')
41
# plt.xkcd()
42

43
# >> FT paper border, grey background, nice coloured bars,
44
# >> but needs black border around figure and possibly black text
45
# plt.style.use('Solarize_Light2')
46

47
# plt.style.use('Solarize_Light2')
48
# plt.xkcd()
49

50
# >> White background, grey border, greyscale bars
51
# plt.style.use('grayscale')
52

53
# plt.style.use('grayscale')
54
# plt.xkcd()
55

56
# >> Pastel colours on black
57
# plt.style.use('dark_background')
58

59
# plt.style.use('default')
60

61
# plt.style.use('fivethirtyeight')
62
# plt.xkcd()
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc