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

Scale text in WPF

How can I automatically scale text inside a control based on the control's size but always make sure it's readable (that is, I want the font size stays between 9pt and 30pt)
Chris
  • 357
  • 4
  • 16
1
vote
0 answers

Modal animation not firing off on click with vanilla JS

I am currently trying to give my modal(s) an animation when the button is clicked. This is the code I've found https://codepen.io/designcouch/pen/obvKxm, and I would like to replicate the animation called sketch I have applied it to my code, a bit…
1
vote
1 answer

exclusive scale to each x in geom_tile

I was trying to do a heatmap where each column has itself scale_fill_discrete. Below all my tentative. I'd like each key sharing the same plot but with itself scale, the closest I could do was the last…
Aureliano Guedes
  • 767
  • 6
  • 22
1
vote
1 answer

Vega-Lite - Error in the scales of circles and lines

I'm trying to use Vega-Lite to do a plot similar to a graph, where nodes are connected to other nodes by edges. The nodes vary in size according to a variable,while the edges width also vary. The information for the nodes is stored in a different…
Davi Barreira
  • 1,597
  • 11
  • 19
1
vote
1 answer

categorical data with D3 scale

I am trying to plot the data with d3. My data looks like this: dataset = [ ["HBO", 23, "tv show"], ["HBO", 45, "movie"], ["Hulu", 40, "tv show"], ["Hulu", 56, "movie"] ] I am using scaleLinear() for numerical data (d[1]) and scaleBand() for…
Chique_Code
  • 1,422
  • 3
  • 23
  • 49
1
vote
1 answer

Gnuplot: How can I change the y axis so there are not too large jumps in data

as you can see below the yaxis has a large gap between 0 and 6*10^5... is there a way to fix that? There should also be data below zero but the scale doesn't show it. The plot I'm talking about:
1
vote
1 answer

How do I create a scale matrix for rescaling a PyTorch tensor, and then how do I use it?

I need to create a scale matrix that is autograd compatible, works on B,C,H,W tensors, and takes input values (possibly generated randomly) for controlling the scaling. How can I generate and use a scale matrix for this? import torch import…
ProGamerGov
  • 870
  • 1
  • 10
  • 23
1
vote
0 answers

Scale operator in VBA

So, the word "Scale" in VBA is reserved and marked in blue (I cannot use it as function or variable name). But I cannot find it mentioned anywhere or any documentation on what it does. It seems to expect input in the following form: Scale (a, b)-(c,…
drgs
  • 375
  • 2
  • 8
1
vote
0 answers

DPI Awareness strange behavior per different DPI scale factors

Can someone explain this strange phenomenon? Created a Winforms application .NETFramework 4.7. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; Created a panel and set its…
1
vote
2 answers

Add an additional staple to geom_col with value zero R

I have a dataset of different species and different damage. As you can see in my data, I only have two different "damages" in my code, but in a matter of fact, I got three different "damages". I want to plot my data and for each Species (Wolf, Bear,…
paula456
  • 101
  • 9
1
vote
0 answers

How do I make it so that an image scales up while scrolling but once it reaches a certain size the page scrolls down?

Essentially I really want to get this effect (http://ussr.obys.agency/1922-1930/) scroll down to the section titled GOSPROM. This website does the same thing (https://www.reformcollective.com/) I want to have it scale up until the photo in the…
1
vote
1 answer

How to map a two-dimensional density plot onto a photograph

I have a two-dimensional density plot which I need to overlay onto a photograph. I can read-in the picture with the package rtiff: install.packages("rtiff") library(rtiff) x <- readTiff('F01_screenshot.tiff') plot(x) The data for the density plot…
Chris Ruehlemann
  • 20,321
  • 4
  • 12
  • 34
1
vote
0 answers

Zoom function for an entire page

I am making a website with a multipage google-doc-like user interface and want to allow the user to "zoom" or change the scale of everything on the page with "zoom in" and "zoom out" buttons. At first I tried to achieve this by styling everything…
Daniel M
  • 11
  • 1
1
vote
1 answer

How to move a window to another screen with a different scale?

I have these two screens: 1080p, 100% scale. Bound: {3840,0,1920,1080} Native bounds: {3840,0,1920,1080} 4k, 200% scale, set as primary. Bounds: {0,0,1920,1080} Native bounds: {0,0,3840,2160} Now, let's suppose that a multi-DPI aware app…
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
1
vote
0 answers

Resizing multiple elements relative to a vertex?

Context: I am building a design tool and have a group resizing feature. Video: https://share.getcloudapp.com/v1ux6247 What should happen: https://share.getcloudapp.com/5zuweGnG CodeSandbox:…
Michael Joseph Aubry
  • 12,282
  • 16
  • 70
  • 135