Mathematica Asked by user3411007 on March 23, 2021
There appears to be a bug in plotting, using ListContourPlot
with ScalingFunctions->{"Log","Log"}
and specifying a DataRange
, when trying to plot only a 2d array (i.e. with the x- and y- variables specified using DataRange
instead of being input).
Providing a 2d DataRange
gives a blank plot, with PlotRange
having no effect. If I include "All" as a 3rd dimension to DataRange
, then the plot draws axes as Exp[DataRange]
.
Could somebody help me around this apparent bug?
It looks like ScalingFunctions
does not work with numbers below the base of the logarithm. Conider e.g.:
n = 20;
dat = Table[x^2 + y^2, {x, 1, n}, {y, 1, 2 n}];
ListContourPlot[dat, DataRange -> {{1, n}, {1, 2 n}},
ScalingFunctions -> {"Log", "Log2"}]
Or the same with Log10
:
n = 20;
dat = Table[x^2 + y^2, {x, 1, n}, {y, 1, 2 n}];
ListContourPlot[dat, DataRange -> {{1, n}, {1, 2 n}},
ScalingFunctions -> {"Log", "Log10"}]
I think this is a bug. Please report it to "support.wolfram.com"
Answered by Daniel Huber on March 23, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP