style
Opinionated matplotlib style defaults.
available_fonts() -> list[str]
Returns a list of available fonts.
Source code in src/jetplot/style.py
141 142 143 |
|
install_fonts(filepath: str) -> None
Installs .ttf fonts in the given folder.
Source code in src/jetplot/style.py
146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
|
set_colors(bg: ColorType, fg: ColorType, text: ColorType) -> None
Set background/foreground colorscheme.
Source code in src/jetplot/style.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
set_defaults(*, bg: ColorType, fg: ColorType, text: ColorType, cycler_colors: c.Palette, defaults: Mapping[str, Any] = STYLE_DEFAULTS, font: str = 'Helvetica') -> None
Sets matplotlib defaults.
Source code in src/jetplot/style.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
set_dpi(dpi: int) -> None
Sets the figure DPI.
Source code in src/jetplot/style.py
108 109 110 |
|
set_font(fontname: str) -> None
Specifies the matplotlib default font.
Source code in src/jetplot/style.py
99 100 101 102 103 104 105 |
|