Gnuplot: reflexion of a graph in a quadrant to the other

  • Thread starter Thread starter sketos
  • Start date Start date
  • Tags Tags
    Gnuplot Graph
Click For Summary
SUMMARY

The discussion focuses on generating reflections of a graph across quadrants using Gnuplot. The user seeks to replicate a specific graph from a research paper, utilizing Gnuplot's capabilities to reflect data points in the other quadrants. The provided code includes commands for setting up the graph's appearance and data plotting, with suggestions for modifying the splot command to achieve the desired reflections. Key techniques involve using negative values for coordinates to create the reflections.

PREREQUISITES
  • Familiarity with Gnuplot version 5.4 or later
  • Understanding of 3D plotting techniques in Gnuplot
  • Knowledge of data formatting for Gnuplot splot commands
  • Basic grasp of coordinate transformations in graphing
NEXT STEPS
  • Explore Gnuplot's splot command syntax for advanced plotting techniques
  • Research Gnuplot's pm3d mapping for enhanced visualizations
  • Learn about coordinate transformations for graph reflections
  • Investigate Gnuplot's terminal settings for exporting graphs in various formats
USEFUL FOR

This discussion is beneficial for data scientists, researchers, and anyone involved in visualizing complex datasets using Gnuplot, particularly those needing to manipulate graph quadrants for better data representation.

sketos
Messages
55
Reaction score
0
Hello everyone,

I have generated a graph in one quadrant and i need to generate the reflexion of it in the other quadrants. I need to generate a graph like the one found in (http://arxiv.org/pdf/astro-ph/0103143v1.pdf) figure 2. The figure below show the graph i have i one quadrant.

2PCF.png


Anyone know how to take the reflection of it to the rest of the quadrants in gnuplot??

The code i used is:

set terminal postscript eps color enhanced size 7,7
set output '2PCF.eps';

set xlabel "r_p h^{-1}Mpc" font "Times-Roman, 25
set ylabel "{/Symbol p} h^{-1}Mpc" font "Times-Roman, 25
set xrange [1: ]
set yrange [1: ]set pm3d map
set view map
set style data pm3d

set dgrid3d 20,20
set hidden3d
unset surface
set pm3d at b
set cbtics 1 norangelimit
set cbrange [0:8]
set format cb "%3.1f"
set palette model RGB
#set palette defined

splot "data.dat" u 1:2:4 notitle
 
Physics news on Phys.org
Just a guess as I haven't used gnuplot in a while, and haven't ever really used the splot stuff. Can you do something like,

Code:
splot "data.dat" using 1:2:4 notitle, "data.dat" using ($1*-1):2:4, "data.dat" using 1:($2*-1):4, "data.dat" using ($1*-1):($2*-1):4
 
Last edited:
Thank you!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
3
Views
7K
  • · Replies 5 ·
Replies
5
Views
6K