Fix: PlotCurveItem now ignores clip-to-view when auto-range is enabled.
This commit is contained in:
parent
eae32af0c7
commit
ca68f05f1f
|
@ -41,6 +41,7 @@ pyqtgraph-0.9.9 [unreleased]
|
|||
- PolyLineROI.setPen() now changes the pen of its segments as well
|
||||
- Prevent divide-by-zero in AxisItem
|
||||
- Major speedup when using ScatterPlotItem in pxMode
|
||||
- PlotCurveItem ignores clip-to-view when auto range is enabled
|
||||
|
||||
pyqtgraph-0.9.8 2013-11-24
|
||||
|
||||
|
|
|
@ -531,6 +531,8 @@ class PlotDataItem(GraphicsObject):
|
|||
## downsampling is expensive; delay until after clipping.
|
||||
|
||||
if self.opts['clipToView']:
|
||||
view = self.getViewBox()
|
||||
if view is None or not view.autoRangeEnabled()[0]:
|
||||
# this option presumes that x-values have uniform spacing
|
||||
range = self.viewRect()
|
||||
if range is not None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user