How to make this plot?

  • Mathematica
  • Thread starter Safinaz
  • Start date
  • #1
219
2
Hi all,

I'd like to make a plot like that in [arXiv:1312.1935], FiG. (2), it's a function plotted in a plan of two variables.

I tried :

* ListPlot: for example;

##\lambda##[s_,f_]= s+f;
list1 = Table[{s, f, ##\lambda##[s, f]}, {s, -1, 1, 0.1}, {f, -1, 1, 0.1}];
ListPlot[list1]

But it dosn't work, cause I think ListPlot like that works for one variable.

Also, There is RegionPlot, but it gives a continuous coloured region, while i'd like to have the function as 'dotes' as the green and red in the FIG.

Any help ?
 

Answers and Replies

  • #2
489
189
  • #3
Dale
Mentor
Insights Author
2020 Award
30,843
7,441
list1 = Table[{s, f, ##\lambda##[s, f]}, {s, -1, 1, 0.1}, {f, -1, 1, 0.1}]
Instead try:

Code:
list1 = Table[Style[{s, f},Hue[ ##\lambda##[s, f]], {s, -1, 1, 0.1}, {f, -1, 1, 0.1}]
A similar example is shown in the documentation for ListPlot
 
  • #4
219
2
Thanks :)
 

Related Threads on How to make this plot?

Replies
1
Views
846
Replies
3
Views
4K
Replies
3
Views
4K
Replies
3
Views
4K
Replies
5
Views
2K
Replies
1
Views
1K
Replies
2
Views
868
Replies
3
Views
4K
Replies
1
Views
3K
Replies
2
Views
980
Top