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.

1
vote
1answer
48 views

d3 js boxplot with log scale

I'm here referring to this reproducible example http://bl.ocks.org/jensgrubert/7789216 but applied to the following dataset (csv) "Q1","Q2","Q3","Q4" 0.43,30,0.42,0.3 19,2,15,14 41,46,28,100 8,1,0....
0
votes
1answer
34 views

Using scale() for z transformation in R

So here is my data frame time value 1 118.8 2 118.2 3 116.7 4 115.3 5 114.4 . . . 1000 113.5 1 113.1 . . . 1000 112.1 1 112 . . . 1000 113 I ...
0
votes
2answers
18 views

How to rotate and scale a picture when hover? [duplicate]

I can't figure out how to rotate and scale a .png at once when the user hovers above it. Right now it scales only when I hover on the picture. I know that scale overwrites the first tranform but I can'...
1
vote
1answer
18 views

D3js make y axis height 100

I've got this D3js line graph here: http://jsfiddle.net/90pgka1f/7/ It works fine except I'd like the y-axis range to go from 0-100. Currently the top of the y-axis just goes to whatever the highest ...
0
votes
0answers
20 views

Swift AVMutableVideoComposition scale and center calculation

I am scaling a AVMutableVideoComposition to fit my full screen view. When I do this it scales from the bottom left corner so I am trying to center it. here is my code... let scale = max(...
0
votes
0answers
30 views

Read weight from weight scale to mobile phones via BLE - bluetooth

I need to read a weight from a weight scale via bluetooth in Android. But, I receive this response C�. I tried changing charset to UTF-8, US-ASCII, and more. But, they only change the letter and ...
0
votes
1answer
13 views

Java Batik resize SVG to panel size keeping aspect ratio

I'm trying to display an SVG Image on my swing application, since i don't have an SVG file but a path i'm converting the path to a valid svg document with: private static Document buildSVGDocument(...
6
votes
1answer
293 views

Source file is correct, actual print is moved to the right and bottom using system.drawing printing

I've inherited an application created by people who are no longer working for my employer and I'm looking into a printing issue where the output (slightly) falls off the page. It should be: But it ...
0
votes
0answers
9 views

Preserver line thinkness during canvas draw android

I am trying to preserve line thickness and dash path effect with following line Paint code but when scaling grow Inside onDraw() mCanvas?.save() mCanvas?.scale(scaleFactor,scaleFactor,...
1
vote
0answers
20 views

iOS 12 safari can not prevent pinch scale with “touchmove” eventlistener when scrolling

I add this code document.addEventListener('touchmove', function(event) { if (event.touches.length > 1) { event.preventDefault(); event.stopPropagation(); } }, { passive:...
0
votes
0answers
15 views

Prepare Date for Clustering in R

For my thesis I have to cluster the wholesale customers dataset of the UCI repository (440 observations and 8 variables) with kmeans and mclust in R. Unfortunately I have no experience in R. First of ...
0
votes
0answers
21 views

Internet Explorer doesn't properly scale svg inside flex-box

I have an inline svg with a viewBox. When the svg is wrapped in a div, which is then inside a flexbox, the dimensions are not calculated properly by IE(11). Here is a example of the issue: HTML: <...
0
votes
1answer
30 views

Case dependent scaling of plot size in ggplot loop

I am running a several ggplot barplots in a loop, including added text on top of each bar. I have defined plot scale via coord_fixed and expand_limits. Unfortunately, the y-axis differs from plot to ...
-1
votes
1answer
31 views

sql - result decimal precision and scale when calculating average

If i have a column with datatype decimal(p,s) what is the standard for expected result's precision and scale when i execute average aggregate.? i.e result = select avg(decimal(p,s)) from table1; ...
0
votes
1answer
21 views

Android: How selection of thumbnail replaces main image

I have a selection of thumbnails. On selection the thumbnail image replaces the main_image. My layout is: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://...
0
votes
1answer
13 views

wpf FrameworkElement.width Animation

I put my rectangle on the Canvas at the wpf. We gave doubleAnimation using "FrameworkElement.With" to this rectangle. If you try to change the rectangle width after completing the animation, it does ...
1
vote
1answer
39 views

Scale raster cell in stack from -1 to 1 R

I have a raster stack with 364 layers with a daily rate of change in NDVI values. I want to scale these values in every cell if positive from 0 to 1 and if negative from -1 to 0. So far I have only ...
1
vote
1answer
34 views

DPI scaling problem with hosted native HWND control inside WPF window

I have a high dpi setting on my monitor as the monitor is a fairly small 3840 x 2160 monitor. This is causing issues with one of the applications I am writing as I am hosting a control in my main ...
0
votes
0answers
38 views

Correct way of scaling data

I am using a TensorFlow to create a simple DNN model. When I am training my data I am scaling all the train data the following way: X_scaler = preprocessing.StandardScaler() X_standard = X_scaler....
-1
votes
0answers
37 views

GetWindowRect gives wrong values with scaling

Hello Dear Stackoverflowrians! A few years ago I made a small program for taking screenshots for personal use. It had served me well on my old laptop, but recently I got an ASUS ROG. But something ...
-1
votes
1answer
83 views

Mapping points on non-linear scale

I have a time scale (seconds) that starts at 0 and ends at 360. The width of the scale can vary—but let's say it's 240 pixels wide, making each each segment 40 pixels wide <--40--> |------|----...
0
votes
0answers
32 views

ggplot2 - common color scale across multiple plots

I have two dataset with different min and max values, see 'z' in the dataframes df1 and df2. Question: How do I define the colors for both datasets so the resulting plots, i.e. their colorbar scales ...
-2
votes
0answers
78 views

How can I scale QWidget without scaling its content when grabimage it?

I'm making a web browser with Qt 5.11. What I want is, when user changes the window size, say to 50%, the whole webpage just scale down to 50% with contents and font size. So say if user access ...
0
votes
0answers
22 views

Mimic browser zoom on web pages for Firefox

So, I have a web page that works perfectly on Chrome with the use of "zoom" but, as we all know, Firefox doesn't support that so...it's time to find a solution since the page is all messed up on ...
-1
votes
0answers
14 views

Replacement for scale and shift from pysparse.direct.superlu

I have this code from 2010 where I need to compute a LU factorization and I'm trying to update it in order to be easier to run for future cases. One already found in the documentation that scipy....
3
votes
1answer
72 views

D3.js - How to multiply a time domain by a scalar?

I've got a regular time scale: band.xScale = d3.time.scale() .domain([data.minDate, data.maxDate]) That I want to modify with a zoom: var zoom = d3.behavior.zoom() .scaleExtent([1, 10]) ....
2
votes
3answers
65 views

Calculate div width/height when inside a zoom/scale transform

I have a div inside another div with transform scale applied. I need to get the width of this div after the scale has been applied. The result of .width() is the original width of the element. ...
1
vote
3answers
41 views

Scale group of UIViews but keeping its position

I am trying to scale multiple UIViews at once with the pinch gesture(On the base view). Though it looked straight forward, I am facing hard time getting it working properly. Assume I have 3 views ...
1
vote
1answer
49 views

why does this code return -nan(ind)?c++

I'm trying to write a Scaler class that takes a child Test which has a Score. The Scaler uses it's child's score class's scale method to rescale its value (ex. 1/1 with scale 5 = 5/5 or 0/1 with ...
0
votes
0answers
10 views

resize text to page at an angle calculation

Say height of page is 800 pixels, width is 500 pixels. text is say 200 pixels long in total and 50 pixels high, degrees of text can be anything from 0 to 360 I need to scale up or down the text to ...
0
votes
1answer
38 views

ggplot2 horizontal barplot with gradient color fill and Discrete value supplied to continuous scale

I am trying to create horizontal bar plot and would like to fill bars using a color gradient, white for lowest value and darkest for highest value. First of all I created figure 1 through the follow ...
0
votes
2answers
36 views

Scale across multiple columns

I have a data frame with 160 columns and >30k rows. I would like to scale the values in each column but the trick is that each column belongs to one of three groups and the scaling should happen ...
0
votes
0answers
22 views

How to zoom out/scale page to 90% with css

I am having trouble with my website here https://www.customlogoshop.com When I use a device like a laptop, it is too zoomed in and when I zoom out to 90% it looks so much better. I used zoom:90%; ...
0
votes
1answer
28 views

how to scale gif image to fill full screen (all sizes)

I made a splash page with gif image as you see in this layout : <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android....
1
vote
0answers
40 views

Transform.scale() not scalling the given spaces

I have used Animated API to scale my center item of FlatListtwice the size and it's working perfectly. The problem is the margins or paddings are not being scaled causing center item to overlap with ...
0
votes
0answers
46 views

Mapbox: How can I get the scale of the zoomlevel from Mapbox?

Is it possible to get a list of meter correspond to zoom level of Mapbox? Just like listed below from Bing map: here
0
votes
0answers
14 views

Graphics2D.scale() doesn't save object's location in proportion while resizing the game window java2D

I am building a game with Java2D, and I want this game to be able to resize the game window screen to different sizes. The world map of this game is bigger than the actual screen so I added also a ...
2
votes
1answer
37 views

Extract used scales from ggplot2 object

I want to write a ggplot2 theme, that formats the x-Axis differently when the x-Axis contains numerical values or factors. Is it possible to detect which type of scale is used from within the theme ...
0
votes
2answers
114 views

Drawing a scale on semi-circle Swift/UIView

Imagine I am having a full semi-circle from 0 to Pi from the unit circle. There is a small number on the left side named min and a big number on the right side called max. There are both ...
2
votes
1answer
129 views

How to use MediaQuery to set scaleFactor for text in Flutter?

With MediaQuery I can get height and width of my Samsung S7 Edge screen size so I can work with it. But how to use MediaQuery to layout the multiple column dynamic text in ListTile? In my demo project ...
2
votes
1answer
72 views

After converting my FBX file to a .gltf, the model is incredibly small, why?

QUESTION: After converting my FBX file to a .gltf, the model is incredibly small, why ? I tried scaling the model with frontObject.scale.set( 1000, 1000, 1000 ); but I get the following error: ...
1
vote
0answers
12 views

Resize GameObject over time [duplicate]

Excuse me for any grammatical errors. I'm trying to gradually resize an object and I know how to do this but i'm having some troubles on the scale check, let me explain it better.. I'm using this ...
0
votes
1answer
38 views

scale in jssor slider

i'm fine with this scale code: var MAX_WIDTH = 2000; function ScaleSlider() { window.setTimeout(ScaleSlider, 30); } ScaleSlider(); $Jssor$.$AddEvent(window, "load", ScaleSlider); $Jssor$.$...
0
votes
0answers
19 views

change Legends(ScreenOverlay) for different eye alt in KML file

In the Google Earth application i'm working on, should be shown up different legends(ScreenOverlay) for different eye-alt positions. Something like a changing color-scale which represent the intensity ...
-1
votes
1answer
35 views

Issue on scaling a Canvas in Android

I have a code to scale drawing canvas. So i tried this code. i scale it but it moves down, here is my code: canvas.save(); scaleA = 1.1; scaleB = 1.1; canvas.scale(scaleA, scaleB); canvas.restore(); ...
0
votes
0answers
25 views

Kivy: Scatter makes text quality worse when scaling

if you have a label inside scatter, and you change the scale (especially when zooming in), you may notice that the quality of the text gets worse. from kivy.app import App from kivy.lang import ...
0
votes
0answers
19 views

R: Scaling x-axis in function 'spectrum'

I'm using the function 'spectrum' for frequency analysis of my data. My problem is that I don't understand how R scales the x-axis. I found in the documentation: The spectrum here is defined with ...
0
votes
0answers
18 views

Auto-Layout spacing gap resize view

I'm new to swift, i've been working on a .xib file layout for the past week, I usually don't have much trouble with any layout but I've encounter this problem here where i can't scale my layout to fit ...
0
votes
0answers
9 views

MotionEvent pointer positions are nuts when View is scaled

I'm struggling with some kind of a bug in MotionEvent class. I have the following code (it's just for obtaining pointers position): float currentX0 = currentEvent.getX(currentIndex0); float ...
0
votes
0answers
20 views

Stretch divs with images to fill empty space next to static-width sidebar

Screenshot of my current website. That site is created using a 'Stellar' theme (100% legal, bought) for WordPress. There is a lot of javascript/jquery dynamically changing sizes of containers etc., ...