Skip to content

Commit

Permalink
changed navigation sliders to use QSlider
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Dec 16, 2018
1 parent d1ea0a0 commit 0958157
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 323 deletions.
310 changes: 0 additions & 310 deletions straditize/navigation_slider.py

This file was deleted.

12 changes: 0 additions & 12 deletions straditize/straditizer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
"""Core module of the Straditizer class"""
import six
import gc
import weakref
from copy import copy
from collections import OrderedDict
Expand All @@ -15,8 +14,6 @@
from straditize.label_selection import LabelSelection
from psyplot.data import Signal, safe_list
from straditize.magnifier import Magnifier
from straditize.navigation_slider import (HorizontalNavigationSlider,
VerticalNavigationSlider)
from psyplot.utils import _temp_bool_prop
import skimage.morphology as skim
import xarray as xr
Expand Down Expand Up @@ -233,10 +230,6 @@ def yaxis_px(self, value):

_indexes = None

_horizontal_slider = None

_vertical_slider = None

#: The matplotlib axes
ax = None

Expand Down Expand Up @@ -341,8 +334,6 @@ def reset_image(self, image, reader=False):
self.draw_figure()

def plot_image(self, ax=None, **kwargs):
draw_slider = (self._horizontal_slider is None or self.ax is None or
ax is not self.ax)
ax = ax or self.ax
if ax is None:
import matplotlib.pyplot as plt
Expand All @@ -353,9 +344,6 @@ def plot_image(self, ax=None, **kwargs):
self.plot_im = ax.imshow(self.image, **kwargs)
ax.grid(False)
self.magni = Magnifier(ax, image=self.image, **kwargs)
if draw_slider:
self._horizontal_slider = HorizontalNavigationSlider(ax)
self._vertical_slider = VerticalNavigationSlider(ax)
if self._orig_format_coord is None:
self._orig_format_coord = ax.format_coord
ax.format_coord = format_coord_func(ax, weakref.ref(self))
Expand Down

0 comments on commit 0958157

Please sign in to comment.