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

YouTube API Flash Player Scale Issues

I have a swf file which loads the YouTube API player at 640px by 400px: function onPlayerReady(event:Event):void { trace("player ready:", Object(event).data); player = loader.content; player.cueVideoById( t***Path , "0" , "medium"); …
Carlos
  • 11
  • 2
1
vote
1 answer

Scaling axis with different decimal places in ggplot

I am scaling x axis with following code. > scale_x_continuous("", limits = c(0.1, 10), breaks = c( .1, .2, .4,.67, .8, 1, 1.25, 1.5, 2.5, 5, 10)) But in the plot, numbers overlaps with one another (see the pic: points 0.67 to 1.25). To avoid this…
Tashaho
  • 163
  • 1
  • 2
  • 11
1
vote
0 answers

Image Transformation [Mostly Scaling] issue with Google Cloud Textrecognizer when the Text have multiple blocks and lines

I am trying to make boarders about the frames of lines[Got from the google cloud vision text-recognition] on image in iOS Swift. I've got lines from block and got the frames of line by using line.frame code provided by google. I saw some…
1
vote
3 answers

Convert small numbers to a scale from 0 to 10

I have a list of urls->small numbers. numbers represents the importance of each URL url, value https://mywebsite.com/p/1, 0.00212 https://mywebsite.com/p/2, 0.00208 https://mywebsite.com/p/3, 0.00201 https://mywebsite.com/p/4,…
Dany M
  • 760
  • 1
  • 13
  • 28
1
vote
0 answers

How to make square plots using Geom_Area (GGplot)

I created 25 plots using the ggplots2 library and I'm especially interested in the Geom_Area function. However, I would like to create square plots, with wider x-axis instead of those small rectangle plots stacked next to each other. I used this…
Manfretto
  • 83
  • 5
1
vote
0 answers

Display Features based on Zoom Level using OpenLayers

I want to display roads(linestring) on the map using OpenLayers.currently, I manage to assign styling based on road type but when I run the server I can see all the data displayed. I want to change the way it displays feature. for e.g. CATA…
poonam patel
  • 135
  • 13
1
vote
1 answer

CSS scale of element by -50% without moving it from original location

I am trying to shrink an entire element by 50% while maintaining the same 1:1 ratio. However, whenever I use transform: scale(0.5); The element shifts down and to the right. I cannot figure out how to implement this 50% reduction in scale without…
mikekoscinski
  • 555
  • 1
  • 4
  • 14
1
vote
1 answer

Calculate/Predict the future center of a frame with SwiftUI

Swift 5.2, iOS 13 I want to predict/calculate the centre point of a frame after it has been scaled so I can move a shape to it while scaling it. If I try to scale and center an view in an animation/dynamically it doesn't work, with the end result a…
user3069232
  • 8,587
  • 7
  • 46
  • 87
1
vote
0 answers

What is the correlation between precision and setScale when creating a BigDecimal?

I learned that precision is the total number of digits in a value and scale is the number of digits after the decimal point. So as far as I understand the number 1234.56 would have precision = 6 and scale = 2. I also saw that when you define a…
1
vote
0 answers

Different YAxis scaling for LineChart with multiple data sets (more than 2)

I need a chart with multiple lines, and each of this line needs to have its own YAxis so it could scale to the full size of rgaph view. I know how to implement this with MP Chart if I have two data sets. But I need draw on graph up to 16 different…
1
vote
2 answers

Independently resizing children in Grid or Stackpanel

I have an image I want to display in a control in a touch application. As well as the image there is a textbox to display underneath it, as a tab, docked at the bottom left of the image. The tab has a lower width than the image. The user can resize,…
Will
  • 11
  • 3
1
vote
1 answer

SwiftUI: Four views of the same type all show as different sizes

I am creating an app that will let people keep score in board games. I created a view that contains the player name and their current score. I have my iphone layout set to landscape and don't care which layout is used on the ipad. The problem I…
Alemastr
  • 25
  • 3
1
vote
0 answers

WinForm scaling incorrectly for some users

I've written a program that I've used and have tested it on xp, win7 and win 10 with various resolutions. The main form displays correctly with the controls properly spaced as follows: Correctly Scaled Form However, when submitting it for review,…
Tim Fehr
  • 11
  • 5
1
vote
0 answers

How to scale a view AND its bounds in Android?

I created a custom view and am looking to scale the view AND it's bounds. Is this possible through the layout? Or maybe something I have to change in the CustomView's class? When I used scaleX and scaleY in the layout files, the image can shrink,…
Rayaarito
  • 400
  • 4
  • 21
1
vote
1 answer

Reading weight from scale with USB cable

I have system working in php, I try to get the data from scale TOLEDO S60 , in a Form HTML Using JAVASCRIPT, I try with Web USB API , but does't work this is my code: CONECTAR
Comadrexa
  • 21
  • 4