Skip to content

Commit

Permalink
requirements and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Oct 9, 2018
1 parent 4bd1e64 commit d456504
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
18 changes: 9 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@
"scipy",
"matplotlib",
"pandas",
"cython",
"geodesy",
"Cartopy",
"Shapely",
"requests",
"maya",
"appdirs",
"paramiko",
"tqdm>=4.26",
"maya", # human-friendly datetimes
"appdirs", # proper configuration directories
"paramiko", # ssh connections
"PyQt5",
"ipywidgets", # IPython widgets for traffic
"tornado", # dependency for matplotlib with WebAgg
"ipympl", # interactive matplotlib in notebooks
"tqdm>=4.26", # progressbars
"geodesy",
"cartotools==1.0",
"pyModeS==2.0",
],
dependency_links=[
"https://github.com/xoolive/cartotools.git#whl=cartotools-1.0"
],
python_requires=">=3.6",
)
10 changes: 0 additions & 10 deletions traffic/qtgui/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,22 +539,12 @@ def set_icons(self) -> None:
icon_path = Path(__file__).absolute().parent.parent.parent / "icons"

if sys.platform == "linux":
# icon_mini = QtGui.QIcon(
# (icon_path / "travel-mini-white.svg").as_posix()
# )
icon_full = QtGui.QIcon((icon_path / "travel-white.svg").as_posix())
else:
# icon_mini = QtGui.QIcon(
# (icon_path / "travel-mini-grey.svg").as_posix()
# )
icon_full = QtGui.QIcon((icon_path / "travel-grey.svg").as_posix())

self.setWindowIcon(icon_full)

# self.trayIcon = QSystemTrayIcon(icon_mini, self)
# not useful yet...
# self.trayIcon.show()

def set_time_range(self) -> None:
assert self._traffic is not None
self.time_slider.setEnabled(True)
Expand Down
6 changes: 6 additions & 0 deletions traffic/qtgui/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ def plot_callsigns(
if (up - low) / up < 0.05:
self.ax.set_ylim(up - .05 * up, up + .05 * up)

if len(callsigns) > 0 and len(secondary_y) > 0:
ax2, _ = next(iter(self.ax.get_shared_x_axes()))
low, up = ax2.get_ylim()
if (up - low) / up < 0.05:
ax2.set_ylim(up - .05 * up, up + .05 * up)

self.draw()

def draw(self):
Expand Down

0 comments on commit d456504

Please sign in to comment.