We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The docstring description of the type parameter for Plot.plot reads:
type
Plot.plot
type : comma-delimited string of plot type
However, I do not see where a comma delimited list of plot types is supported in the code, and the following example fails with error:
ValueError: Unknown plot type: line,scatter
from chaco.api import ArrayPlotData, Plot from enable.api import ComponentEditor from traits.api import HasTraits, Instance from traitsui.api import Item, View class Demo(HasTraits): plot = Instance(Plot) data = Instance(ArrayPlotData) def _data_default(self): return ArrayPlotData( x=[1, 2, 3, 4], y=[4, 0, 9, 4], ) def _plot_default(self): plot = Plot(self.data) plot.plot(('x', 'y'), type='line,scatter') return plot def default_traits_view(self): return View( Item('plot', editor=ComponentEditor()) ) if __name__ == '__main__': Demo().configure_traits()
The text was updated successfully, but these errors were encountered:
Update documentation
1a74fec
Amongs other things, fixes #518
Successfully merging a pull request may close this issue.
The docstring description of the
type
parameter forPlot.plot
reads:However, I do not see where a comma delimited list of plot types is supported in the code, and the following example fails with error:
The text was updated successfully, but these errors were encountered: