Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [logarithmic-scale]

Questions on applying common nonlinear scalings to functions or data--useful for making sense of data which varies over a large range.

44
votes
4answers
14k views

How does one set a logarithmic scale in a ContourPlot?

How does one set a logarithmic scale for both x and y axes in ContourPlot in Mathematica?
33
votes
2answers
10k views

Logarithmic scale in a DensityPlot and its legend

I was recently faced with the task of creating a DensityPlot with a logarithmic colour scale, and with providing it with an appropriate legend. Since I could not find any resources to this effect on ...
29
votes
4answers
8k views

Making Axes logarithmic in 3d plots

I've been trying to get loglog plots in 3D, but to no avail. My initial approach was to take the logarithm inside the plot i.e ...
26
votes
2answers
2k views

Switch from logarithmic to linear scaling partway along a plot's axis

In the 2015 Planck satellite results, they give the latest plot of the temperature power spectrum of the cosmic microwave background, which I show below. (I am only interested in the main plot; you ...
21
votes
4answers
1k views

LogPlot axes labels destroyed when working in high precision

Bug introduced in 7.0 or earlier and fixed in 11.0.0 (I'm using Mathematica 8.) I have a Taylor series: poly = Normal[Series[E^x, {x, 0, 10}]] I want to ...
19
votes
3answers
4k views

How to get grid lines at all (log) tick marks in Version 10?

Bug introduced in 10.0.0 and fixed in 10.1.0 Update: It seems that only versions 10.0.0, 10.0.1, and 10.0.2 are affected by this problem. For 10.0.0 there is no general solution known to me due to ...
18
votes
1answer
2k views

Thickness of logarithmic tick marks

Bug introduced in 8 or earlier and persisting through 11.3 I'm trying to plot a graph wit a logarithmic y-axis. Since I'm exporting the graph to pdf and later printing it, I want to manually set the ...
17
votes
5answers
4k views

How can I get exactly 5 logarithmic divisions of an interval?

I'd like to get exactly 5 divisions from x to y on a log scale. Can FindDivisions do this?
13
votes
3answers
3k views

Functional defined Ticks of LogLinearPlot does not work

Bug introduced in 10.0 and persisting through 11.0.1 or later version 10 $Version "10.0 for Microsoft Windows (64-bit) (June 29, 2014)" Consider three cases ...
11
votes
2answers
383 views

Labeled destroys the log scales in “log” plots when notebook is re-opened

Bug introduced in 10 or earlier and fixed in 11.1 While testing this pdf export bug caused by Labeled, I noticed that this function also destroys the log scales in ...
10
votes
5answers
366 views

Use different markers/colors in logarithmic plot depending on sign

Suppose you have the dataset xData = Table[i, {i, 1, 30}]; yData = RandomReal[{0.995, 1.005}, 30]; and want to plot the difference of ...
10
votes
4answers
565 views

How to bend a logarithmic number line into a circle

One way to plot a sequence of numbers on a logarithmic number line is this: ...
10
votes
2answers
142 views

Strange output when a log-log plot is displayed by means of a button

Bug introduced in 8 or earlier and persists through 11.0.0 I have encountered some strange behavior on the part of the front-end. $Version ...
8
votes
3answers
1k views

How to transpose x and y axes on a LogPlot?

Consider the following simple LogPlot: LogPlot[Exp[x],{x,0,5}] Is there a nice way to switch the axes of a LogPlot? I'm aware that plotting the inverse function ...
8
votes
4answers
3k views

How to plot logarithmic scales

How can a simple logarithmic number line be drawn between any 2 integer values? The closest function I found in the documentation is LogLinearPlot[] and I've been ...
8
votes
2answers
1k views

How to plot BarChart with error bars on logarithmic scale in Mathematica 9?

I'm quite new in Mathematica, and I would like to ask you to consider the next case: I need to plot bar chart with error bars on logarithmic scale. From Wolfram site I took the function which allows ...
8
votes
0answers
2k views

ErrorListLogPlot gives wrong error bars on log scale

From this and this post I learned how to use ErrorListLogPlot and its family to add error bars on top of a list of mean values. However, consider this simple ...
7
votes
1answer
89 views

Flipping axis on a LogPlot

I want to modify the question in Flipping axis on a plot. How to flip y-axes on a LogPlot? In contrast to Plot, LogPlot does not allow for the ScalingFunctions option so that the first solution ...
7
votes
1answer
3k views

Asymmetric X and Y error bars on ListLogPlot

The wonderful error bar log plots package ErrorBarLogPlots from V6 no longer positions labels correctly (since ...
7
votes
2answers
2k views

Plot3D with a log scale only along the y-axis

I would like to ask how to make a 3D plot (maybe using Plot3D) with a logarithmic scale along the y-axis? For example: I have a function, $f(x) = 2(1 + a\,x^4)/x^2$, where $x$ varies from 0 to 20 ...
7
votes
2answers
473 views

How to generate a Log BarLegend for a DensityHistogram

I have a Log count histogram: DensityHistogram[myData, 100, {"Log", "Count"}, ColorFunction -> "Rainbow", ChartLegends -> Automatic] But ...
6
votes
3answers
2k views

Log-log scale smooth histogram

How can I create a smooth histogram with a log-log scale? I can use Histogram[data, "Log", "LogCount"] to get a log-log histogram, or I can use ...
6
votes
3answers
598 views

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

This is a question regarding ListLogLogPlot in MMA 10.4. I have tried the solutions suggested in 5369, and they do not appear to work in MMA 10.4, so I would be grateful if this could be considered a ...
6
votes
1answer
534 views

Adding graphics primitives to log plots [duplicate]

I am making ListLogLog plots with polygons in the Prolog and lines in the Epilog, and I want ...
6
votes
2answers
198 views

LogLog axes in 3d

I have a function defined in 3D and I want to plot it in such a way that first and third component are in LogLog scale. So if I reduce to 2D I could plot my function using LogLogPlot but I need 3d ...
6
votes
1answer
188 views

Issue with combining weighted data log histograms

I have a bit of a strange problem. I'd like to overlay 3 different logarithmic Histograms with two of them stacked and one separate [*]. Without weights the solution is simple: ...
6
votes
1answer
118 views

Half Plot - half LogLinearPlot

Is it possible to do a plot which is partially Plot and partially LogLinearPlot? The reference figure is We see that the $x$-...
6
votes
1answer
284 views

Why PlotRange doesn't work for this set of values? [duplicate]

This code, doesn't show me data corresponding to x axis values 1000 and 10000 ...
5
votes
2answers
283 views

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

How can I have a region plot with the logarithmic axis? In the following, I have brought the original case which I want to be logarithmic. In this case, I have a density plot and a region plot that ...
5
votes
2answers
581 views

ListLogLogPlot with ErrorBars

I have the following data consisting of x, y pairs and errors of y: ...
5
votes
2answers
3k views

Line of best fit on LogLog plot

I have a LogLog plot, and i'm unsure about how to fit a line to it. The data represents a calibration curve. ...
5
votes
3answers
3k views

How to do the log scale plot for ListContourPlot

My current code is: ...
5
votes
1answer
2k views

How to draw a Circle in a graph with Log Y Scale

I've programmed drawing tools for graph images and am experiencing a problem with the coordinates of an Ellipse on a graph with a Log Y axis. It's quite easy to work out the Y Axis coordinates for ...
5
votes
1answer
304 views

Two ways to fit a function on data points

I have the following data: ...
5
votes
1answer
591 views

How to apply multiple scaling functions to the same axis?

I have a parametric plot and would like to display it double logarithmic with one axis reversed. For example how can I get two log axes for this plot: ...
5
votes
1answer
1k views

How to scale Histogram counts with the value of bin center?

I am analyzing some variates from a steeply falling power-law distribution (approximately with a power index -4) using Histogram[data, Automatic, "PDF"] While ...
5
votes
1answer
240 views

Specifying WorkingPrecision in LogLogPlot produces invalid plots [duplicate]

I seem to have found a bug with LogLogPlot in Version 10. If I specify a working precision, the function produces total garbage. Here is a simple example. The first ...
4
votes
2answers
2k views

RegionPlot with LogScale

I would like to have my RegionPlot with logarithmic scale in x and y. My code looks like ...
4
votes
4answers
204 views

Cannot Plot Log

I tried following command and it worked well (you can see the function is positive). ...
4
votes
2answers
235 views
4
votes
2answers
398 views

Why is LogTicks incorrect?

It is a simple example using CustomTicks package: ...
4
votes
2answers
291 views

Mysterious behaviour of ParallelTable

This question is related to Export bug in combination with ParallelTable?. The following code shows an even stranger bug than in the upper question. The y-axis should always be logarithmic, but in ...
4
votes
1answer
103 views

SystemException with LogLinearPlot

In plotting a function with specific set of parameters using LogLinearPlot, Mathematica throws a ...
4
votes
1answer
220 views

Show seems to forget 'logness' for Ticks of LogLogPlot

So there is a (List)LogLogPlot I made a few months ago. Now, it turns out the axes I had back then are too small. Now, the creation of these plots costed quite some ...
4
votes
2answers
2k views

GridLines in LogPlot or LogLogPlot

Suppose I have a plot like LogLogPlot[2 x^5/3, {x,0.1,10}, GridLines->Automatic] How can I achieve to get "custom" gridlines to reduce the number of ...
4
votes
2answers
709 views

Interpolate on log scale

I have data in Mathematica that comes from y-log scale ...
4
votes
0answers
160 views

Bug in LogLinearPlot? Mathematica v11.0

Bug introduced in 11.0 and fixed in 11.0.1 I'm trying to plot a sequence of functions. I wrote the code in two seemingly equivalent ways, but it produces different results. First method: ...
3
votes
4answers
670 views

Base 2 Tick Labels for ListLogLogPlot

I am using ListLogLogPlot and would like to express the x-axis tick labels in powers of 2 instead of the default powers of 10. Does anybody have experience with ...
3
votes
2answers
2k views

Histogram with a logarithmic scale for the y-axis

How can I get a histogram with a logarithmic scale only on the the y-axis? With ...
3
votes
3answers
202 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 ...