-
Notifications
You must be signed in to change notification settings - Fork 98
Add module doc string for chaco.api #649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4fbdbb0
add module docstring for chaco.api
aaronayres35 2677ee0
Merge branch 'master' into api-module-docstrings
aaronayres35 b302123
minor changes to sphinx roles
aaronayres35 df18643
Merge branch 'master' into api-module-docstrings
aaronayres35 83833f6
Merge branch 'master' into api-module-docstrings
aaronayres35 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,167 @@ | ||
| """ Defines the publicly accessible items of the Chaco API. | ||
| # (C) Copyright 2006-2021 Enthought, Inc., Austin, TX | ||
| # All rights reserved. | ||
| # | ||
| # This software is provided without warranty under the terms of the BSD | ||
| # license included in LICENSE.txt and may be redistributed only under | ||
| # the conditions described in the aforementioned license. The license | ||
| # is also available online at http://www.enthought.com/licenses/BSD.txt | ||
| # | ||
| # Thanks for using Enthought open source! | ||
| """ | ||
| Defines the publicly accessible items of the Chaco API. | ||
|
|
||
| Base | ||
| ---- | ||
|
|
||
| - :attr:`~.NumericalSequenceTrait` | ||
| - :attr:`~.PointTrait` | ||
| - :attr:`~.ImageTrait` | ||
| - :attr:`~.DimensionTrait` | ||
| - :attr:`~.SortOrderTrait` | ||
| - :func:`~.bin_search` | ||
| - :func:`~.reverse_map_1d` | ||
| - :func:`~.right_shift` | ||
| - :func:`~.left_shift` | ||
| - :func:`~.sort_points` | ||
| - :func:`~.find_runs` | ||
| - :func:`~.arg_find_runs` | ||
| - :func:`~.point_line_distance` | ||
|
|
||
| Data Model | ||
| ---------- | ||
|
|
||
| - :class:`~.AbstractDataSource` | ||
| - :class:`~.ArrayDataSource` | ||
| - :class:`~.GridDataSource` | ||
| - :class:`~.ImageData` | ||
| - :class:`~.MultiArrayDataSource` | ||
| - :class:`~.PointDataSource` | ||
| - :class:`~.AbstractDataRange` | ||
| - :class:`~.BaseDataRange` | ||
| - :class:`~.DataRange1D` | ||
| - :class:`~.DataRange2D` | ||
|
|
||
|
|
||
| Mappers | ||
| ------- | ||
|
|
||
| - :class:`~.AbstractMapper` | ||
| - :class:`~.Base1DMapper` | ||
| - :class:`~.GridMapper` | ||
| - :class:`~.LogMapper` | ||
| - :class:`~.LinearMapper` | ||
| - :class:`~.ColorMapper` | ||
| - :class:`~.ColorMapTemplate` | ||
| - :class:`~.DiscreteColorMapper` | ||
| - :class:`~.TransformColorMapper` | ||
|
|
||
| Colormaps and Color Palettes | ||
| ---------------------------- | ||
|
|
||
| - | ||
|
|
||
|
|
||
| Visual Components | ||
| ----------------- | ||
|
|
||
| - :class:`~.AbstractPlotRenderer` | ||
| - :class:`~.AbstractOverlay` | ||
| - :class:`~.BasePlotContainer` | ||
| - :class:`~.BasePlotFrame` | ||
| - :class:`~.CrossPlotFrame` | ||
| - :class:`~.DataView` | ||
| - :class:`~.SimplePlotFrame` | ||
| - :class:`~.PlotComponent` | ||
| - :class:`~.PlotGraphicsContext` | ||
| - :class:`~.PlotGraphicsContextMixin` | ||
| - :class:`~.OverlayPlotContainer` | ||
| - :class:`~.HPlotContainer` | ||
| - :class:`~.VPlotContainer` | ||
| - :class:`~.GridPlotContainer` | ||
| - :class:`~.Label` | ||
| - :class:`~.PlotLabel` | ||
| - :class:`~.Legend` | ||
| - :class:`~.ToolTip` | ||
| - :class:`~.DataLabel` | ||
| - :class:`~.LassoOverlay` | ||
| - :class:`~.ColorBar` | ||
| - :class:`~.TextBoxOverlay` | ||
| - :class:`~.ScatterInspectorOverlay` | ||
|
|
||
| Renderers | ||
| --------- | ||
|
|
||
| - :class:`~.BarPlot` | ||
| - :class:`~.Base1DPlot` | ||
| - :class:`~.Base2DPlot` | ||
| - :class:`~.BaseXYPlot` | ||
| - :class:`~.ScatterPlot` | ||
| - :func:`~.render_markers` | ||
| - :class:`~.ImagePlot` | ||
| - :class:`~.CMapImagePlot` | ||
| - :class:`~.ContourLinePlot` | ||
| - :class:`~.ContourPolyPlot` | ||
| - :class:`~.LinePlot` | ||
| - :class:`~.ColormappedScatterPlot` | ||
| - :class:`~.ColormappedSelectionOverlay` | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| - :class:`~.PolygonPlot` | ||
| - :class:`~.ErrorBarPlot` | ||
| - :class:`~.FilledLinePlot` | ||
| - :class:`~.QuiverPlot` | ||
| - :class:`~.CandlePlot` | ||
| - :class:`~.MultiLinePlot` | ||
| - :class:`~.JitterPlot` | ||
| - :class:`~.VariableSizeScatterPlot` | ||
| - :class:`~.BandedMapper` | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| - :class:`~.HorizonPlot` | ||
| - :class:`~.ScatterPlot1D` | ||
| - :class:`~.LineScatterPlot1D` | ||
| - :class:`~.TextPlot1D` | ||
| - :class:`~.SegmentPlot` | ||
| - :class:`~.TextPlot` | ||
|
|
||
| Plot Factories | ||
| -------------- | ||
|
|
||
| - :func:`~.create_bar_plot` | ||
| - :func:`~.create_line_plot` | ||
| - :func:`~.create_scatter_plot` | ||
| - :func:`~.create_polar_plot` | ||
| - :func:`~.add_default_axes` | ||
| - :func:`~.add_default_grids` | ||
|
|
||
| - :class:`~.AbstractPlotData` | ||
| - :class:`~.ArrayPlotData` | ||
| - :class:`~.DataFramePlotData` | ||
| - :class:`~.Plot` | ||
| - :class:`~.ToolbarPlot` | ||
|
|
||
| Axis | ||
| ---- | ||
|
|
||
| - :class:`~.PlotAxis` | ||
| - :class:`~.MinorPlotAxis` | ||
| - :class:`~.LabelAxis` | ||
| - :class:`~.AbstractTickGenerator` | ||
| - :class:`~.DefaultTickGenerator` | ||
| - :func:`~.auto_ticks` | ||
| - :func:`~.auto_interval` | ||
| - :func:`~.tick_intervals` | ||
| - :func:`~.log_auto_ticks` | ||
| - :func:`~.auto_bounds` | ||
| - :func:`~.calc_bound` | ||
|
|
||
| Grid | ||
| ---- | ||
|
|
||
| - :class:`~.PlotGrid` | ||
|
|
||
| Tools | ||
| ----- | ||
|
|
||
| - :class:`~.AbstractController` | ||
|
|
||
| """ | ||
| # This just imports the key datamodel classes into the top-level package | ||
| # namespace for convenience. | ||
|
|
||
| from .base import ( | ||
| NumericalSequenceTrait, | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was actually thinking of making the
*imports fromchaco.default_colormapsandchaco.default_colorsexplicit. It will crowd the api module (and the module docstring) but I think it's better than users having to dig through the source code to find what the available color maps are.And we can move it to the end of the module (and the module docstring) to maintain readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. I will merge this PR and do that in a follow up PR shortly