Skip to content

Commit b6236f2

Browse files
Fixed DNE visualization bug, changed UI parameters slightly for Windows
1 parent c510b33 commit b6236f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Morpho.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, model, clearscreen,colortriplet):
3939
# Create some data, and plot it using the embedded scene's engine
4040

4141
self.model = model
42-
self.VisualizeMesh(model,clearscreen,colortriplet)
42+
self.plot = self.VisualizeMesh(model,clearscreen,colortriplet)
4343

4444
def VisualizeMesh(self, model, clearscreen, colortriplet):
4545
if clearscreen == 1:
@@ -124,7 +124,7 @@ def VisualizeDNE(self, edens, isrelative, absmin, absmax):
124124
lutmax = (emax-absmin)/(absmax - absmin)
125125
else: lutmax = 1.0
126126

127-
abslut = self.plot3.module_manager.scalar_lut_manager.lut.table.to_array()
127+
abslut = self.plot.module_manager.scalar_lut_manager.lut.table.to_array()
128128
rellut = self.RelativeLut(abslut, lutmin, lutmax)
129129
self.plot3 = self.VisualizeScalars(eve, customlut=rellut, scale='log10')
130130

@@ -470,7 +470,7 @@ def initUI(self, widgetlist):
470470
map(lambda x: self.vbox.addWidget(x), widgetlist)
471471
self.setLayout(self.vbox)
472472
self.setCheckable(1)
473-
self.setStyleSheet('QGroupBox::title {bottom: 1px; background-color: transparent}')
473+
self.setStyleSheet('QGroupBox::title {background-color: transparent}')
474474

475475
class DNEOptionsWindow(QtGui.QDialog):
476476
def __init__(self, parent=None):

0 commit comments

Comments
 (0)