4,553 questions
Best practices
1
vote
2
replies
82
views
CSS transform (scale) vs. zoom
I use
<div class="flex">
<div class="box">
<img [...]><br>
ab
</div>
<div class="box">
<img [......
0
votes
0
answers
54
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 (...
-1
votes
1
answer
77
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 ...
5
votes
2
answers
266
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 ...
2
votes
2
answers
173
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 ...
-2
votes
1
answer
85
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 *
...
0
votes
2
answers
207
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 ...
-1
votes
1
answer
65
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 ...
1
vote
0
answers
108
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 ...
0
votes
0
answers
59
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 ...
0
votes
0
answers
100
views
WPF Image Zoom with scale shader around specific point
I've an WPF Image control, which use scale shader for zooming around center of the image (ScaleCenter is always 0.5,0.5).
But for zooming around specific point on the image (cursor) I guess i should ...
2
votes
1
answer
109
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 ...
3
votes
1
answer
121
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 ...
0
votes
0
answers
69
views
Preprocessing Data with Scale and then Binarize in Python
I am working on some proof of concepts for ML and want to try an unusual scaling method. I would like to group my data and then "scale" it and apply a binarize to that data. Basically I ...
2
votes
0
answers
77
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 (...
0
votes
0
answers
28
views
SoHandleBoxDragger bounding box flickers when one side thickness is less than 50cm
I am quite new to Open Inventor and I am trying to create a very thin bounding box where thickness along an axis can be as small as 1cm.
My scenegraph is as follows:
root (SoSeparator) -> mySep (...
0
votes
1
answer
62
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 ...
0
votes
1
answer
150
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 ...
1
vote
1
answer
188
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 ...
0
votes
0
answers
51
views
How do I scale a plot in matplotlib such that the tick marks are precisely 1 inch?
I am trying to make a graph where the plot outputs the correct scale as measured by the tick marks, not the overall figure size (which includes things like the margin around the graph).
How do I set ...
0
votes
1
answer
112
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:...
1
vote
2
answers
57
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 ...
0
votes
1
answer
112
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, ...
0
votes
3
answers
105
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 ...
0
votes
1
answer
112
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 ...
2
votes
2
answers
120
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 ...
0
votes
0
answers
50
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 ...
0
votes
1
answer
69
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 ...
2
votes
1
answer
747
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 ...
0
votes
0
answers
14
views
Ternary plot with values large axis values
is it possible to create a ternary plot with values larger than 100? I'm trying to plot the relationship between annual minimum temperature, maximum temperature, rainfall and tree height (as heat ...
0
votes
0
answers
147
views
Understanding boundary margin property of the interactive viewer
I want to create a scalable/panable view in flutter but I want to set a minimum scale, so that the user doesn't 'loose' the view by accidentally making it to small/pans it out of bounds. I decided to ...
4
votes
0
answers
187
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 ...
1
vote
3
answers
77
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 ...
1
vote
1
answer
80
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 ...
1
vote
1
answer
67
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(...
0
votes
1
answer
34
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 ...
1
vote
0
answers
54
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)...
0
votes
0
answers
79
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 = ...
2
votes
1
answer
149
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 ...
0
votes
1
answer
95
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 ...
1
vote
1
answer
126
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 ...
1
vote
1
answer
97
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 ...
0
votes
1
answer
54
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 ...
0
votes
1
answer
99
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 =(...
0
votes
0
answers
62
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-...
0
votes
1
answer
59
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 ...
0
votes
1
answer
126
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 ...
0
votes
0
answers
70
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 ...
0
votes
2
answers
123
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&...
0
votes
1
answer
211
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 ...