Hello community, here is the log from the commit of package python-veusz for openSUSE:Factory checked in at 2013-11-29 12:05:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-veusz (Old) and /work/SRC/openSUSE:Factory/.python-veusz.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-veusz" Changes: -------- --- /work/SRC/openSUSE:Factory/python-veusz/python-veusz.changes 2013-11-20 11:28:04.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-veusz.new/python-veusz.changes 2013-11-29 12:05:08.000000000 +0100 @@ -1,0 +2,8 @@ +Wed Nov 27 09:48:00 UTC 2013 - [email protected] + +- Add python-veusz-fix-histogram-errorbars.patch to fix bnc#852537 + (upstream bug gh#jeremysanders/veusz#49) which led to incorrect + bars for histograms; patch taken from upstream and applied to + fit version 1.19. + +------------------------------------------------------------------- New: ---- python-veusz-fix-histogram-errorbars.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-veusz.spec ++++++ --- /var/tmp/diff_new_pack.krj9cq/_old 2013-11-29 12:05:08.000000000 +0100 +++ /var/tmp/diff_new_pack.krj9cq/_new 2013-11-29 12:05:08.000000000 +0100 @@ -30,6 +30,8 @@ Source1: %{pyname}.desktop Source2: %{pyname}.xml Source3: %{pyname}_256.png +#PATCH-FIX-UPSTREAM python-veusz-fix-histogram-errorbars.patch bnc#852537 gh#jeremysanders/veusz#49 [email protected] -- Fix errors in histogram error bars, patch came from upstream and suitably modified for version 1.19 +Patch0: python-veusz-fix-histogram-errorbars.patch BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: hicolor-icon-theme @@ -61,6 +63,7 @@ %prep %setup -q -n %{pyname}-%{version} +%patch0 -p1 find -name \*~ | xargs rm -f %build ++++++ python-veusz-fix-histogram-errorbars.patch ++++++ Subject: [PATCH] Fix github bug #49 - error bars wrong for histogrammed data veusz/document/dataset_histo.py | 2 ++ diff --git a/veusz/document/dataset_histo.py b/veusz/document/dataset_histo.py index 77e7558..b63c0b5 100644 --- a/veusz/document/dataset_histo.py +++ b/veusz/document/dataset_histo.py @@ -113,6 +113,7 @@ def getErrors(self, data, binlocs): """Compute error bars if requried.""" hist, edges = N.histogram(data, bins=binlocs) + hist = hist.astype(N.float64) # integers can break plots (github#49) # calculate scaling values for error bars if self.method == 'density': @@ -144,6 +145,7 @@ def getBinVals(self): normed = self.method == 'density' binlocs = self.binLocations() hist, edges = N.histogram(data, bins=binlocs, normed=normed) + hist = hist.astype(N.float64) # integers can break plots (github#49) if self.method == 'fractions': hist = hist * (1./data.size) -- 1.8.4 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
