Skip to content

Commit

Permalink
Allowed pixel_ratio to go below 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jbednar committed Jul 18, 2023
1 parent 003be41 commit 65d33ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/operation/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65d33ed

Please sign in to comment.