Skip to content
New issue

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

plotSpectrum/plotTimeBin commands don't work in user scripts only in main window #1888

Closed
martyngigg opened this issue Nov 26, 2009 · 1 comment
Assignees
Milestone

Comments

@martyngigg
Copy link
Member

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

@martyngigg martyngigg self-assigned this Jun 3, 2015
@martyngigg martyngigg added this to the Iteration 22 milestone Jun 3, 2015
@martyngigg
Copy link
Member Author

This issue was originally trac ticket 1040

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant