How Can I Show the Velocity Profile Gradient in a 2-D Plot Using GNUplot?

  • Thread starter Thread starter bert2002
  • Start date Start date
  • Tags Tags
    Gnuplot
Click For Summary
SUMMARY

The discussion focuses on visualizing the velocity profile gradient in a 2-D plot using GNUplot, specifically for seismic wave propagation. The velocity profile is defined by the equation v=a+bsin(cx)+dcos(ez), which generates a scalar field for each point on the x/z plane. Participants suggest using color to represent the magnitude of the scalar field and recommend exploring GNUplot's documentation for commands related to contour plotting and colormaps. The conversation highlights the distinction between scalar and vector quantities in the context of ray paths.

PREREQUISITES
  • Understanding of seismic wave propagation concepts
  • Familiarity with GNUplot for data visualization
  • Knowledge of scalar and vector quantities in physics
  • Basic programming skills to implement the velocity profile equation
NEXT STEPS
  • Research GNUplot contour plotting techniques
  • Explore GNUplot colormap options for visualizing scalar fields
  • Learn about vector field representation in data visualization
  • Investigate the use of matplotlib for similar plotting tasks
USEFUL FOR

Researchers, physicists, and data scientists involved in seismic analysis, as well as anyone interested in visualizing complex scalar fields in 2-D plots.

bert2002
Messages
16
Reaction score
0

Homework Statement



I have written a program that desribes seismic wave propagation in a medium that has been given a specific velocity profile equation. The velocity at a specific x and z co-ordinate of the ray path is defined by this particular equation, and of course the velocity will vary depending on the position of the ray path .

I am trying to create a 2-D plot of the ray paths of x (horizontal) and z (vertical) position which i can do fine BUT i am having trouble in trying to show the velocity profile gradient as part of the background of the plot. I would like to be able to see exactly how the velocity profile changes with position and how this has affected the ray path.


Homework Equations



Here is an example of an arbitrary velocity profile equation that i have been using

v=a+bsin(cx)+dcos(ez)

Thanks
 
Last edited:
Technology news on Phys.org
So, what exactly is the question?
are you looking for ideas on how to present the information?
what's the information?

if you have a scalar quantity, you can use color to represent the magnitude in the 2D x-z plane

if you have a vector, well, you use a vector field.

I think of velocity as a vector and speed as a scalar, so, I am not sure what you got as you call it velocity but seems to be a scalar.
 
gsal said:
So, what exactly is the question?
are you looking for ideas on how to present the information?
what's the information?

if you have a scalar quantity, you can use color to represent the magnitude in the 2D x-z plane

if you have a vector, well, you use a vector field.

I think of velocity as a vector and speed as a scalar, so, I am not sure what you got as you call it velocity but seems to be a scalar.

Well the ray path is a vector quantity but the velocity profile equation will produce a scalar field for each point on the x/z plane.

as you say, i am looking to use colour to represent the magnitude of the scalar field in a 2-D plane, how can i do this ?

Thanks
 
I wouldn't know how to do that in GNUplot, I use matplotlib.

You need to read the docs, look for something along the lines of contour, colormap, cmap, image-showing commands, etc.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
17K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 27 ·
Replies
27
Views
7K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K