Combining Contour Plots in Gnuplot

  • Thread starter Thread starter linford86
  • Start date Start date
  • Tags Tags
    Gnuplot Plots
Click For Summary
SUMMARY

The discussion focuses on combining multiple contour plots in Gnuplot, specifically using the command `splot` to overlay data from "file1.dat" and "file2.dat". Users encounter issues with differing contour colors for each dataset. The solution involves setting a uniform color scheme for both datasets, which can be achieved by utilizing Gnuplot's color settings. The provided link offers additional resources for color customization in Gnuplot.

PREREQUISITES
  • Familiarity with Gnuplot commands and syntax
  • Understanding of contour plotting techniques
  • Basic knowledge of data file formats used in Gnuplot
  • Experience with color settings in graphical representations
NEXT STEPS
  • Explore Gnuplot color settings for contour plots
  • Learn how to customize plot styles in Gnuplot
  • Investigate advanced contour plotting techniques in Gnuplot
  • Review the Gnuplot documentation on combining multiple datasets
USEFUL FOR

This discussion is beneficial for data analysts, scientists, and engineers who utilize Gnuplot for visualizing complex datasets, particularly those needing to combine multiple contour plots into a single graph.

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:

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 14 ·
Replies
14
Views
11K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
13K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K