Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed Dec 9, 2024
1 parent b331e8e commit a5cad8c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/mnelab/dialogs/montage.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MontageDialog(QDialog):
def __init__(self, parent, montages):
super().__init__(parent)
self.setWindowTitle("Set montage")
self.resize(760, 540)
self.resize(760, 500)

vbox = QVBoxLayout()
self.montages = QListWidget()
Expand All @@ -44,10 +44,9 @@ def __init__(self, parent, montages):
self.canvas_container = QWidget(self)
self.canvas_container.setMinimumWidth(240)
self.canvas_container.setMinimumHeight(220)
self.canvas_container.setStyleSheet("border: 1px solid lightgray;")
self.canvas_layout = QVBoxLayout(self.canvas_container)
self.canvas_layout.setContentsMargins(1, 1, 1, 1)
self.canvas_layout.setSpacing(1)
self.canvas_layout.setContentsMargins(0, 0, 0, 0)
self.canvas_layout.setSpacing(0)
self.canvas_layout.addWidget(self.canvas)
self.canvas_container.setLayout(self.canvas_layout)
hbox.addWidget(self.canvas_container, stretch=2)
Expand All @@ -72,7 +71,7 @@ def view_montage(self):
name = self.montages.selectedItems()[0].data(0)
montage = make_standard_montage(name)
self.figure.clear()
ax = self.figure.add_subplot(111)
ax = self.figure.add_subplot()
montage.plot(show_names=True, show=False, axes=ax)
ax.set_aspect("equal")
self.figure.tight_layout(pad=0.5)
Expand Down

0 comments on commit a5cad8c

Please sign in to comment.