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
1 answer

Lua / Love 2d : Scale Image with pixels

Hello ! With Lua and Love 2d, I'd like to resize an image with pixels : img = love.graphics.newImage("assets/bg.png") -- resize the image (500 x 400) function love.draw() love.graphics.draw(bg, 0, 0) end
1
vote
2 answers

How can I rescale dataframe so each row have magnitude of 1 in R?

This is sample of my matrix and my code. I want to rescale my dataframe so that the each row has magnitude 1. I'm new to r and in the tutorial the instructor said "divide each element of a row by the magnitude of the row." however I'm not sure how…
1
vote
2 answers

eqscplot equivalent in ggplot2 for maps (geom_sf & coord_sf)

I'm looking for a ggplot2 equivalent for eqscplot (package MASS) that can fill the entire plot window while maintaining the scale within a map in a ggplot. There is coord_fixed where cartesian coordinates can be set with fixed ratios (argument…
Lalochezia
  • 497
  • 4
  • 15
1
vote
1 answer

How to set the number of y-axis values displayed when faceting

I have a faceted bar graph. dat <- data.frame(ID = c("A", "A", "B", "B", "C", "C"), A = c("Type 1", "Type 2", "Type 1", "Type 2", "Type 1", "Type 2"), B = c(1, 2, 53, 87, 200, 250)) ggplot(data = dat, aes(x…
1
vote
1 answer

To Draw a measuring scale like UI in actionscript

Hi how to draw a line with numbers and the tick intervals as in a measuring scale. some thing like this image
Arulmurugan
  • 107
  • 1
  • 12
1
vote
0 answers

Rotating and scaling a drawable using android ObjectAnimator

I saw a few examples of using an ObjectAnimator to rotate and scale an ImageView. However I want to rotate and scale a Drawable for API below 21 (So I cannot use AnimatedVectorDrawable). It doesn't have setRotation and setScaleX like an ImageView…
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
1
vote
1 answer

Python Graph showing incorrectly

I'm trying to create a Python programme which will show the following data about Covid-19, all from a CSV file: cases per day total cases deaths per day total deaths I'm reading the data from a file and populating 4 arrays with the info. I can…
Scotty55
  • 23
  • 3
1
vote
2 answers

Flutter: How to set a max/min scale using matrix_gesture_detector

Im trying to make a Column scale/movable. But how can I set a max zoom and a min zoom? So that you don´t zoom to infinity. Using this method right now: Matrix4 matrix = Matrix4.identity(); MatrixGestureDetector( shouldRotate: false …
Adrian FG
  • 23
  • 1
  • 5
1
vote
1 answer

Factor variable to Likert Scale - how to convert properly

I've collected the data on participation and identity. I used a web-survey (via Google Forms), and there are some problems with data conversion for my regression... My variable where I used the Likert Scale (strongly disagree - 1, strongly agree -…
rg4s
  • 811
  • 5
  • 22
1
vote
1 answer

How do I make the y axis of a histogram both logarithmic and percentage?

I am trying to make a histogram in ggplot2, and I'm trying to make the y axis both logarithmic and showing percentages, to get it as 0.1%, 1%, 10% etc. My dataset is 60.000 samples but I hope this kind of captures it: -0.0651 -0.0649 …
1
vote
1 answer

125% Windows 10 scale in web

Some clients using Windows 10 have set the screen scale to 125% or 150% (see screen resolution in Windows). When they visit my website they can not see some content unless they change the scaling settings to 100%. Is there any chance of fixing it…
1
vote
1 answer

Responsive layout: stretched images on Safari

this is my layout. The desired behavior is that when I resize the window vertically the image scales maintaining the original aspect ratio. My code works very well in all browser except Safari (you can see it by trying the snippet in different…
Samuele Rizzo
  • 173
  • 1
  • 3
  • 8
1
vote
1 answer

How to increase shards using Vitess

I have 4 shards in 4 different physical server. -40 40-80 80-c0 c0- Now I want to add two more shards. How can I change key range and split the data.
Don
  • 97
  • 1
  • 1
  • 8
1
vote
2 answers

How do you calculate the number of times to call $( '#el'' ).scrollTop( 1 ) to traverse a div height of 759?

Update: I've created this Code Page demo to show what I'm talking about. This demo shows two methods, the first is the brute-force method and the second is Robert McKee's method. With the first method, press the Scroll to End button to derive the…
user2505564
1
vote
2 answers

Scaling in matplotlib.pyplot?

I am generating planar coordinates within the range (x,y) in [0,500]x[0,500]. When using matplotlib.pyplot to visualize them, the axes only show the part that contains already generated points. How can I scale the axes so that they correspond to…
ihdv
  • 1,927
  • 2
  • 13
  • 29
1 2 3
99
100