Skip to content

Commit

Permalink
switched to tight layout, removed left click bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbhughes committed Aug 19, 2020
1 parent 0c605ea commit ff687e9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Upcoming

## [0.2.9]
### Added
* Added back relabeling by left click after bug fix

### Changed
* Switched to tight layout for better space usage in annotation window

## [0.2.8]
### Removed
* Temporarily removed relabeling by left click on thematic map due to bug
Expand Down Expand Up @@ -42,6 +49,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [0.2.4]
First stable release. Not all features added.

[0.2.9]: https://github.com/jmbhughes/solarannotator/releases/tag/v0.2.9
[0.2.8]: https://github.com/jmbhughes/solarannotator/releases/tag/v0.2.8
[0.2.7]: https://github.com/jmbhughes/solarannotator/releases/tag/v0.2.7
[0.2.6]: https://github.com/jmbhughes/solarannotator/releases/tag/v0.2.6
[0.2.5]: https://github.com/jmbhughes/solarannotator/releases/tag/v0.2.5
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
name='solarannotator',
long_description=long_description,
long_description_content_type='text/markdown',
version='0.2.8',
version='0.2.9',
packages=['solarannotator'],
url='',
license='',
Expand Down
5 changes: 2 additions & 3 deletions solarannotator/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import PyQt5
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import QWidget, QLabel, QAction, QTabWidget, QPushButton, QFileDialog, QRadioButton, QMessageBox, \
QComboBox, QLineEdit
QComboBox, QLineEdit, QSizePolicy
from PyQt5.QtCore import QDateTime
from PyQt5.QtGui import QIcon, QDoubleValidator
from datetime import datetime, timedelta
Expand Down Expand Up @@ -67,7 +67,6 @@ def __init__(self, config):
self.toolbar = NavigationToolbar(canvas, self)
layout.addWidget(self.toolbar)
self.setLayout(layout)
import pdb; pdb.set_trace()

# add selection layer for lasso
self.shape = (1280, 1280) # TODO: replace with dynamic detection
Expand All @@ -77,6 +76,7 @@ def __init__(self, config):

lineprops = dict(color="red", linewidth=2)
self.lasso = LassoSelector(self.axs[0], self.onlasso, lineprops=lineprops)
self.fig.tight_layout()

def onlasso(self, verts):
"""
Expand Down Expand Up @@ -339,7 +339,6 @@ def initSingleColorUI(self):
scale_label = QLabel("Scale", self)
scale_label.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignBottom)


self.one_color_tab.setLayout(self.one_color_tab.layout)
self.one_color_tab.layout.addWidget(channel_label, 0, 1)
self.one_color_tab.layout.addWidget(min_label, 0, 2)
Expand Down

0 comments on commit ff687e9

Please sign in to comment.