Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove disabled methods param
  • Loading branch information
lukelbd committed Sep 15, 2019
commit fe83c607d601ed1b2983b9a860dffa7b478c6fab
14 changes: 0 additions & 14 deletions proplot/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,6 @@ def _load_objects():
'tricontour', 'tricontourf', *EDGES_METHODS, *CENTERS_METHODS
)

# Disabled methods; keys are error messages
# TODO: rigorous support for violin plots, bar, barh, streamline and quiver
# TODO: 'table', 'eventplot', 'pie', 'xcorr', 'acorr', 'psd', 'csd',
# 'magnitude_spectrum', 'angle_spectrum', 'phase_spectrum', 'cohere', 'specgram'
DISABLED_METHODS = {
"Redundant function {} has been disabled. Control axis scale with format(xscale='scale', yscale='scale').":
('semilogx', 'semilogy', 'loglog'),
"Redundant function {} has been disabled. Date formatters will be used automatically when x/y coordinates are python datetime or numpy datetime64.":
('plot_date',),
"Redundant function {} has been disabled. Use proj='polar' in subplots() call, then use the angle as your *x* coordinate and radius as your *y* coordinate.":
('polar',)
}

# Keywords for styling cmap overridden plots
STYLE_ARGS_TRANSLATE = {
'contour': {'colors':'colors', 'linewidths':'linewidths', 'linestyles':'linestyles'},
Expand Down Expand Up @@ -126,7 +113,6 @@ def _expand_methods_list(func):
('TRANSFORM_METHODS', TRANSFORM_METHODS),
('CYCLE_METHODS', CYCLE_METHODS),
('CMAP_METHODS', CMAP_METHODS),
('DISABLED_METHODS', (*(method for methods in DISABLED_METHODS.values() for method in methods),)),
):
if f'`{name}`' not in doc:
continue
Expand Down