feature request: scale extents a bit more than the absolute fit
See original GitHub issueRight now:
hv.Scatter([[-1,-1], [-1, 1], [0, 1], [1,1]])
gives points that you cannot even see:
Preferably the plot would take the extent and make it 10% bigger or so, like:
hv.Scatter([[-1,-1], [-1, 1], [0, 1], [1,1]])[-1.1:1.1, -1.1:1.1]
which does show the points:
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:20 (18 by maintainers)
Top Results From Across the Web
feature request: scale extents a bit more than the absolute fit ...
The question has always been how precisely the padding is calculated. Is it a fixed 10% or is there special handling around zero?...
Read more >Feature Requests: What are they and how to manage them
Feature requests are a form of product feedback you may frequently encounter as a SaaS product manager. They typically come in the form...
Read more >4. Regression and Prediction - Practical Statistics for Data ...
The t-statistic—and its mirror image, the p-value—measures the extent to which a coefficient is “statistically significant”—that is, outside the range of what ...
Read more >Size Limits of PCB workspace | Altium Designer
From there the workspace extends to the top and to the right, but you cannot reach any points below absolute zero. It would...
Read more >Feature Requests - Audacity Wiki
Length of audio should be the minimum interval possible taking the settings of the Fourier transform used in each track, namely the FFT...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not sure, I usually use 0.1 for 5% padding on each end.
Agreed, this is something we should have added a long time ago. All our plots should automatically pad the axis ranges by a few percent. The question has always been how precisely the padding is calculated. Is it a fixed 10% or is there special handling around zero? Other plotting libraries have had this discussion (see https://github.com/matplotlib/matplotlib/issues/4891) and have generally settled on a fixed 4-5% padding along each axis:
If we agree with both matplotlib and ggplot2 (and bokeh?) that’s what we can use by default as well. It’s trivial to do and I strongly believe this belongs in 1.7 as part of changing our global styling defaults (https://github.com/ioam/holoviews/issues/823).