Questions tagged [rescale]
155 questions
0
votes
2 answers
3D aggregation of RasterBrick or RasterStack
I have some data in a 3D grid identified by simple i,j,k locations (no real-world spatial information). These data are in a RasterStack right now.
b <- stack(system.file("external/rlogo.grd", package="raster"))
# add more layers
b <- stack(b,b)
#…

Matt
- 490
- 8
- 19
0
votes
0 answers
Rescale data to be sinuosoidal
I have some time series data I'm looking at in Python that I know should follow a sine2 function, but for various reasons doesn't quite fit it. I'm taking an FFT of it and it has a fairly broad frequency spread, when it should be a very narrow…

user2297541
- 13
- 3
0
votes
0 answers
Changing colors in a heatmap
I have the following data frame:
data frame: sum.pval
X FIN GBR IBS TSI CEU ACB ASW MXL CLM PEL PUR CDX CHB CHS JPT KHV
1 1 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000…

Cisco
- 137
- 7
0
votes
1 answer
Java: drawing scaled objects (buffered image and vector graphics)
I would like to draw scaled objects containing raster as well as vector data. Currently, I am drawing into a scaled Graphics2D object
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2d = (Graphics2D)…

justik
- 4,145
- 6
- 32
- 53
0
votes
0 answers
d3 - rescaling y axis after plot is already done?
(How) can I rescale the whole plot?
I am using my own fork of mbostock's "Multi-Line Voronoi", and now I am encountering a dataset in which it would makes sense to rescale the y axis. By just showing less of the "y.domain".
Interactively, perhaps…

AltSheets
- 357
- 1
- 3
- 10
0
votes
1 answer
`LinAlgError: SVD did not converge` when attempting to rescale a 4D array using `skimage.transform.rescale`
I want to rescale a 4D array of MNIST data by a factor of 0.5. I get an error using skimage.transform.rescale:
LinAlgError: SVD did not converge
I have a feeling it might be related to image dimensions but the documentation doesn't mention image…

user3711518
- 253
- 1
- 3
- 14
0
votes
0 answers
Unscale and uncenter glmer standard errors
As a follow up to this question unscale and uncenter glmer parameters, how can I unscale and uncenter glmer standard errors?
Could someone provide a function similar to rescale.coefs but for standard errors?
If needed, the question referred to above…

bdu
- 302
- 1
- 3
- 12
0
votes
0 answers
d3js skip data if position is negative
here is part of code.
function transition_data() {
svg.selectAll(".bar")
.transition()
.duration(500)
.attr("x", function(d) { return x(d.startDate) })
.attr("y", function(d) { return y(d.index) })
…

DK2
- 651
- 1
- 7
- 34
0
votes
2 answers
Making an image responsive (re-size with browser)
i'm attempting to make an image I have positioned in the center of the page, responsive (as in rescaling upon browser sizing while retaining it's position).
I've tried numerous methods (HTML and CSS only), including a popular one to add the…

Alex E
- 107
- 10
0
votes
2 answers
rescaling div inside a table cell
I'm trying to add a simple upvote/downvote counter into each row of a table. The counter is basically a container of divs shaped by css, that I'm inserting into a table cell. However, as is, the vote counter causes the row to balloon up. I trying…

havok2063
- 517
- 2
- 9
- 25
0
votes
1 answer
Increase/Decrease Brightness of Image using Jslider not working
Jslider is working fine but filtering of image is not occuring.Please help me to find out what is wrong in this code.Is there any other method to change brightness of image?
If so please change the code but using jslider brightness should be…

Stone
- 11
- 2
0
votes
1 answer
Why are images larger than the set size not being scaled down
I work out the width and height of my fragment and scale its image to a specific percentage of that fragment. This works for images that need to be scaled up to meet that size but larger images seem to ignore the scales (i think they shrink a bit…

Fearghal
- 10,569
- 17
- 55
- 97
0
votes
4 answers
Rescale an image for printing
I need to rescale an image for printing, but I only have two different results:
The image is bigger than the page.
The image is cutted and I see only a small percent of the image on the page.
I put two images to see it better. The first one is the…

Fidel Pérez Menéndez
- 25
- 6
0
votes
0 answers
Linear resize of polygon shapes in python
I am working with planar geometric shapes, essentially a large collection of polygons, whose coordinates are stored as numerical arrays. I need to develop a generic algorithm that LINEARLY resizes a polygon (or basically any closed geometric shape)…

Chocolate
- 31
- 2
0
votes
1 answer
SVG Rescale circle from center
I want to rescale my circle after the scaled from 1 1 to 2 2.. because after scaled it come 1 1 position suddenly. but I want to rescale it according to time period given by me like scale circle.. please kindly admire your answers to solve this…

Super Genius
- 91
- 1
- 1
- 8