Skip to main content
18 votes

How does one set a logarithmic scale in a ContourPlot?

As of M11, you can use the ScalingFunctions option: ...
Carl Woll's user avatar
  • 131k
14 votes

Logarithmic scale in an ParametricPlot obtained from ODE boundary conditions

You can use ScalingFunctions. It appears in red but works. ...
Sumit's user avatar
  • 16k
12 votes
Accepted

How to set FenceWidth in logarithmic plot?

This is clearly a bug. In addition to the weird fence shape, the scaling behavior is also changed: fence widths change when the plot is resized. A work-around is to post-process the output to ...
kglr's user avatar
  • 399k
11 votes
Accepted

Logarithmic scale in a DensityPlot and its legend

With version 11, you can use the ScalingFunctions in both DensityPlot and BarLegend ...
Jason B.'s user avatar
  • 69.2k
10 votes
Accepted

Flipping axis on a LogPlot

You can use a custom ScalingFunctions option for Plot instead. For example, here is a log plot: ...
Carl Woll's user avatar
  • 131k
10 votes
Accepted

'symlog'-like Plot with a mixed log-linear-log scale

You may use the ScalingFunctions option which is available for most plotting functions. We need a logarithmic function that passes through zero that we can flip and ...
Edmund's user avatar
  • 42.4k
9 votes
Accepted

Quadratic scaling of axes

Use ScalingFunctions ...
bobthechemist's user avatar
8 votes
Accepted

ListPointPlot3D log scale axes?

You can use the option ScalingFunctions for this purpose. For instance: ...
Carl Woll's user avatar
  • 131k
7 votes
Accepted

Bug in LogPlot reintroduced?

I also had this issue with 11.3.0 on Mac. For me it was easily fixed by enabling 'dynamic updating' in the Evaluation menu (had been disabled due to an earlier evaluation gone wild!)
Bilko's user avatar
  • 116
7 votes

Rescale y-axis of listplot

You can use the option ScalingFunctions! They're easy to use but a bit tricky to understand. I'll be honest: I don't know what the second function it asks for does, ...
thorimur's user avatar
  • 9,020
7 votes
Accepted

Use custom ticks on FrameTicks on LogLogPlot but preserving the log tick marks

The list of tick marks can be in any order, so all we need to do is append the unlabeled tick marks to the existing list. ...
LouisB's user avatar
  • 12.6k
7 votes

How to add vertical/horizontal values in a `ListLogLogPlot `?

I still believe that GridLines is convenient. ...
cvgmt's user avatar
  • 77.8k
7 votes

Control plot range of logarithmic histogram

Don't do it: a log transform of the horizontal axis is fine but a log transform (or any transform for that matter) of the vertical axis destroys much of any interpretation of an estimate of a ...
JimB's user avatar
  • 42.1k
6 votes
Accepted

How to apply multiple scaling functions to the same axis?

You can use your own pure function as a scaling function; you just have to provide an appropriate inverse: ...
MarcoB's user avatar
  • 67.5k
6 votes

How to label ticks in ListLogLogPlot in scientific form in MMA 10.4?

I tested on 10.2 and 10.4. I recommend just using the tick labels from some other plot and overlaying the data using Show. With minimal changes to your example I ...
Johu's user avatar
  • 4,968
6 votes
Accepted

LogLog axes in 3d

ScalingFunctions isn't documented to work with ParametricPlot3D, which is why it shows up in red in the plotting command. But ...
Jason B.'s user avatar
  • 69.2k
6 votes
Accepted

Why is LogTicks incorrect?

The easiest fix is do the Log yourself: Show[Plot[Log10[x^2], {x, 0, 10}], Ticks -> {Automatic, LogTicks}] Note that the ...
Felix's user avatar
  • 3,871
6 votes

Help to change the base in this LogLog Graph

TL;DR The base of the logarithm doesn't matter in log-plots or log-log-plots. Explanation As noted in my comment, there is no difference between the two since $$\log_{10}x=\frac{\log x}{\log 10},$$ i....
Lukas Lang's user avatar
  • 34.2k
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 ...
Michael E2's user avatar
  • 239k
6 votes
Accepted

Log scaling function ticks not showing

This seems to be a version 12.0+ glitch. Your code works as expected in version 11.3. ...
kglr's user avatar
  • 399k
6 votes

HistogramList with logarithmic bins?

As you found in the documentation HistogramList[data, "Log"] gives you a logarithmic spacing. But if you're going to create a histogram figure, you'll ...
JimB's user avatar
  • 42.1k
6 votes

Log Scale in region plot

First, note that the predicate (i.e. the first argument) in your RegionPlot does not actually depend on the variables you're trying to plot over. To answer your ...
George Varnavides's user avatar
6 votes
Accepted

Changing the frameticks

Try this: First, let us define the ticks of the y-axis: f[x_] := {x, (HoldForm[10]^Evaluate[x])} lst = Map[f, Range[5]] Now, let us plot: ...
Alexei Boulbitch's user avatar
5 votes
Accepted

Two ways to fit a function on data points

I think not all your data adheres to your model, or perhaps your model is too simple to fit here. Here is a somewhat simplified approach to your problem. Let's start with fitting the data directly to ...
MarcoB's user avatar
  • 67.5k
5 votes

How can I add callouts to a LogLogPlot and control their positioning?

Positioning callouts can be tricky, but there is a lot more positioning control available than the predefined values Before, ...
m_goldberg's user avatar
  • 108k
5 votes

Is it possible to have a region plot with logarithmic scales?

Apparently, RegionPlot does not support ScalingFunctions. It does, but it has to be convinced a little, it applies the scaling ...
Henrik Schumacher's user avatar
5 votes
Accepted

Nuances of Drawing Vertical Lines on a Log Plot

LogPlot[Exp[x], {x, 0, 3}, Epilog -> Style[Line[{{2, Log@1}, {2, 10000}}], Thickness[.005]]]
kglr's user avatar
  • 399k
5 votes

Log plot and linear plot plotted in one view

...
Jean-Pierre's user avatar
  • 5,222
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: ...
Michael E2's user avatar
  • 239k
5 votes

How to use different log-ticked scales on either side of a ListLogPlot?

You can use the unfortunately undocumented Charting`ScaledTicks function to do this: ...
Carl Woll's user avatar
  • 131k

Only top scored, non community-wiki answers of a minimum length are eligible