Ticket #1040 (closed: fixed)
plotSpectrum/plotTimeBin commands don't work in user scripts only in main window
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Iteration 22 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
Using either plotSpectrum/plotTimeBin in a user module no longer works.
For example
## module.py file ##
def doPlot():
plotSpectrum('ws',0)
## myscript.py ## This is the one in main window import module module.doPlot()
=> NameError on line 2: global name 'plotSpectrum' is not defined in file 'module.py' at line 2
Change History
comment:1 Changed 11 years ago by Nick Draper
- Status changed from new to assigned
- Owner set to Martyn Gigg
Note: See
TracTickets for help on using
tickets.