This is a tiny document to specify where the different Python plotting modules should go and what namespaces should be used for them.
- Bring future.pyplot out of future and import it as pyplot. In mantidplotrc.py or in mantidplot.py (imported from there) there would an import like this:
import pymantidplot.pyplot
from pymantidplot.pyplot import *
to import the module and bring it into the standard MantidPlot namespace.
-
This will cause at least one name clash with the traditional mantidplot plot() function. This function could be moved into a (new) module
qtiplot
which would be also imported in mantidplotrc.py. -
As the change from
plot()
toqtiplot.plot()
breaks backwards compatibility, the documentation (and also course material, etc.) needs to be checked and updated.
- For the names of the tools in the plot commands, there will be
aliases with and without the
tool_
prefix, and for thespectrum
tool there will be a shorter alias:sp
.