Defines the common plotting objects:
Resources directory.
RESOURCES_DIRECTORY : unicode
Default plots figure size.
DEFAULT_FIGURE_SIZE : tuple
Bases: tuple
ColourParameter(name, RGB, x, y0, y1)
Alias for field number 1
Return self as a plain tuple. Used by copy and pickle.
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.
Parameters: |
|
---|---|
Returns: | Colour cycle iterator. |
Return type: | cycle |
Sets figures sizes.
Parameters: | size (tuple, optional) – Figure size. |
---|---|
Returns: | Callable object. |
Return type: | object |
Sets the figure aspect.
Parameters: | **kwargs (**) – Keywords arguments. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Sets the plot bounding box.
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.5772645, 0.50453169))
>>> multi_colour_plot([cp1, cp2])
True