praxes / hexrd

Legacy hexrd repository (python2.7)
http://hexrd.readthedocs.org
14 stars 42 forks source link

eradicate tk from hexrd.plotwrap #33

Open ddale opened 10 years ago

ddale commented 10 years ago

What does plotwrap do? There are comments expressing dissatisfaction with the use of the Tk backend, and the fact that pyplot relies on new_figure_manager. We should not be using pyplot at all, that api is intended only for scripting. For a GUI application such as hexrd, we should be using matplotlib's object-oriented api, there are several wx examples at https://github.com/matplotlib/matplotlib/tree/master/examples/user_interfaces .

joelvbernier commented 10 years ago

Nathan's old (predates the GUI) generic API for plotting. Included some fixes for cases with no display in older versions of Matplotlib. We've largely 'divested' from it, but it still has hooks here and there.

Sent from my iPhone

On Jul 7, 2014, at 12:09 PM, Darren Dale notifications@github.com wrote:

What does plotwrap do? There are comments expressing dissatisfaction with the use of the Tk backend, and the fact that pyplot relies on new_figure_manager. We should not be using pyplot at all, that api is intended only for scripting. For a GUI application such as hexrd, we should be using matplotlib's object-oriented api, there are several wx examples at https://github.com/matplotlib/matplotlib/tree/master/examples/user_interfaces .

— Reply to this email directly or view it on GitHub.