Questions tagged [scaling]
The scaling tag has no usage guidance.
99
questions
3
votes
1
answer
69
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 ...
0
votes
0
answers
33
views
How to change plot scaling depending on the coordinate?
Consider the following functions:
f1[x_] = Exp[-(x/0.0003)^2];
f2[x_] = If[1.08 < x < 1.4, 0.003 Exp[-((x - 1.2)/0.2)^2], 0];
The first one, f1, is peaked at ...
5
votes
2
answers
152
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
230
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
52
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
100
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
61
views
Plot a line colored set by value of a different list
I have a model, see code below:
...
3
votes
0
answers
47
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
63
views
4
votes
1
answer
362
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
117
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
107
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
127
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
528
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
49
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
93
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
184
views
How to extrude a tapered shape (starting from a previous answer)
I have a shape given by
...
1
vote
2
answers
296
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
76
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
277
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
69
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
61
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
150
views
Scaling and Stretching a Mesh
I have a Voronoi mesh, given by
...
1
vote
1
answer
49
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
128
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
136
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
188
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
63
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
187
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
643
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?
7
votes
2
answers
252
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
293
views
3
votes
1
answer
162
views
Creating a mesh from a very thin layer
I have the following code which works just fine:
...
2
votes
2
answers
134
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
46
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
61
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
240
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
166
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
146
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
350
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
114
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
81
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?
...
3
votes
1
answer
185
views
Different intervals in 3D plot of multiple surfaces
I'm coming from R --hoping for better 3D graphs.
I have the following code and graph:
...
2
votes
1
answer
874
views
surfaces are being cut off
I read this, that and some others. However, I could not get it why some of my surfaces are being cut off (probably due to scaling). Here is what I have:
...
1
vote
1
answer
370
views
Extracting scaling factor and rotation angle from TransformationFunction
I have successfully transformed two 2D data sets (data1, data2) by using ...
4
votes
3
answers
490
views
How to rescale the axis on a graph to make it more readable
I am currently trying to plot an implicit function of the form $f(x,y) = 0$ in mathematica.
The example I am using is $f(x,y) = y^4 - 730 y^2 + x^4 + 3y^2 x^2 - 675 x^2 + 729$
However the function has ...
1
vote
0
answers
59
views
Getting the scaling right when printing to pdf
I have created a report in Mathematica containing Datasets, charts, plots and text. It looks nice on my screen, but everything becomes too large when I print it to PDF. How can I make everything ...
2
votes
1
answer
320
views
Rescaling ColorFunction for Heat Maps
I've been looking around example of rescaling color gradients but I couldn't find any workable solution for my system. I'm importing several .dat files and want to represent similar data with similar ...
0
votes
1
answer
149
views
ScalingFunctions scales ChartLegends and not the y-axes
I type in the code:
histogram = DensityHistogram[EnergyTable2, ScalingFunctions -> "Log10",
ChartLegends -> Automatic]
because I want to scale the y-...