Skip to content
Snippets Groups Projects
Commit f54c64aa authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #2699: import of recent pylab fails when X is not availble (sigh!). Moved...

Task #2699: import of recent pylab fails when X is not availble (sigh!). Moved import of pylab into the function that really needs it.
parent c00b338f
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@
# ------------------------------------------------------------------------------
import sys, string
import pylab
import numpy as np
import monetdb.sql as db
import logging
......@@ -456,6 +455,7 @@ SELECT t0.v_catsrcid
cursor.close()
def plotSpectrum(x, y, p, f):
import pylab
expflux = "Exp. flux: " + str(round(10**p(0),3)) + " Jy"
fig = pylab.figure()
ax = fig.add_subplot(111)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment