File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 66
77* [ Issue #3 ] ( https://github.com/PlotPyStack/PlotPy/issues/3 ) - ` PlotWidget ` : ` ZeroDivisionError ` on resize while ignoring constraints
88* [ Issue #4 ] ( https://github.com/PlotPyStack/PlotPy/issues/4 ) - Average cross section: ` RuntimeWarning: Mean of empty slice. `
9+ * [ Issue #6 ] ( https://github.com/PlotPyStack/PlotPy/issues/6 ) - 1D Histogram items are not properly drawn
910
1011## Version 2.0.1 ##
1112
Original file line number Diff line number Diff line change @@ -170,7 +170,8 @@ def update_histogram(self) -> None:
170170 if self .get_hist_source () is None :
171171 return
172172 hist , bin_edges = self .compute_histogram ()
173- hist = np .concatenate ((hist , [0 ]))
173+ # Duplicate the first `hist` value to get a step-like histogram:
174+ hist = np .concatenate (([hist [0 ]], hist ))
174175 if self .logscale :
175176 hist = np .log (hist + 1 )
176177
You can’t perform that action at this time.
0 commit comments