@@ -245,7 +245,7 @@ macro_rules! implement_linear_interpolation_color_map {
245
245
}
246
246
247
247
#[ doc( inline) ]
248
- pub use crate :: define_linear_interpolation_color_map ;
248
+ pub use crate :: def_linear_colormap ;
249
249
250
250
#[ macro_export]
251
251
#[ doc( hidden) ]
@@ -256,7 +256,7 @@ pub use crate::define_linear_interpolation_color_map;
256
256
///
257
257
/// ```
258
258
/// use plotters::prelude::*;
259
- /// define_linear_interpolation_color_map ! {
259
+ /// def_linear_colormap ! {
260
260
/// BlackWhite,
261
261
/// RGBColor,
262
262
/// "Simple chromatic colormap from black to white.",
@@ -269,7 +269,7 @@ pub use crate::define_linear_interpolation_color_map;
269
269
///
270
270
/// Hint: Some helper macros and functions have been deliberately hidden from end users.
271
271
/// Look for them in the source code if you are interested.
272
- macro_rules! define_linear_interpolation_color_map {
272
+ macro_rules! def_linear_colormap {
273
273
( $color_scale_name: ident, $color_type: ident, $doc: expr, $( ( $( $color_value: expr) ,+) ) ,* ) => {
274
274
#[ doc = $doc]
275
275
pub struct $color_scale_name;
@@ -294,7 +294,7 @@ macro_rules! define_linear_interpolation_color_map{
294
294
}
295
295
}
296
296
297
- define_linear_interpolation_color_map ! {
297
+ def_linear_colormap ! {
298
298
ViridisRGBA ,
299
299
RGBAColor ,
300
300
"A colormap optimized for visually impaired people (RGBA format).
@@ -310,7 +310,7 @@ define_linear_interpolation_color_map! {
310
310
( 254 , 232 , 37 , 1.0 )
311
311
}
312
312
313
- define_linear_interpolation_color_map ! {
313
+ def_linear_colormap ! {
314
314
ViridisRGB ,
315
315
RGBColor ,
316
316
"A colormap optimized for visually impaired people (RGB Format).
@@ -326,23 +326,23 @@ define_linear_interpolation_color_map! {
326
326
( 254 , 232 , 37 )
327
327
}
328
328
329
- define_linear_interpolation_color_map ! {
329
+ def_linear_colormap ! {
330
330
BlackWhite ,
331
331
RGBColor ,
332
332
"Simple chromatic colormap from black to white." ,
333
333
( 0 , 0 , 0 ) ,
334
334
( 255 , 255 , 255 )
335
335
}
336
336
337
- define_linear_interpolation_color_map ! {
337
+ def_linear_colormap ! {
338
338
MandelbrotHSL ,
339
339
HSLColor ,
340
340
"Colormap created to replace the one used in the mandelbrot example." ,
341
341
( 0.0 , 1.0 , 0.5 ) ,
342
342
( 1.0 , 1.0 , 0.5 )
343
343
}
344
344
345
- define_linear_interpolation_color_map ! {
345
+ def_linear_colormap ! {
346
346
VulcanoHSL ,
347
347
HSLColor ,
348
348
"A vulcanic colormap that display red/orange and black colors" ,
@@ -351,7 +351,7 @@ define_linear_interpolation_color_map! {
351
351
}
352
352
353
353
use super :: full_palette:: * ;
354
- define_linear_interpolation_color_map ! {
354
+ def_linear_colormap ! {
355
355
Bone ,
356
356
RGBColor ,
357
357
"Dark colormap going from black over blue to white." ,
@@ -360,7 +360,7 @@ define_linear_interpolation_color_map! {
360
360
WHITE
361
361
}
362
362
363
- define_linear_interpolation_color_map ! {
363
+ def_linear_colormap ! {
364
364
Copper ,
365
365
RGBColor ,
366
366
"Friendly black to brown colormap." ,
0 commit comments