Questions tagged [scale]

The scale tag is mostly used for questions that relate to proportional resizing of images or UI elements. It is also used for questions related to function scale() in R language.

In scientific software for statistical computing and graphics, the function scale performs standardization of a vector or a matrix (by column).

4504 questions
37
votes
8 answers

CSS: make div width proportional to height

This is a little tricky to explain, but: I want a responsive-height div (height: 100%) that will scale the width proportional to the height (not vice versa). I know of this method utilising a padding-top hack to make the height proportional to the…
indextwo
  • 5,535
  • 5
  • 48
  • 63
36
votes
4 answers

CSS scale from left top

I am trying to scale my entire page from the top left. This is what my original page looks like: However when I try to scale my page, this happens: This is my CSS: html { zoom: 1.4; /* Old IE only */ -moz-transform: scale(1.4); …
2339870
  • 1,317
  • 3
  • 15
  • 23
33
votes
4 answers

Change the thousands separator in a ggplot

While making a bar plot with ggplot I run into troubles getting the preferred thousands separator. I would like thousands to be separated by a dot instead of a comma. Like this it gives no separator: require(ggplot2) require(scales)…
Forzaa
  • 1,465
  • 4
  • 15
  • 27
32
votes
7 answers

How to turn off autoscaling in Kubernetes with the kubectl command?

If I set to autoscale a deployment using the kubectl autoscale command (http://kubernetes.io/docs/user-guide/kubectl/kubectl_autoscale/), how can I turn it off and go back to manual scaling?
Jon
  • 1,224
  • 2
  • 14
  • 23
32
votes
5 answers

CGAffineTransform scale and translation - jump before animation

I am struggling with an issue regarding CGAffineTransform scale and translation where when I set a transform in an animation block on a view that already has a transform the view jumps a bit before animating. Example: // somewhere in view did load…
matteok
  • 2,189
  • 3
  • 30
  • 54
31
votes
1 answer

Css3 transition on scale only

I am missing something obvious. But the transition on only one element isn't working here. Here's my code. #navigatore-servizi ul li a { color: #fff; text-decoration: none; text-shadow: 0 -1px 0 #008; display:block; width:240px; …
Francesco Frapporti
  • 5,195
  • 4
  • 32
  • 39
30
votes
3 answers

Can I scale a View in Android?

Can I take a view that has been rendered by the Android framework and rescale it to some other size?
bjdodson
  • 519
  • 2
  • 8
  • 11
29
votes
3 answers

[sklearn][standardscaler] can I inverse the standardscaler for the model output?

I have some data structured as below, trying to predict t from the features. train_df t: time to predict f1: feature1 f2: feature2 f3:...... Can t be scaled with StandardScaler, so I instead predict t' and then inverse the StandardScaler to get…
hyon
  • 349
  • 1
  • 3
  • 9
29
votes
5 answers

Center Crop an Android VideoView

I am looking for something like the CENTER_CROP in ImageView.ScaleType Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension…
clocksmith
  • 6,226
  • 3
  • 32
  • 45
29
votes
5 answers

Reduce the size of the iPhone Simulator window?

Is it possible to resize the iPhone Simulator? I'm using screen capture software to record a demo of my iPhone application, and it would be handy to be able to resize the iPhone Simulator window. Thanks!
James Sun
  • 1,461
  • 2
  • 19
  • 26
28
votes
2 answers

Using transform: scale results in blurry images

In our catalog view (online store) we use javascript to get different views of the products and scale the images down with CSS. 3 in a row / 4 or 5/ The default view is 4: -webkit-transform: scale(0.83); -moz-transform: scale(0.83); -ms-transform:…
grindking
  • 917
  • 5
  • 13
  • 29
28
votes
1 answer

scale_fill_discrete and scale_fill_manual - legend options confusion

I have a problem with applying two different changes on my ggplot2 object. I have a barplot with 3 groups on it. I want to: set color for each group reorder the order of legend labels I have found the following solutions to the above problems:…
Marta Karas
  • 4,967
  • 10
  • 47
  • 77
26
votes
6 answers

How to force re-render after a WebKit 3D transform in Safari

I'm using CSS 3D transformations to zoom a div, for example: -webkit-transform: scale3d(2,2,1); The scaling itself works fine in any WebKit browser. However, when using this on Safari (mobile or Windows), the content of the div is not re-rendered.…
FatCat123
  • 261
  • 1
  • 3
  • 4
26
votes
9 answers

Scale Image Using PHP and Maintaining Aspect Ratio

Basically I want to upload an image (which i've sorted) and scale it down to certain constraints such as max width and height but maintain the aspect ratio of the original image. I don't have Imagick installed on the server - otherwise this would be…
Steve_M
  • 435
  • 1
  • 10
  • 21
26
votes
3 answers

How to relative scale size of User Control?

How to relative scale size of User Control like image (in image editor). Example (100%): (source: stegnar.com) Scaled down UC (70%): (source: stegnar.com) Well I achieve this in picture editor, but I would like in WPF. :) I need this to adjust…
Peter Stegnar
  • 12,615
  • 12
  • 62
  • 80