4,543 questions
Score of 0
1 answer
93 views
Outline is not rendered in Firefox if scale is too small
Consider the following code snippet. When the scale is set to more than 0.5, the outline is visible. When it is less than 0.5, the outline is missing. At exactly 0.5, the outline is strangely only ...
Score of 5
1 answer
182 views
Problem when transforming the axis scales of a graph from gratia::draw
Using this example, transforming the axis scales reveals unwanted white lines. How can this problem be solved?
library("mgcv")
library("qgam")
library("gratia")
library(&...
Score of 1
2 answers
125 views
How to make a nonlinear color bar?
I have a data file which has a lot of data between [-5:5] and some extreme data with values around -20. If I use a linear color scale, the smaller magnitude data cannot be seen on the plot. So I am ...
Score of 1
1 answer
84 views
Stopping fixed div from going off screen after being resized
I have a div that is fixed and contains an img inside to display images, but it shows images that are different sizes, and that means it goes off screen when it tries to display vertical images
how do ...
Best practices
1
vote
2
replies
135
views
CSS transform (scale) vs. zoom
I use
<div class="flex">
<div class="box">
<img [...]><br>
ab
</div>
<div class="box">
<img [......
Score of 0
0 answers
92 views
Why does Apple iCloud CalDAV always return 400/405 on PUT (creating events)? Is iCloud CalDAV write-protected?
I’m trying to create events on an iCloud Calendar using CalDAV.
READ operations work:
PROPFIND → OK
REPORT (get events) → OK
Authentication with app-specific password → OK
But every PUT request (...
Score of -1
1 answer
91 views
How do I scale and translate my Pentagons properly?
I am trying to finish a program that will take the world coordinates of polygons, in this case pentagons, and scale and translate them from a world size of 1280x720 so they are drawn based on the ...
Score of 5
2 answers
292 views
Zoom-by-slider goes awry when binding the slider to the scale property
Intro
The following code demonstrates the Zoom and Drag functionalities of an ImageView in a viewport. Zoom can be adjusted either by scrolling the mouse wheel or through a Slider. Meanwhile, dragging ...
Score of 2
2 answers
206 views
How to make by buttons all be uniform size and centred?
I'm currently making a website and I want to include these buttons, as I have them in my design:
Screenshot of website design
They are all of the same size, equally spaced out and centred across the ...
Score of -2
1 answer
99 views
Tkinter Volume scale/slider doesn't set volume
I have a slider to change the volume on my PC when I change the scale. However, it doesn't set the volume at the moment and I don't know why. Can someone please help me?
My code:
from tkinter import *
...
Score of 0
2 answers
347 views
CSS transform-scale does not work on Safari on iPhone 17 Pro iOS 26
My webpage utilises the transform/scale() function to downsize it for mobile devices. While it works quite well on most of the test devices, it breaks on iPhone 17 Pro iOS 26.
The webpage loads zoomed ...
Score of -1
1 answer
92 views
Kubernetes HPA algorithm [closed]
i have 2 questions:
1 - i'd like to know if i can set my hpa to compare the limits resources instead of the requests resources with the target utilization i choose for memory and cpu(i'm using normal ...
Score of 1
0 answers
120 views
React + pdf.js: PDF reloads/disappears when starting “calibrate from two points”; can’t change pages afterward. PDF Construction drawing scaling
I’m building a browser tool that shows big PDF blueprints and lets you measure, with a “Set Scale → Calibrate from two points” flow (click two points on the sheet, enter the real-world distance, and ...
Score of 0
0 answers
87 views
Line chart> (swimlane/ngx-charts) In zoom-in mode, the chart marker is displaying the value of the next data point instead of the selected one
1. Marker Display Issue in Zoom-In Mode
When zooming into the line chart, the marker/tooltip is showing the value of the next data point instead of the currently selected one.
2. Tooltip Position ...
Score of 2
1 answer
145 views
Change of basis for log-log plotting, grid in log-scale
I want to plot in log scale in both axis, when using the default base, the graph plotted is correct, but since the y variation of my data is small I would like to change for base=2, when I does this ...
Score of 3
1 answer
131 views
How to set the width of boxplots with custom quantiles?
For these boxplots with custom y quantiles and centered on the medians x_q50, how to set their width based on given x quantiles (e.g. based on x_min and x_max, or x_q025 and x_q975...), while having ...
Score of 2
0 answers
133 views
Scaling QGraphicsPixmapItem with Qt::FastTransformation mode fails
I am using the C++ Qt Graphics View Framework to display an image and different shapes in a view. I am also trying to apply scale the view. However, I found that for some combination of image width (...
Score of 0
1 answer
77 views
Can you decrease the scrollbar track length with CSS
Hopefully a simple question, but I can't find an answer.
I have a vertically scrolling element within a wrapper with radius corners, giving the appearance of the scrollable element being viewed ...
Score of 0
1 answer
180 views
Unable to scale an Azure appservice plan
In my appservice in Azure I'm trying to convert from a free service to a paid service. When I do so, no matter what plan I choose I get the following error message:
Scale operation failed: This ...
Score of 1
1 answer
308 views
Is there a way to add an axis break in ggplot using scale_y_break
I am looking to add an axis break in ggplot at 1.0 to 2.5 on the Y scale with the top break smaller than the bottom break such as in the photo below.
But when using the scale_y_break(c(1.0, 2.5)) it ...
Score of 1
1 answer
127 views
How can I modify my scale on my graph axis
I am very new to coding and currently attempting to make a graph (and I'm almost there). The issue is on the Y axis, the scale shows each point but I would just like the scale to read 0:00, 6:00, 12:...
Score of 1
2 answers
59 views
Trying to animate background element by hovering foreground element in SVG. I suspect I need :has() for that but can't figure out how
In my original code, both squares pulsate when hovering anywhere on the SVG canvas. But I need them to pulsate only when hovering over the smallest square. I suspect that :has() could solve this but ...
Score of 0
1 answer
208 views
Android Screen zoom setting ruins React Native app arrangement
My react native app looks out of scale if you increase "screen zoom" and font size in adroid settings.
Though I use 'react-native-responsive-dimensions' library for every scale in the app, ...
Score of 0
3 answers
121 views
How to scale an image to fit within a flexbox within a gridbox
I want to create a "dashboard" page that uses all the available space in the browser window. The browser window will be divided into two equal-width sides. The right side space will contain ...
Score of 0
1 answer
140 views
Log scale equivalent for values around 0
Is there a way to have a graph where axis are in a pseudo log scale for values between -1 and 1? I would like to have -1, -0.1, -0.01, 0, 0.01, 0.1, 1 to be equidistant on the axis.
What would be ...
Score of 2
2 answers
160 views
How to scale points in scatterplot by area
How can I scale the points in a Stata scatterplot by another variable? (I would like to get the area of each point, so I would like to scale by the area, or the square root of the variable, but this ...
Score of 0
0 answers
60 views
Oversized text in a static page
I’m currently working on a weather app, but when I was doing the design, I ran into a problem with the space around a large character. In the image below, I’ve centered the section with the degree and ...
Score of 0
1 answer
75 views
How can I copy & past a curve in yyaxis right to other plot for comparison in Matlab plot?
I drew two curves in a plot; permeability and impedance.
And then tried to copy & paste the same-type curves to compare 1:1.
But the curve in yyaxis right is linked to yyaxis left, and I don't ...
Score of 2
1 answer
1083 views
MAUI: Resize all view components by default to handle different screen sizes and densities
I'm working on a .NET MAUI application where I need to apply scaling to all visual elements by default to handle different screen sizes and densities.
This is because I developed my app on an Android ...
Score of 4
0 answers
260 views
Java virtual threads and kafka streams
We have built real time data processing pipelines on kafka topics in the past with kafka streams technology. But we were always limited by the number of partitions on the kafka topic for concurrency ...
Score of 1
3 answers
90 views
Custom scale_color with gradient and manual value
I want to build a ggplot with a color gradient containing an exception.
For instance, say that I want the gradient to go from blue to black, but with the special value 21 being red.
This can be done ...
Score of 1
1 answer
89 views
Specify asymetrical breaks in `scale_fill_stepsn()`
I want to add a stepped gradient for the fill aesthetic, with specific colors for specific intervals.
For instance, I'd like red between 0 and 15, blue between 15 and 18, etc.
Here is the closest I've ...
Score of 1
1 answer
76 views
How to transform an x-axis scale both right and left of a density peak to zoom in with R?
Consider the density histogram of the depth variable from the diamonds data.
dat0 <- ggplot2::diamonds %>% select(depth)
gg0 <- ggplot(dat0, aes(x = depth)) +
scale_x_continuous(limits = c(...
Score of 0
1 answer
44 views
Matplotlib does not consistently transform plotted elements with plt.xscale('log')
When plotting data, vertical line gets incorrectly transformed by matplotlib. With linear x axis, my curve and the vertical line pointing to a specific location on the curve match perfectly.
After ...
Score of 1
0 answers
62 views
"scale from center of rectangle" not work with world transform matrix
I have a qtquick project with a main.qml and an EaDrawArea which inherits from QQuickPaintedItem and is accessible from the main.qml. there is a Slider in the qml which is binding to m_scale (3 to 100)...
Score of 0
0 answers
85 views
C# Winforms Dialog Cropped When Display Resolution > 100%
I have a fixed dialog where the right half is hidden under certain circumstances, and I handle this in the _Load event:
_Mru = Crud.MruTableMethods.GetMruTables();
if (_Mru == null)
{
this.Size = ...
Score of 2
1 answer
195 views
Why doesn't scale_shape_manual behave in the same way as scale_color_manual and scale_fill_manual?
Say I have a data frame like myiris below, where I want to just highlight the setosa species.
I don't want, however, the other species to show in the legend. For my convenience, I just made all the ...
Score of 0
1 answer
111 views
Windows form size is not the same after publish
I am developing a windows form application with c# language on visual studio. I am using the Devexpress infrastructure.
After changing my computer, I installed the same versions of Visual Studio and ...
Score of 1
1 answer
140 views
How to create flipped grouped violin plot with facet_grid with keeping same proportions of violin plot with ggplot2 in R
I want to create a flipped violin plot (with extra points for group means in geom_point() and lines from min to max values in geom_segment() ). I integrated the groups as facets with facet_grid().
The ...
Score of 1
1 answer
112 views
Is there a CSS property that rescale any element like the object-fit: "contains" does on img?
Is there a CSS property that scale down an html element that has a fixed dimensions when the windows size is lower than the size of the content ?
In other words the content should scale down (and keep ...
Score of 0
1 answer
60 views
How can I make slider work correctly if it gets scaled with transform:scale()
I have a jQWidget slider on a page, but the same problem exists with the jQuery slider. If I set a transform: scale(0.7) to any element above in the hierarchy, the slider does show not the correct ...
Score of 0
1 answer
103 views
Changing Font Size
I would like to know how can I resize text font in Text widget in Tkinter without resize text box.
Here is my code:
from tkinter import *
root = Tk()
def font_size(value):
text.configure(font =(...
Score of 0
0 answers
65 views
Shaking text in textPath svg at the end of the scale animation
UPD: Suddenly the solution has come: one more animation, but for .warning text, which is "parallel" to the scaling of the .wrapper:
.warning text {
animation: transformTextInSvg 1.5s ease-...
Score of 0
1 answer
66 views
How to customize y-axis labels with steps - not the same size - in R, to zoom in by also changing the scales of the axis
I have a question. Since i'm very new to R and data visualisation, I hope I can ask correctly.
I'm trying to visualize a 0 - 100% simple barchart but the part between 60 - 100% is the most interesting ...
Score of 0
1 answer
161 views
Shrink an image to fit remaining space at bottom of web page
I want to display a photo underneath some text. I want the photo to be centered horizontally, and to shrink as necessary to fit the remaining rectangular space between the end of the text and the ...
Score of 0
0 answers
96 views
Perform transform on svg viewbox
I have a need to scale SVG's using javascript. This is part of a workflow so I'll be processing these endlessly in a browser.
The issue is the incoming SVG's viewbox is 0,0,14032.00mm,9922.00mm which ...
Score of 0
2 answers
180 views
Pass colors properly to manual scale in ggplot2 with multiple layers
I have a relatively complex ggplot2 plot with different layers: geom_line, geom_segment, geom_point and geom_text...
This is my MWE:
myseq <- "ACGTCAGTCGTAGCTAGCTAGCTGCATTATCGATCGATCGATCGA&...
Score of 0
1 answer
244 views
Css transform zoom in and out scrolling issue
I have 3 divs with the transform being on the 2nd div which has a div inside of that. I have added zoom in and zoom out buttons but when I zoom in I can't scroll all the way to the left and top but ...
Score of 1
1 answer
101 views
How do I use Scale= on buttons to make them smaller and keep tight spacing?
When I use Scale= on buttons to make them smaller the spacing increases.
For example:
This shows the buttons on the same line spaced the way I want.
<ScrollView Orientation="Both">
...
Score of -1
1 answer
127 views
Why use scale() on canvas?
I was using canvas when I saw an image painted on canvas showing blur. I found the cause and solution to this. However, there is something I don't understand. It's context.scale().
I don't know in ...