Questions tagged [scaling]
The scaling tag has no usage guidance.
106
questions
2
votes
1
answer
35
views
Heatmap resolution issues
I am trying to plot a heatmap from the following code. I have a problem where the colour seems to stop before reaching the corners. Please can someone help me to make the colour run all the way to the ...
1
vote
1
answer
74
views
How to match sizes of objects among several Graphics outputs?
I want disks of equal size to be depicted the same size on different outputs of Graphics and at the same time images should be nicely clipped without any ...
1
vote
2
answers
85
views
How to scale x-axis logarithmically in ListPlot? [closed]
I am trying to generate a ListPlot, where both the x- and y-axes are logarithmically scaled. I managed to get the y-axes right, but I cannot get the x-axes to be logarithmically scaled.
...
2
votes
1
answer
46
views
Inverting y-axis with customized ticks
Consider the following tick-styling function
...
0
votes
0
answers
63
views
Why does FourierSequenceTransform of Cosine result in amplitude of 1/2?
Can anyone explain why my results with FourierSequenceTransform differ from the values in a table in my textbook?
The definition of Discrete-Time Fourier Transform (...
2
votes
1
answer
77
views
How to give a scale bar in microscopy image?
I have a Differential interference contrast microscopy (DIC) image
img = Import["https://i.stack.imgur.com/hfEZx.png"]
I have made some image adjustment ...
0
votes
1
answer
73
views
Scaling the X axis in numerical solution
I Have numerically solved these two coupled equations, but I need to know how to scale the x-axis in the plot by a factor of (1/20)
...
1
vote
1
answer
86
views
Equal space between log2 ticks on x-axis
I have the following set of data:
data = {{4, 2, 0.0001}, {8, 3, 0.0001}, {16, 8, 0.0001}, {31, 18, 4}, {63, 31, 8}, {125, 53, 3}, {250, 75, 4}, {500, 88, 2}};
(...
4
votes
1
answer
336
views
The implementation of "SignedLog" Scaling Function of `Plot`
I recently noticed that the Plot function has a new embeded scaling function SignedLog, which looks like the matplotlib ...
5
votes
2
answers
220
views
PDF export has inaccurate dimensions
Bug introduced in 11.2 or earlier and persisting through 13.0.0 [CASE:4895073]
The following code produces a 10x10 grid of numbers, each in a 20x6 mm cell.
...
3
votes
1
answer
373
views
Quadratic scaling of axes
The circular arc $$y=\sqrt{1-x^2}\tag{1}$$ becomes the linear function $$y'=1-x'\tag{2}$$ after substitutions $x'=x^2$ and $y'=y^2$. Here I restrict to arguments in the range $[0,1]$. How can I scale ...
0
votes
0
answers
60
views
Scaling y axis and plot
NOW,i plot a graph.I want to make the graph and y axis 10^6 times smaller,making the -5*10^6 to -5 in Y axis,at the same time,the graphy is not change.I'm going to change the vertical coordinate from ...
3
votes
1
answer
178
views
Image Collage with equal-sized labels
I've been trying to make an image collage, where each image in the collage has a text label in the lower-right corner (or wherever really), where the text is all the same size. Can't seem to make it ...
0
votes
1
answer
107
views
Plot a line colored set by value of a different list
I have a model, see code below:
...
3
votes
0
answers
66
views
How to use ScalingFunctions with Graphics ChartElements
How to draw spheres with BubbleChart with a reversed vertical axis?
The 3rd example shows the problem (empty plot), likely caused by the transformation, but how to correct it?
...
0
votes
1
answer
72
views
4
votes
1
answer
607
views
Rescale y-axis of listplot
I'm trying to make a plot that has a lower half of the y-axis going from 0 to 0.9 and an upper half that goes from 0.9 to 1.0. So that this second interval is zoomed. I've tried to do this with ...
1
vote
1
answer
261
views
Problem with Scaling Functions
I'm trying to build a BarChart off of a table of discrete data. I would like to use ScalingFunctions. Not working. Here is my ...
0
votes
1
answer
175
views
How can I use a logarithmic ScalingFunctions with ListContourPlot and DataRange? (i.e. no x- and y- inputs given)
There appears to be a bug in plotting, using ListContourPlot with ScalingFunctions->{"Log","Log"} and ...
2
votes
2
answers
155
views
Scaling contour plot according to domain shape/dimension AND bringing labels inside the domain
I am plotting temperature over a rectangular region of length $L$ and width $d$. $L>d$. The output of the contour plot is on a square.
(1) Can it be somehow adjusted to reflect the relative ...
12
votes
2
answers
723
views
InverseRadon behaves differently from iradon of MATLAB
I have to calculate a 2-dimensional radially symmetric distribution from a single projection.
I know that InverseRadon should actually do the job, but I get the ...
2
votes
1
answer
81
views
Partially log x-axis?
Sometimes using logarithmic scale for x-axis offers greater detail close to x=0 at the expense of loosing some of the details on the rest of your plot.
In the following working example one faces a ...
1
vote
0
answers
124
views
Custom Scaling Function for ListDensityPlot not working
I'm attempting to plot a data set with values that span multiple orders of magnitude, both positive and negative. I would like to use a logarithmic scaling to accurately capture this order of ...
3
votes
1
answer
231
views
How to extrude a tapered shape (starting from a previous answer)
I have a shape given by
...
1
vote
2
answers
551
views
Custom scaling of x-axis in ListPlot
I'd like to plot a list of the following form with a customized scale
data=ConstantArray[1, 1000]
The scale of x-axis is kind of non-linear. The first 500 ...
1
vote
1
answer
118
views
Plotting a function rescaled by a parameter along x axis
I would like to know, how to plot a graph, for example of this function:
$f(t)=-\frac{4 \sin \left(\frac{\gamma t}{2}\right)}{\gamma ^2 t}-\frac{4 \sin ^2\left(\frac{\gamma t}{4}\right)}{\gamma }-\...
0
votes
1
answer
369
views
QT scaling settings in Mathematica 12.1 on Linux
On my Linux (Manjaro KDE, QT version 5.14.2) machine with 1920 x 1080 screen resolution machine, if I launch Mathematica 12.1 from the terminal using the following commands, the notebook and window ...
0
votes
0
answers
115
views
How to change the plot scale?
How to change the top plot so that it looks like the bottom one?
I changed the range of X and Y but it always looks the same way.
I know, the formula is long :)
...
1
vote
1
answer
111
views
How to Resize/Rescale a Mesh?
Consider, for example, the mesh given by
mesh = VoronoiMesh[RandomReal[10, {6, 2}]]
Imagine I want to resize it so that it is framed in the $[0,1]\times [0,1]$ ...
2
votes
2
answers
215
views
Scaling and Stretching a Mesh
I have a Voronoi mesh, given by
...
1
vote
1
answer
60
views
Arbitrary correspondence between vertical axes
I am doing boxed contour plots of a quantity that depends on two variables. Let's call it f[A,B]. A will go to the lower horizontal axis, and B to the left vertical axis. I would like the two ...
3
votes
0
answers
148
views
Does Mathematica 12 scale with gnome display settings?
I currently have Mathematica 11.3, and while I really like the software, windows are too tiny on my laptop. My laptop has a 4K monitor, and I have to manually increase the magnification every time I ...
1
vote
0
answers
250
views
Reversing x-axis scale in ListPlot3D
I am trying to reverse the x-axis using ScalingFunctions but it's not working. I have a 3D plot with x, y and z scale in increasing order, but I want the x-axis to ...
4
votes
2
answers
237
views
Plotting tens of thousands of functions together on the same axes
I'm trying to plot a large number of functions together on the same axes. Each of these functions is the result from one iteration of a Monte Carlo simulation. Essentially, I'm varying parameters of a ...
0
votes
0
answers
90
views
How to scale the solution of NDSolve?
I need to scale the numerical result obtained from NDSolve in the x-direction, while the y-direction (function value) remains the same. For example,
...
1
vote
2
answers
239
views
How can I get a contour plot with isometric scaling? [closed]
ContourPlot[x^2 == 0.5 (y - 1) y^2, {x, -3, 3}, {y, 1, 3},
Axes -> True, Frame -> False, AxesLabel -> {x, y}, AspectRatio -> 1/3]
Mathematica 12 ...
3
votes
0
answers
685
views
Mathematica 12 blurry with High DPI 4k screen [closed]
Same as here. Everything very blurry. Maybe there is any new solution for Mathematica 12 under Windows 10?
8
votes
2
answers
490
views
Exporting image and scale
Let us say I have a plot, for example that one:
Plot[x^2,{x,0,5},AspectRatio->5]
and I would like to export it as a PDF in such a way that if I print the PDF ...
7
votes
4
answers
306
views
3
votes
1
answer
188
views
Creating a mesh from a very thin layer
I have the following code which works just fine:
...
2
votes
2
answers
187
views
Common scale for multiple plots
I want to plot an orthographic (as in "drafting" with top, side, and front view) of a complex sinusoid in time. Here's my attempt:
...
1
vote
0
answers
50
views
How can consistent scaling of ∧, ∨, etc., be accomplished?
I've added two examples of what the expressions I wish to reproduce look like:
Here ∧ serves both as a binary operator and as the universal quantifier. I know ...
2
votes
0
answers
77
views
How to get the events and holidays occurred on a list of dates?
I have a list of 100 unix timestamps and I am trying to get all the events occurred on that time. The following code get an abort signal when a has 100 timestamps. Another problem is that when I run ...
2
votes
0
answers
104
views
Increase vertex embedding distances e.g. scale VertexCoordinates
I currently try to make following graph more readable:
...
8
votes
1
answer
284
views
How to use reverse scaling function with error bars?
I have data which I would like to plot along with the corresponding error bars:
...
3
votes
2
answers
214
views
How to scale a vertical quantity (e.g., scaled offset) with the width of a plot?
As stated in the Mathematica documentation,
PointSize[d] is a graphics directive which specifies that points which follow are to be shown if possible as circular ...
4
votes
1
answer
181
views
How to preserve scaled circular shapes when combining graphics?
The following code
g1 = Graphics[{Thickness[0.01], Line[{{0, 0}, {10, 10}}], Disk[{5, 3}, Scaled[0.1]]}, Frame -> True]
produces the following output
I then ...
2
votes
1
answer
421
views
Normalizing smoothhistogram curves
I'm looking for a way to get two smooth histogram curves to have the same max height. The plots are usually scaled by area or something, however, the only way I've been able to find that works is a ...
1
vote
0
answers
150
views
How can I force the z-scale of a ContourPlot to plot between (0, 1) if the data is < 1.
I'm plotting reflectivity, transmission and absorption data as a function of wavelength and angle on a ContourPlot. I want all the plots to be between 0 and 1 for comparison. However, some of the plot ...
0
votes
1
answer
84
views
Incomplete ellipse due to StreamPlot command
I wrote the following in Mathematica code but the result was not the expected. As you can see it seems like just half of an elipse is there, what can I do to see the complete elipse?
...