plotting – ScalingFunctions and DataRange in ListDensityPlot[]

I wanted to plot 100×100 two-dimensional array with certain units for x-y axis. In addition, I want to invert y-axis. I can do each of them separately. For example,

l = Table(x - y, {x, 1, 100}, {y, 1, 100});
ListDensityPlot(l, DataRange -> {{0, 1}, {0, 5}})

shows the plot with different x-y scale.

enter image description here

and I can get plot with inverted y-axis by

ListDensityPlot(l, ScalingFunctions -> {Identity, "Reverse"})

enter image description here
However, if I tried to do both,

ListDensityPlot(l, ScalingFunctions -> {Identity, "Reverse"}, 
 DataRange -> {{0, 1}, {0, 5}})

the resulting plot is almost blank (I saw a small region of plot at the top).

enter image description here

Is there any way to circumvent this problem?

Thank you very much in advance.


graphics – Bug with plotting the Heatmap (ListDensityPlot) of a difference-equation

I am using
Mathematica Version Number
Platform: Microsoft Windows (64-bit)

The issue:
The Heatmap is not plotting properly for some specific initial condition (x(0)), the number of interactions (Tfinal), the constant value b, and parameter values (e, a, cs, ce, L). I illustrate this issue for the case in which x(0)=0.1, Tfinal=1500, b=1, e=8/10, a=36/203, cs=1/10, ce=17/3114, L=79/102.

(*Defining the initial condition, parameter values, and difference equation *)

Tfinal=1500; (*Number of interactions*)

x0=0.1;     (*Initial condition*)

b=1;        (*constant*)
e=8/10;     (*0 <= e <= 1*)
a=36/203;   (*0 <= a <= 1/2*)
cs=1/10;    (*0 <= cs <= 1/2*)
ce=17/3114; (*0 <= ce <= 1/4*)
L=79/102;   (*0 <= L <= 1*)

f(L_,e_,a0_,a_,cs_,cE_,ce_,x_(t)):= (x(t)*(1 - (ce + cE + cs)*(a0 + a*(L + x(t) - L*x(t))) + (e + x(t) - e*x(t))^b*(a0 + a*(L + x(t) - L*x(t)))))/
 ((1 - x(t))*(1 - a0*(ce + cs) + a0*e^b + (-((-1 + e)*x(t)))^b*(a0 + a*(L + x(t) - L*x(t)))) + 
  x(t)*(1 - (ce + cE + cs)*(a0 + a*(L + x(t) - L*x(t))) + (e + x(t) - e*x(t))^b*(a0 + a*(L + x(t) - L*x(t)))));
(* Organizing the data so I can use ListDensityPlot *)


dat // MatrixForm; (*the way that the data come out from Table({a0,cE,RecurrenceTable({x(t+1)(Equal)f(L,e,a0,a,cs,cE,ce,x(t)),x(0)(Equal)x0},x,{t,0,Tfinal})},{a0,0,1/2,step},{cE,0,1/4,step})*)

parameters = Take(dat, All, All, 2); (*only getting parameter values used to run the model:=getting all rows and collumns of 2 first values*)
parameters// MatrixForm;

d((2)) ;(*colecting the number of columns*)

dat((;; , ;; , 3, -1)) // MatrixForm; (*only getting values of x(Tfinal)*) 
xFinal=Flatten(dat((;; , ;; , 3, -1))); (*putting x(Tfinal) into a single list*)
xFinal2=Partition(xFinal,1);(*first step in x(Tfinal) partitioning*)
xFinal3=Partition(xFinal2,d((2))); (*last step in x(Tfinal) partitioning*)

dataOrg=Join(parameters,xFinal3,3);(*combining the parameters and x(Tfinal) lists by at each 3 location of "parameters" list inputinng "xFinal3"*)

dataOrg2=Flatten(dataOrg,1); (*colapting the data in one list*)
,FrameLabel->{Style("!(*SubscriptBox((a), (0)))",15,"DisplayFormula"),Style("!(*SubscriptBox((c), (E)))",15,"DisplayFormula")}


Notice that the heatmap is correctly plotting when x(t)==1 (in blue), but not when x(t) is near zero (which should be brown instead of white).
The time series gives an example that the blue area is correct but that the white area should be brown:
At a0=0.4 and cE=0.2, x(Tfinal) = 6.74504*10^-12, which should be brown in the heatmap, instead of white.

(*Now calculating a time series *)

a0=0.4;  cE=0.20;


ListPlot(timeSeries, PlotRange->{{0.0,1.05}})

timeSeries((1))(*value of x(0)*)
timeSeries((Tfinal)) (*value of x(Tfinal)*)

enter image description here

At a0=0.4 and cE=0.1, x(Tfinal) = 1, which is show correctly in the heatmap as blue.

a0=0.4;  cE=0.1;


ListPlot(timeSeries, PlotRange->{{0.0,1.05}})

timeSeries((1))(*value of x(0)*)
timeSeries((Tfinal)) (*value of x(Tfinal)*)

enter image description here

