Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica How to make this plot?

  1. Apr 22, 2016 #1
    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}];

    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 ?
  2. jcsd
  3. Apr 22, 2016 #2
  4. Apr 22, 2016 #3


    Staff: Mentor

    Instead try:

    Code (Text):
    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
  5. Apr 22, 2016 #4
    Thanks :)
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted