Skip to content

Commit

Permalink
Added y-axis label.
Browse files Browse the repository at this point in the history
  • Loading branch information
mliberty1 committed Feb 13, 2019
1 parent e82a76c commit fd83699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions features_future.md
Expand Up @@ -62,7 +62,6 @@ will be implemented before Joulescope general availability.

### Oscilloscope

* Add y-axis label (voltage, current)
* Add x-axis label (or at least some tool-tip / hover text)
* Make the y-axis autoranging less confusing. You lose context on the
discrete jumps. Perhaps animate the transition?
Expand All @@ -84,7 +83,6 @@ will be implemented before Joulescope general availability.
and a box with the view being displayed.
* The zoom & pan controls are improved, but still not intuitive. Explore
alternatives, including a survey of other products, to see what works.
* Add power plot


### Frequency analysis
Expand Down
2 changes: 2 additions & 0 deletions joulescope_ui/oscilloscope.py
Expand Up @@ -267,6 +267,8 @@ def __init__(self, parent, field):
self.plot.disableAutoRange()
self.plot.hideButtons()
self.plot.setXRange(0.0, 1.0)
# The label automatically causes SI unit ranging with a prefix
self.plot.setLabel('left', text=field, units=self._units)

parent.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.widget)
self._pen_min_max = pg.mkPen(color=(255, 64, 64), width=CURVE_WIDTH)
Expand Down

0 comments on commit fd83699

Please sign in to comment.