1 Mar 01:00
Re: chaco.shell status
> > 3. I need a "session manager" for envisage as well as scripting. The > > main difference is the source of the window/frame. Could that be > > configured to be swappable somehow? > > Can you elaborate? Are you referring to replacing the PlotSession > with something that is duck-type compatible but knows about > Envisage? If so, this is also quite easy: at the top of commands.py, > the global PlotSession object is created. We can add a function to > replace that with a different, external session object. Also, we > should factor out the interface for PlotSession into an abstract class. Yes. This is what I am asking for. It is easier for me to achieve the type of script-gui interchangeability I am shooting for if that interface were exposed. > I agree that these would be nice features to have. It would be very > sweet to have a general sync() function: > sync(plot1, "x_range", plot2, "y_range") Yup. That is the stuff. > If you are not familiar > with the Plot and PlotData stuff, take a look in chaco2/examples/ > basic; the examples in there are using Plot instead of the > create_line_plot() and create_scatter_plot() functions in > plot_factory.py. I hope to be able to deprecate plot_factory at some > point... I think the deprecation is fine. I'd like to clarify something about Plot and PlotData, though. It seems that PlotData assume a common index.(Continue reading)
RSS Feed