Defines the common plotting objects:
Resources directory.
RESOURCES_DIRECTORY : unicode
Default figure aspect ratio (Golden Number).
DEFAULT_FIGURE_ASPECT_RATIO : float
Default figure width.
DEFAULT_FIGURE_WIDTH : integer
Default figure height.
DEFAULT_FIGURE_HEIGHT : integer
Default figure size.
DEFAULT_FIGURE_SIZE : tuple
Default figure font size.
DEFAULT_FONT_SIZE : numeric
Default plotting parameters.
DEFAULT_PARAMETERS : dict
Bases: tuple
ColourParameter(name, RGB, x, y0, y1)
Alias for field number 1
Return self as a plain tuple. Used by copy and pickle.
Exclude the OrderedDict from pickling
Return a nicely formatted representation string
Alias for field number 0
Alias for field number 2
Alias for field number 3
Alias for field number 4
Bases: tuple
ColourParameter(name, RGB, x, y0, y1)
Alias for field number 1
Return self as a plain tuple. Used by copy and pickle.
Exclude the OrderedDict from pickling
Return a nicely formatted representation string
Alias for field number 0
Alias for field number 2
Alias for field number 3
Alias for field number 4
Returns a colour cycle iterator using given colour map.
Keywords arguments.Colour cycle iterator.
Sets the figure size and aspect.
Parameters: | **kwargs (**) – Keywords arguments. |
---|---|
Returns: | Current figure. |
Return type: | Figure |
Sets the figure decorations.
Parameters: | **kwargs (**) – Keywords arguments. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Sets the plot boundaries.
Parameters: | **kwargs (**) – Keywords arguments. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Sets the figure display.
Parameters: | **kwargs (**) – Keywords arguments. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Defines a factory for colour.plotting.plots.COLOUR_PARAMETER attribute.
Parameters: |
|
---|---|
Returns: | ColourParameter. |
Return type: | ColourParameter |
Plots given colour colour_parameters.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> cp1 = colour_parameter(x=390, RGB=[0.03009021, 0, 0.12300545])
>>> cp2 = colour_parameter(x=391, RGB=[0.03434063, 0, 0.13328537], y0=0, y1=0.25)
>>> cp3 = colour_parameter(x=392, RGB=[0.03826312, 0, 0.14276247], y0=0, y1=0.35)
>>> cp4 = colour_parameter(x=393, RGB=[0.04191844, 0, 0.15158707], y0=0, y1=0.05)
>>> cp5 = colour_parameter(x=394, RGB=[0.04535085, 0, 0.15986838], y0=0, y1=-.25)
>>> colour_parameters_plot([cp1, cp2, cp3, cp3, cp4, cp5])
True
Plots given colour.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> RGB = (0.32315746, 0.32983556, 0.33640183)
>>> single_colour_plot(colour_parameter(RGB))
True
Plots given colours.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> cp1 = colour_parameter(RGB=(0.45293517, 0.31732158, 0.26414773))
>>> cp2 = colour_parameter(RGB=(0.77875824, 0.57726450, 0.50453169))
>>> multi_colour_plot([cp1, cp2])
True
Plots given image.
Parameters: |
|
---|---|
Returns: | Definition success. |
Return type: | bool |
Examples
>>> import os
>>> from colour import read_image
>>> path = os.path.join('resources', 'CIE_1931_Chromaticity_Diagram_CIE_1931_2_Degree_Standard_Observer.png')
>>> image = read_image(path)
>>> image_plot(image)
True