Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions on applying common nonlinear scalings to functions or data--useful for making sense of data which varies over a large range.
4
votes
Control plot range of logarithmic histogram
Maybe this?:
y0 = 10^-4;
Histogram[data, {0, 15, 0.1}, {"Log", "PDF"}] //
Show[
#,
ReplacePart[AbsoluteOptions[#, AxesOrigin], {1, 2, 2} -> Log[y0]],
PlotRange -> Log@{y0, 1},
PlotRangeCl …
5
votes
Accepted
Plot[Zeta[x], {x, 2, 20}, ScalingFunctions -> "Log"] is not logarithmic
Maybe worth showing this:
Verification of log scaling, although with a significant but small error in the first point:
plot = Plot[Zeta[x], {x, 2, 20}, ScalingFunctions -> "Log"];
{xvals, logzvals} = …
3
votes
How to ask Mathematica to show NumberLinePlot of a function in logarithmic scale?
Here's a manual way to do the scaling (you have to scale the domain and ticks one way and the input arguments the inverse way):
NumberLinePlot[
{Sin[Pi*x] < 0, Sin[Pi*x] >= 0} /. x -> Exp@x // Evalua …
6
votes
How to correctly show the slope of a linear part on LogPlot
LogPlot plots $\log y$ vs. $x$, so the slope in the plot is given by
$$m = {d \over dx} \log y = {dy/dx \over y} \,.$$
If you let f be your function, whether that is an InterpolatingFucntion[...][x] …
1
vote
Interpolate on log scale
[Just noticed this was @Quantum_Oil's idea in a comment above. Probably why I didn't answer before.]
Often one interpolates to avoid transcendental functions, but the OP's objective cannot be achieve …
4
votes
Accepted
Transformation of values on $x$ and $y$ axis for a LogLogPlot
A couple of ways:
Log-parametric plot:
ParametricPlot[Log10@{x, x^2}, {x, 0.1, 10}, AspectRatio -> 0.6]
Redefining the ticks (note that LogLogPlot transforms the coordinates by the natural logar …
8
votes
How can I get exactly 5 logarithmic divisions of an interval?
Here's a mathematically simple approach, assuming that exactly n divisions are sought, no matter how nice or not.
This produces exactly n intervals:
Clear[logDiv];
logDiv[{x_?Positive, y_?Positive}, …
5
votes
Accepted
Half Plot - half LogLinearPlot
ScalingFunctions works for Plot, but I had to tweak the ticks by hand:
ClearAll[sfn, isfn];
SetAttributes[sfn, Listable];
SetAttributes[isfn, Listable];
sfn[x_] := Piecewise[{{x, x < 30}, {30 + Log[x …
7
votes
Accepted
How to change the scale of a ListContourPlot to logarithmic and combine it with a LogLinearPlot
For the first question, you can do this:
ListContourPlot[MapAt[Log, data, {All, ;; 2}],
Mesh -> None, PlotRange -> All, InterpolationOrder -> 3,
ColorFunction -> ColorData[{"LakeColors", "Reverse …
3
votes
LogPlot does not show all points
Plot does not use open sampling on regions, so with the following we get the whole range:
Plot[1/x, {x} ∈ Line[{{10^-12}, {1}}], PlotRange -> All, Frame -> True]
Unfortunately, there's a bug in Log …
8
votes
Accepted
Use different markers/colors in logarithmic plot depending on sign
You can use VertexColors to color the individual points, since the points are all in a single Point in order.
ListLogPlot[Transpose[{xData, Abs[yData - 1]}], Joined -> True, Mesh -> All] /.
Point[p …