Top

pyagg.legend_exp module

Canvas subclass specializing in being a Legend showing assigned symbology.

Classes

class BaseGroup

Ancestors (in MRO)

Methods

def __init__(

self, refcanvas=None, items=None, title='', titleoptions=None, direction='e', padding=0.05, anchor='center', **boxoptions)

def add_fillcolors(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

def add_fillsizes(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

def add_item(

self, item)

def render(

self, **override)

Can go up, down, left, right, or just stay in center. Padding between each symbol can also be adjusted. Returns a grouping of these symbols drawn on a canvas with an optional outline and background.

class FillColorSymbol

Ancestors (in MRO)

Methods

def __init__(

self, shape, refcanvas=None, label='', labeloptions=None, padding=0.05, **symboloptions)

Inheritance: BaseGroup.__init__

def add_fillcolors(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillcolors

def add_fillsizes(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillsizes

def add_item(

self, item)

Inheritance: BaseGroup.add_item

def render(

self, **override)

Inheritance: BaseGroup.render

Can go up, down, left, right, or just stay in center. Padding between each symbol can also be adjusted. Returns a grouping of these symbols drawn on a canvas with an optional outline and background.

class FillSizeSymbol

Ancestors (in MRO)

Methods

def __init__(

self, shape, refcanvas=None, label='', labeloptions=None, padding=0.05, **symboloptions)

Inheritance: BaseGroup.__init__

def add_fillcolors(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillcolors

def add_fillsizes(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillsizes

def add_item(

self, item)

Inheritance: BaseGroup.add_item

def render(

self, **override)

Inheritance: BaseGroup.render

Can go up, down, left, right, or just stay in center. Padding between each symbol can also be adjusted. Returns a grouping of these symbols drawn on a canvas with an optional outline and background.

class Label

Ancestors (in MRO)

  • Label
  • pyagg.legend_exp._Symbol

Methods

def __init__(

self, text, refcanvas=None, anchor='center', **kwargs)

def render(

self)

class Legend

Ancestors (in MRO)

Methods

def __init__(

self, refcanvas=None, items=None, title='', titleoptions=None, direction='e', padding=0.05, anchor='center', **boxoptions)

Inheritance: BaseGroup.__init__

def add_fillcolors(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillcolors

def add_fillsizes(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillsizes

def add_item(

self, item)

Inheritance: BaseGroup.add_item

def render(

self, **override)

Inheritance: BaseGroup.render

Can go up, down, left, right, or just stay in center. Padding between each symbol can also be adjusted. Returns a grouping of these symbols drawn on a canvas with an optional outline and background.

class Symbol

Ancestors (in MRO)

Methods

def __init__(

self, shape, refcanvas=None, label='', labeloptions=None, padding=0.05, **symboloptions)

Inheritance: BaseGroup.__init__

def add_fillcolors(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillcolors

def add_fillsizes(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillsizes

def add_item(

self, item)

Inheritance: BaseGroup.add_item

def render(

self, **override)

Inheritance: BaseGroup.render

Can go up, down, left, right, or just stay in center. Padding between each symbol can also be adjusted. Returns a grouping of these symbols drawn on a canvas with an optional outline and background.

class SymbolGroup

Ancestors (in MRO)

Methods

def __init__(

self, refcanvas=None, items=None, title='', titleoptions=None, direction='e', padding=0.05, anchor='center', **boxoptions)

Inheritance: BaseGroup.__init__

def add_fillcolors(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillcolors

def add_fillsizes(

self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', padding=0, labeloptions=None, **symboloptions)

Inheritance: BaseGroup.add_fillsizes

def add_item(

self, item)

Inheritance: BaseGroup.add_item

def render(

self, **override)

Inheritance: BaseGroup.render

Can go up, down, left, right, or just stay in center. Padding between each symbol can also be adjusted. Returns a grouping of these symbols drawn on a canvas with an optional outline and background.