GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.lib.plot.polyobjects.PolyBars
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx.lib
  • wx.lib.plot
  • wx.lib.plot.polyobjects

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.lib.plot.polyobjects.PolyBars — wxPython 4.3.2 Docs

phoenix_title wx.lib.plot.polyobjects.PolyBars¶

Creates a PolyBars object.

param points:

The data to plot.

type points:

sequence of (center, height) points

param **attr:

keyword attributes

Keyword and Default

Description

Type

barwidth=1.0

bar width

float or list of floats

edgecolour='black'

edge color

wx.Colour

edgewidth=1

edge width

float

edgestyle=wx.PENSTYLE_SOLID

edge style

wx.PenStyle

fillcolour='red'

fill color

wx.Colour

fillstyle=wx.BRUSHSTYLE_SOLID

fill style

wx.BrushStyle

legend=''

legend string

str

Important

If barwidth is a list of floats:

  • each bar will have a separate width

  • len(barwidth) must equal len(points).

Warning

All methods except __init__ are private.


class_hierarchy Class Hierarchy¶

Inheritance diagram for class PolyBars:

Inheritance diagram of PolyBars


super_classes Known Superclasses¶

wx.lib.plot.polyobjects.PolyBarsBase


method_summary Methods Summary¶

__init__

calc_rect

Calculate the rectangle for plotting.

draw

Draw the bars


api Class API¶

class PolyBars(PolyBarsBase)¶

Creates a PolyBars object.

Parameters:
  • points (sequence of (center, height) points) – The data to plot.

  • **attr – keyword attributes

Keyword and Default

Description

Type

barwidth=1.0

bar width

float or list of floats

edgecolour='black'

edge color

wx.Colour

edgewidth=1

edge width

float

edgestyle=wx.PENSTYLE_SOLID

edge style

wx.PenStyle

fillcolour='red'

fill color

wx.Colour

fillstyle=wx.BRUSHSTYLE_SOLID

fill style

wx.BrushStyle

legend=''

legend string

str

Important

If barwidth is a list of floats:

  • each bar will have a separate width

  • len(barwidth) must equal len(points).

Warning

All methods except __init__ are private.


Methods¶

__init__(self, points, \*\*attr)¶


calc_rect(self, x, y, w)¶

Calculate the rectangle for plotting.



draw(self, dc, printerScale, coord=None)¶

Draw the bars

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.