File: MEP21.rst

package info (click to toggle)
matplotlib 3.10.1%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 78,352 kB
  • sloc: python: 147,118; cpp: 62,988; objc: 1,679; ansic: 1,426; javascript: 786; makefile: 104; sh: 53
file content (62 lines) | stat: -rw-r--r-- 1,401 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
==============================
 MEP21: color and cm refactor
==============================

.. contents::
   :local:


Status
======

- **Discussion**: This MEP has not commenced yet, but here are some
  ongoing ideas which may become a part of this MEP:



Branches and Pull requests
==========================



Abstract
========


* color

  * tidy up the namespace
  * Define a "Color" class
  * make it easy to convert from one color type to another ```hex ->
    RGB```, ```RGB -> hex```, ```HSV -> RGB``` etc.
  * improve the construction of a colormap - the dictionary approach
    is archaic and overly complex (though incredibly powerful)
  * make it possible to interpolate between two or more color types
    in different modes, especially useful for construction of
    colormaps in HSV space for instance

* cm

  * rename the module to something more descriptive - mappables?


Overall, there are a lot of improvements that can be made with
matplotlib color handling - managing backwards compatibility will be
difficult as there are some badly named variables/modules which really
shouldn't exist - but a clear path and message for migration should be
available, with a large amount of focus on this in the API changes
documentation.


Detailed description
====================

Implementation
==============


Backward compatibility
======================

Alternatives
============