Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions chaco/barplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ class BarPlot(AbstractPlotRenderer):
#: Color to fill the bars.
fill_color = black_color_trait

#: The RGBA tuple for rendering lines. It is always a tuple of length 4.
#: It has the same RGB values as line_color_, and its alpha value is the
#: alpha value of self.line_color multiplied by self.alpha.
#: The RGBA tuple for rendering lines. It is always a tuple of length 4.
#: It has the same RGB values as :attr:`line_color`, and its alpha value
#: is the alpha value of self.line_color multiplied by self.alpha.
effective_line_color = Property(Tuple, depends_on=['line_color', 'alpha'])
#: The RGBA tuple for rendering the fill. It is always a tuple of length 4.
#: It has the same RGB values as fill_color_, and its alpha value is the
#: alpha value of self.fill_color multiplied by self.alpha.

#: The RGBA tuple for rendering the fill. It is always a tuple of length
#: 4. It has the same RGB values as :attr:`fill_color`, and its alpha
#: value is the alpha value of self.fill_color multiplied by self.alpha.
effective_fill_color = Property(Tuple, depends_on=['fill_color', 'alpha'])

#: Overall alpha value of the image. Ranges from 0.0 for transparent to 1.0
Expand Down
6 changes: 3 additions & 3 deletions chaco/lineplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class LinePlot(BaseXYPlot):
#: The color of the line.
color = black_color_trait

#: The RGBA tuple for rendering lines. It is always a tuple of length 4.
#: It has the same RGB values as color_, and its alpha value is the alpha
#: value of self.color multiplied by self.alpha.
#: The RGBA tuple for rendering lines. It is always a tuple of length 4.
#: It has the same RGB values as :attr:`color`, and its alpha value is the
#: alpha value of self.color multiplied by self.alpha.
effective_color = Property(Tuple, depends_on=['color', 'alpha'])

#: The color to use to highlight the line when selected.
Expand Down
16 changes: 8 additions & 8 deletions chaco/polygon_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ class PolygonPlot(BaseXYPlot):

#: Override the hittest_type trait inherited from BaseXYPlot
hittest_type = Enum("poly", "point", "line")
#: The RGBA tuple for rendering edges. It is always a tuple of length 4.
#: It has the same RGB values as edge_color_, and its alpha value is the
#: alpha value of self.edge_color multiplied by self.alpha.

#: The RGBA tuple for rendering edges. It is always a tuple of length 4.
#: It has the same RGB values as :attr:`edge_color`, and its alpha value
#: is the alpha value of self.edge_color multiplied by self.alpha.
effective_edge_color = Property(Tuple, depends_on=['edge_color', 'alpha'])
#: The RGBA tuple for rendering the face. It is always a tuple of length 4.
#: It has the same RGB values as face_color_, and its alpha value is the
#: alpha value of self.face_color multiplied by self.alpha.

#: The RGBA tuple for rendering the face. It is always a tuple of length
#: 4. It has the same RGB values as :attr:`face_color`, and its alpha
#: value is the alpha value of self.face_color multiplied by self.alpha.
effective_face_color = Property(Tuple, depends_on=['face_color', 'alpha'])

#----------------------------------------------------------------------
Expand Down
5 changes: 2 additions & 3 deletions chaco/toolbar_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ class ToolbarPlot(Plot):
toolbar_added = False

#: Location of the default toolbar that is created if a toolbar
#: is not specified with the `toolbar` attribute. Changing this
#: is not specified with the :attr:`toolbar` attribute. Changing this
#: attribute after the ToolbarPlot instance is created has no effect;
#: use obj.toolbar.location to dynamically change the location of the
#: instance `obj`s toolbar.
#: use obj.toolbar.location to dynamically change toolbar's location.
toolbar_location = Enum('top', 'right', 'bottom', 'left')

def __init__(self, *args, **kw):
Expand Down
4 changes: 4 additions & 0 deletions examples/demo/depth.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Plot where depth is the index such that the plot is vertical and the origin is
the upper left
"""
import numpy
from chaco.api import ToolbarPlot, ArrayPlotData
from chaco.tools.api import LineInspector
Expand Down
5 changes: 5 additions & 0 deletions examples/demo/domain_limits.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
Domain Limits
=============
"""

import numpy

from chaco.plot import Plot, ArrayPlotData
Expand Down
4 changes: 4 additions & 0 deletions examples/demo/multi_line_plot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
""" Displays a plot with a few buttons to control which overlay
to display
"""

import numpy as np

from chaco.api import LinearMapper, Plot, ArrayDataSource, DataRange1D
Expand Down
13 changes: 7 additions & 6 deletions examples/demo/multi_line_plot_demo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
Demonstrates the MultiLinePlot.

This demo assumes that 'model', an instance of DataModel containing the 2D
data to be plotted, will be given to the constructor, and will not change
later.
"""
import numpy as np

from traits.api import Instance, HasTraits, Range, Array
Expand All @@ -24,12 +31,6 @@ class DataModel(HasTraits):


class MultiLinePlotDemo(HasTraits):
"""Demonstrates the MultiLinePlot.

This demo assumes that 'model', an instance of DataModel containing the 2D
data to be plotted, will be given to the constructor, and will not change
later.
"""

model = Instance(DataModel)

Expand Down
4 changes: 3 additions & 1 deletion examples/demo/status_overlay.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

"""
Displays a plot with a few buttons to control which overlay to display
"""
import numpy

from chaco.api import Plot, ArrayPlotData
Expand Down
3 changes: 3 additions & 0 deletions examples/demo/vtk_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
VTK Example
"""

from numpy import linspace
from scipy.special import jn
Expand Down