From db3e70d87dfb58d35032a84c687ea0074ecf6b21 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Sun, 20 Oct 2024 08:32:24 +0200 Subject: [PATCH] docs: Make it clear that sum projection does eliminate axis/histogram (#135) --- docs/indexing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/indexing.rst b/docs/indexing.rst index 631048c..ec27b94 100644 --- a/docs/indexing.rst +++ b/docs/indexing.rst @@ -37,9 +37,9 @@ Slicing: h2 = h[loc(v):] # Slices can be in data coordinates, too h2 = h[::rebin(2)] # Modification operations (rebin) h2 = h[a:b:rebin(2)] # Modifications can combine with slices - h2 = h[::sum] # Projection operations # (name may change) - h2 = h[a:b:sum] # Adding endpoints to projection operations - h2 = h[0:len:sum] # removes under or overflow from the calculation + v2 = h[::sum] # Projection operations # (name may change) + v2 = h[a:b:sum] # Adding endpoints to projection operations + v2 = h[0:len:sum] # removes under or overflow from the calculation h2 = h[v, a:b] # A single value v is like v:v+1:sum h2 = h[a:b, ...] # Ellipsis work just like normal numpy