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
1
vote
2 answers

Scaling UI for all resolutions in Unity?

I want to create a 2D game with unity. I use anchor points and canvas scaler as everybody says in the Internet. The image below shows how do I set anchors However, when I create an apk for Android. It works for some mobile devices (I tested with…
Serkan Tarakcı
  • 177
  • 2
  • 13
1
vote
1 answer

Scaling production data

I have a dataset, say Data, which consists of categorical and numerical variables. After cleaning them, I have scaled only the numerical variables (guess catgorical must not be scaled) using Data <- Data %>% dplyr::mutate_if(is.numeric, ~scale(.)…
Ray
  • 321
  • 2
  • 12
1
vote
1 answer

geom_text() on faceted panels causes changes in symbol mapping

I am building a faceted plot where each panel has 3 different sets of points, each with a different shape. Everything works fine, until I try to add some text to each panel using geom_text(). When I include geom_text()in the plot, I get an error…
1
vote
0 answers

KeyError: 'deg' when drawing scaler with Psychopy

I found the following code for creating and drawing a scaler. from psychopy.visual.window import Window from psychopy.visual.slider import Slider mywin = Window() vection_scale = Slider(mywin, ticks=(1, 100), labels=('No…
Kathia
  • 502
  • 2
  • 7
  • 20
1
vote
3 answers

Actual view's height is not fitted to proper content

I have an ImageView, it shows an image from resource. ImageView's widht is fixed (60dp). Height is set as wrap_content. The image is resized to fit to this width (saving aspect ration - this is perfect) The problem is that android sets actual height…
Solvek
  • 5,158
  • 5
  • 41
  • 64
1
vote
0 answers

Is there plotly option to use custom axes scale?

I would like to use a custom axes scale in Plotly (for use in Python) other than the linear and log scales available. An example of this in matplotlib is here: https://matplotlib.org/3.1.0/gallery/scales/custom_scale.html Does plotly have something…
Matthew Reid
  • 332
  • 2
  • 9
1
vote
1 answer

Android Resize all elements for different screen sizes

I am trying to design my app so it should look the same on all devices big or small, is this possible. This is a sample I am playing with to attempt it:
1
vote
1 answer

Moving absolute red dots when zooming an image

I have a little problem I can't seem to solve. I have an image that I scale with an input range. I go from 100% width to 150% width. The problem is that I have on this image divs in absolute position that have to change position when I scale the…
Beda
  • 107
  • 1
  • 11
1
vote
1 answer

Konvajs scroll to the center of layer

I'm a little stuck on this problem. I would like to scale based on the center of the layer rather than a mouse pointer. Heres the Konva demo I got this from…
codernoob8
  • 434
  • 1
  • 9
  • 24
1
vote
1 answer

Scaling the y-axis in ggplot in R continuously with outliers

I have a question regarding the visualization of data using ggplot in R. Specifically, regarding the scaling of the y-axis in case of outliers. Let's start with a sample dataset with observations from 31 IDs. 30 IDs are in an expected range and…
user213544
  • 2,046
  • 3
  • 22
  • 52
1
vote
0 answers

scale in Circular plot

I want to know how you can generate a scale as this picture, I am currently doing a similar figure but the scale is the only thing I can't handle.
1
vote
1 answer

Plotting a Secondary Y axis when Log Transformation in Primary needed

I m trying to plot a line graph with two axes (see pic). I tried many ways from examples taken from here but nothing worked. The left axis must be Log10 while the secondary (right) normal. Also, I do need to set their limits. All data come from a…
dplazas
  • 23
  • 8
1
vote
0 answers

How to Scale a datePicker in java using a DatePickerSkin

What I'm trying to do is to scale a popup content of a javafx.scene.control.DatePicker using javafx.scene.control.skin.DatePickerSkin to add an scale, DatePickerSkin skin = new DatePickerSkin(datePickerFrom); …
1
vote
2 answers

XNA - Global Zoom

I'm trying to allow zoom with the mouse scroll and pass a zoom value into each of my drawable objects. Each drawable object takes the zoom value and uses the scale parameter of the SpriteBatch.Draw method. Zooming each individual item though doesn't…
Joshua Belden
  • 10,273
  • 8
  • 40
  • 56
1
vote
2 answers

SwiftUI Text.minimumScaleFactor(...) does not scale text properly?

In SwiftUI, I'm trying to use minimumScaleFactor to adapt Text size automatically. It looks like it has curious behaviors. For ex, it works with usual characters but fails with accented characters. I'm searching for a solution without arbitrary…
Spi
  • 436
  • 4
  • 16
1 2 3
99
100