From 65d33ed3c6c9122d97b0970e0f0f9d0257683fc2 Mon Sep 17 00:00:00 2001 From: "James A. Bednar" Date: Tue, 18 Jul 2023 17:04:25 -0500 Subject: [PATCH] Allowed pixel_ratio to go below 1 --- holoviews/operation/resample.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/holoviews/operation/resample.py b/holoviews/operation/resample.py index 56abef4c12..1ead099b63 100644 --- a/holoviews/operation/resample.py +++ b/holoviews/operation/resample.py @@ -50,7 +50,8 @@ class ResampleOperation1D(LinkableOperation): height = param.Integer(default=400, doc=""" The height of the output image in pixels.""") - pixel_ratio = param.Number(default=1, bounds=(1,None), doc=""" + pixel_ratio = param.Number(default=1, bounds=(0,None), + inclusive_bounds=(False,False), doc=""" Pixel ratio applied to the height and width. Useful for higher resolution screens where the PlotSize stream reports 'nominal' dimensions in pixels that do not match the physical pixels. For