Skip to content

pyssage.graph.GradientPointStyle

Michael Rosenberg edited this page Mar 11, 2021 · 1 revision

pyssage » pyssage.graph » pyssage.graph.GradientPointStyle

GradientPointStyle

A basic container with common parameters used to control the visual look of points plotted on a figure, where the colors of those points represent a range of values specified as a gradient or colormap. The defaults listed below are for a generic instance of the class; a particular drawing algorithm may use different default values if no GradientPointStyle is specified by the user.

Style specifiers are those accepted and used by matplotlib.

Colormaps are tables or palettes which specify a range of colors to use to represent a variety of values. Examples would include a rainbow spectrum, a grayscale vector, or a heat scale. Dozens of pre-determined heatmaps are built into matplotlib and can be used to represent variation in point values. See the Colormap reference gallery (@matplotlib) for examples and more information.

Colors can be specified in a wide variety of ways, including strings representing common color names (e.g., 'red', 'blue', or 'black'), strings representing hexadecimal numbers specifying particular colors (e.g., '#000000', '#FFB300', or '#12A0FC'), or tuplets of three values between 0 and 1 representing proportions of red, green, and blue, respectively. See Specifying Colors (@matplotlib) for more information.

The marker property will usually be a string which represents one of a wide variety of potential shape, e.g., "o" indicates a circle, "s" indicates a square, "x" indicates an x, and "*" indicates a star. A complete list of examples and options can be found at Markers (@matplotlib).

Property Description
colormap str: The name of a colormap recognized by matplotlib (default = "bwr_r")
edge_color color: Specifies the default edge color of the point (default = "black")
ns_edge_color color: Specifies the edge color of the point, if non-significant (default = "gray")
size int: Specifies the default size of the point to be drawn (default = 20)
ns_size int: Specifies the size of the point to be drawn, if non-significant (default = 5)
edge_width float: Specifies the thickness of the edge of the point (default = 1)
marker str: Specifies the shape of the point to be drawn (default = "o")
alpha float: A value between 0 and 1, specifying the opacity of the line, with 0 equal to transparent and 1 equal to opaque (default = 1)

Clone this wiki locally