The issue disappears by doing any of the following:

  1. By changing the initial condition of the variable, e.g., x(0)=x0=0.2;
  2. By using other parameter values. However, for certain parameter values, e.g., ce={17/3114, 18/3114}, the problem is maintained.
  3. To change the number of interactions. Bug in the heatmap when assuming Tfinal = {300, 400,500,600,700,800,900,1000,1100,1200,1300, 1400,1500}, in which among those two types of bug in the bar legend occur. One bug is having several denominator happens when Tfinal ={700,800,900,1000,1100,1200,1300}. The other bug is having all value of the legend being “1”, this issue occurs when TFinal ={1400,1500}. Examples of Tfinal values in which is no bug in the graph Tfinal= {100,200, 1600,1700,1800, 1900}.
    Detail, when I run the same code in Mathematica Version, Platform: Linux x86 (64-bit)
    the following Tfinal ={900, 1000,1500} that in the Version were a issue, is not an issue anymore. Examples of the same issue in Mathematica Version are found when Tfinal = {800, 700, 600, 500, 400, 300}.

PS.:The issue does not seem to be related to the choice of ColorFunctions, because I tried other ColorFunctions, and the problem didn’t change.

plotting – 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 Logorithmic scaling to accurately capture this order of magnitude change, but needed to define a custom function to deal with the negative values. I’ve included the scaling function I use (aL) and its inverse (aE) as well as equivalent code

xR=Table((Exp(0.06225 i)-1),{i,1,150});

xt= Table(0.5 i,{i,1,500});


Do(tdata(j) = Sort(Table(RandomReal({-5, 5})*10^RandomInteger({5, 50}), {i, 1, LR})), {j, 1, Lt});

Pdat = Flatten(Table({xt((j)), xR((z)), tdata(j)((z))}, {j, 1, Lt}, {z, 1, LR}), 1);

aL = Sign(#) Log(1 + Abs(#)) &;

aE = Sign(#) (Exp(Abs(#)) - 1) &;

ListDensityPlot(Pdat, ColorFunction -> "BlueGreenYellow", PlotLegends -> True, ScalingFunctions -> {None, "Log", {aL, aE}})

The plot this creates doesn’t look quite right, and the plot legend is a blank bar. I get the following error message:

Coordinate {Indeterminate, Indeterminate} should be a pair of numbers, or a Scaled or Offset form.

Thanks in advance

Artifacts / snippets when plotting more than a few hundred samples with ListDensityPlot

I have artifacts / clippings when plotting more than a few hundred samples ListDensityPlot:

    ListDensityPlot[Take[ping,{1,4},{1, 50}] , DataRange->All,ImageSize->300],
    ListDensityPlot[Take[ping,{2,4},{1, 50}] , DataRange->All,ImageSize->300]

Enter image description here

In the upper left area of ​​the first image you will see a white area, just like with missing data. However, if you reduce the number of samples, the problem will go away.

Here is the subset of the data shown in this example encoded as CSV:


My actual data consists of $ 60 times $ 250 Patterns and entire areas of the property are missing. How can i do ListDensityPlot display all Data?

FWIW, I'm working on the Wolfram Cloud.

Plotting – ListDensityPlot and DensityPlot do not deliver the same results?

I'm drawing the same function ListDensityPlot and DensityPlot but the output is different!
There are some points where the function is complex or purely imaginary DensityPlotShow this region as white. However, ListDensityPlot show staining in the same region.

mod = ParallelTable[
   With[{[Kappa] = 0.23}, {ky, [Epsilon], 
     Sqrt[-ky^2 + [Epsilon]^2 + [Kappa]^2 - 
      Sqrt[[Epsilon]^2 - 4 ky^2 [Kappa]^2 + 
       4 [Epsilon]^2 [Kappa]^2]]}], {ky, -0.35, 0.35, 
    0.001}, {[Epsilon], 0, 0.2, 0.001}];
ListDensityPlot[Flatten[mod, 1]]  

Enter image description here

With[{[Kappa] = 0.23}, 
  Sqrt[-ky^2 + [Epsilon]^2 + [Kappa]^2 - 
   Sqrt[[Epsilon]^2 - 4 ky^2 [Kappa]^2 + 
    4 [Epsilon]^2 [Kappa]^2]], {ky, -0.35, 0.35}, {[Epsilon], 
   0, .2}, PlotRange -> Full, Exclusions -> None, PlotPoints -> 50]]

Enter image description here

Plotting – How do I get the values ​​of a ListDensityPlot?[]

A simulation output indicates X Y Z positions and whether there is an error (1) or a success (0). My data is in (file.dat). I tested

daall = Import["data_all.dat"]
ListDensityPlot3D[daall, PlotLegends -> Automatic, 
 ColorFunction -> "TemperatureMap"]

Enter the image description here

and the 2D projection in the XY plane

ListDensityPlot[Map[({#[[1]], #[[2]], #[[4]]}) &, daall],
PlotLegends -> Automatic, ColorFunction -> "TemperatureMap"]

Enter the image description here

and the presentation of the two looks different. In the 3D image, some zones have values ​​between 0 and 1. In the 2D image, however, there are no intermediate values ​​(0.4, 0.6, …).

I would like to ask why they are different, how I could get these intermediate values ​​in the image, and how I could get all the points used in both plots. For example, I would like to extract the data values ​​of the 2D Diagram (LisDensityPlot), save those data points in a file, and try to represent them ArrayPlot[],