Combining Contour Plots in Gnuplot

  • Thread starter Thread starter linford86
  • Start date Start date
  • Tags Tags
    Gnuplot Plots
AI Thread Summary
Combining multiple contour plots in gnuplot can lead to inconsistencies in color representation between different datasets. To ensure that both datasets display the same color scheme, users can utilize gnuplot's color settings. The command structure for plotting multiple datasets is correct, but to unify the color scheme, specific color settings should be applied. Resources such as the provided website can offer guidance on configuring colors effectively. It's essential to set the color palette consistently across all datasets to achieve uniformity in the contour representation.
linford86
Messages
14
Reaction score
0
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?
 
Physics news on Phys.org
I believe you can set the colors, try this website

http://t16web.lanl.gov/Kawano/gnuplot/index-e.html
 
Last edited by a moderator:
Back
Top