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

Contour Plots in Gnuplot

  1. Jul 6, 2010 #1
    I'm trying to combine several contour plots together onto the same graph in gnuplot. I know that I can just do something along the lines of

    splot "file1.dat" u 1:2:3 w lines, "file2.dat" u 1:2:3 w lines
    set contour base
    set no surface
    set view 0,0

    However, when I do that, the data from file1.dat has different colored contours than the data from file2.dat. Is there any way that I can force gnuplot to output both data sets with the same color?
  2. jcsd
  3. Jul 7, 2010 #2

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    I believe you can set the colors, try this website

    http://t16web.lanl.gov/Kawano/gnuplot/index-e.html [Broken]
    Last edited by a moderator: May 4, 2017
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook