You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Colors can be specified using <ahref="named_colors.md">named colors</a>,
54
+
theme-dependent system colors (`"pen"`, `"paper"`, `"brush"`), RGB/RGBA strings, HEX values,
55
+
or `color(...)`. Named colors are case-insensitive;
56
+
hyphens and underscores are ignored, and `grey` is treated the same as `gray`
57
+
(`"dark_orange"`, `"light-blue"`, and `"DARK-GREY"` are valid).
58
+
In addition to the named colors listed in the <ahref="named_colors.md">Named colors reference</a>,
59
+
grayscale names from `"gray0"` to `"gray100"` are supported.
60
+
Transparency can be included directly in the color value by using an alpha-enabled format
61
+
or by appending opacity to a named color, for example `"steelblue / 0.35"`.
62
+
63
+
<table>
64
+
<tr>
65
+
<td>Type</td>
66
+
<td>Format</td>
67
+
<td>Example</td>
68
+
</tr>
69
+
<tr>
70
+
<td>Named color</td>
71
+
<td>name</td>
72
+
<td>"steelblue"</td>
73
+
</tr>
74
+
<tr>
75
+
<td>Named color with opacity</td>
76
+
<td>name / a</td>
77
+
<td>"steelblue / 0.35"</td>
78
+
</tr>
79
+
<tr>
80
+
<td>System color</td>
81
+
<td>pen, brush, paper</td>
82
+
<td>"pen"</td>
83
+
</tr>
84
+
<tr>
85
+
<td>RGB</td>
86
+
<td>rgb(r, g, b)</td>
87
+
<td>"rgb(70, 130, 180)"</td>
88
+
</tr>
89
+
<tr>
90
+
<td>RGBA</td>
91
+
<td>rgba(r, g, b, a)</td>
92
+
<td>"rgba(70, 130, 180, 0.35)"</td>
93
+
</tr>
94
+
<tr>
95
+
<td>Color function</td>
96
+
<td>color(r, g, b)</td>
97
+
<td>"color(70, 130, 180)"</td>
98
+
</tr>
99
+
<tr>
100
+
<td>Color function with opacity</td>
101
+
<td>color(r, g, b, a)</td>
102
+
<td>"color(70, 130, 180, 0.35)"</td>
103
+
</tr>
104
+
<tr>
105
+
<td>HEX RGB</td>
106
+
<td>#RRGGBB, #RGB</td>
107
+
<td>"#4682B4", "#48B"</td>
108
+
</tr>
109
+
<tr>
110
+
<td>HEX RGBA</td>
111
+
<td>#RRGGBBAA, #RGBA</td>
112
+
<td>"#4682B459", "#48B6"</td>
113
+
</tr>
114
+
<tr>
115
+
<td>An instance of the java.awt.Color class</td>
116
+
<td>Color.NAME, Color(r, g, b), …</td>
117
+
<td>Color.MAGENTA</td>
118
+
</tr>
119
+
<tr>
120
+
<td>Transparent</td>
121
+
<td>transparent, blank, empty string</td>
122
+
<td>"transparent"</td>
123
+
</tr>
124
+
</table>
125
+
126
+
For opacity values, `0` means fully transparent and `1` means fully opaque;
127
+
percentage values such as `"steelblue/35%"` are not supported. See also an [example](%nb-color_alpha%).
128
+
129
+
System colors `"pen"`, `"paper"`, and `"brush"` can be used when you want a color to adapt to the active theme or <ahref="presentation_options.md#color-schemes-flavors">flavor</a>.
Copy file name to clipboardExpand all lines: Writerside/topics/formats.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,15 +159,16 @@ The list of supported directives to format date/time values:
159
159
-`%M` - minute as a zero-padded decimal number (00, 01, …, 59);
160
160
-`%p` - "AM" or "PM" according to the given time value;
161
161
-`%P` - like %p but in lowercase: "am" or "pm";
162
-
-`%S` - second as a zero-padded decimal number (00, 01, …, 59).
162
+
-`%S` - second as a zero-padded decimal number (00, 01, …, 59);
163
+
-`%f` - millisecond as a zero-padded decimal number (000, 001, …, 999).
163
164
164
165
<note>
165
166
If no timezone information is present (naive datetime), Lets-Plot assumes UTC timezone. For timezone-aware datetime objects, the timezone information from the data is preserved and used for rendering.
166
167
</note>
167
168
168
169
### Datetime Format Examples
169
170
170
-
Let's apply the format string to the date `Aug 6, 2019` and the time `4:46:35`:
171
+
Let's apply the format string to the date `Aug 6, 2019` and the time `4:46:35.123`:
171
172
172
173
```
173
174
%a --> "Tue"
@@ -188,8 +189,9 @@ Let's apply the format string to the date `Aug 6, 2019` and the time `4:46:35`:
Copy file name to clipboardExpand all lines: Writerside/topics/named_colors.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@ You can specify a color for theme elements and geometries by its name from the t
6
6
Named colors are case-insensitive and can be written in various formats: "LightGreen", "lightgreen", "light green", or "light-green" are all accepted and treated equivalently. You can also use either "gray" or "grey" spelling for grayscale colors.
7
7
</note>
8
8
9
+
<note>
10
+
Any named color can be made transparent by appending opacity as "/a", where "a" is a value from 0 (fully transparent) to 1 (full opaque). For example, "steelblue/0.35" means "steelblue" with 35% opacity. Percentage opacity values such as "35%" are not supported. See also an <ahref="%nb-color_alpha%">example</a>.
0 commit comments