pyagg.legend module
Canvas subclass specializing in being a Legend showing assigned symbology.
Classes
class BaseGroup
Ancestors (in MRO)
- BaseGroup
- pyagg.legend._BaseGroup
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='', titleoptions=None, padding=0, labeloptions=None, **symboloptions)
def add_fillsizes(
self, shape, breaks, classvalues, valuetype='discrete', valueformat=None, direction='s', anchor='w', title='', titleoptions=None, padding=0, labeloptions=None, **symboloptions)
def add_item(
self, item)
def add_symbol(
self, shape, label='', labeloptions=None, padding=0.05, **symboloptions)
def add_symbols(
self, symbols, direction='s', anchor='w', title='', titleoptions=None, padding=0, labeloptions=None)
- symbols is sequence of shape,label,symboloptions tuples
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)
- FillColorSymbol
- BaseGroup
- pyagg.legend._BaseGroup
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='', titleoptions=None, 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='', titleoptions=None, padding=0, labeloptions=None, **symboloptions)
Inheritance:
BaseGroup
.add_fillsizes
def add_symbol(
self, shape, label='', labeloptions=None, padding=0.05, **symboloptions)
Inheritance:
BaseGroup
.add_symbol
def add_symbols(
self, symbols, direction='s', anchor='w', title='', titleoptions=None, padding=0, labeloptions=None)
Inheritance:
BaseGroup
.add_symbols
- symbols is sequence of shape,label,symboloptions tuples
class FillSizeSymbol
Ancestors (in MRO)
- FillSizeSymbol
- BaseGroup
- pyagg.legend._BaseGroup
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='', titleoptions=None, 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='', titleoptions=None, padding=0, labeloptions=None, **symboloptions)
Inheritance:
BaseGroup
.add_fillsizes
def add_symbol(
self, shape, label='', labeloptions=None, padding=0.05, **symboloptions)
Inheritance:
BaseGroup
.add_symbol
def add_symbols(
self, symbols, direction='s', anchor='w', title='', titleoptions=None, padding=0, labeloptions=None)
Inheritance:
BaseGroup
.add_symbols
- symbols is sequence of shape,label,symboloptions tuples
class Label
Ancestors (in MRO)
- Label
- pyagg.legend._Symbol
Methods
def __init__(
self, text, refcanvas=None, **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='', titleoptions=None, 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='', titleoptions=None, padding=0, labeloptions=None, **symboloptions)
Inheritance:
BaseGroup
.add_fillsizes
def add_symbol(
self, shape, label='', labeloptions=None, padding=0.05, **symboloptions)
Inheritance:
BaseGroup
.add_symbol
def add_symbols(
self, symbols, direction='s', anchor='w', title='', titleoptions=None, padding=0, labeloptions=None)
Inheritance:
BaseGroup
.add_symbols
- symbols is sequence of shape,label,symboloptions tuples
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='', titleoptions=None, 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='', titleoptions=None, padding=0, labeloptions=None, **symboloptions)
Inheritance:
BaseGroup
.add_fillsizes
def add_symbol(
self, shape, label='', labeloptions=None, padding=0.05, **symboloptions)
Inheritance:
BaseGroup
.add_symbol
def add_symbols(
self, symbols, direction='s', anchor='w', title='', titleoptions=None, padding=0, labeloptions=None)
Inheritance:
BaseGroup
.add_symbols
- symbols is sequence of shape,label,symboloptions tuples
class SymbolGroup
Ancestors (in MRO)
- SymbolGroup
- BaseGroup
- pyagg.legend._BaseGroup
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='', titleoptions=None, 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='', titleoptions=None, padding=0, labeloptions=None, **symboloptions)
Inheritance:
BaseGroup
.add_fillsizes
def add_symbol(
self, shape, label='', labeloptions=None, padding=0.05, **symboloptions)
Inheritance:
BaseGroup
.add_symbol
def add_symbols(
self, symbols, direction='s', anchor='w', title='', titleoptions=None, padding=0, labeloptions=None)
Inheritance:
BaseGroup
.add_symbols
- symbols is sequence of shape,label,symboloptions tuples