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

Discussion Overview

The discussion revolves around creating a 2-D plot in GNUplot that visually represents the velocity profile gradient of seismic wave propagation in a medium. Participants explore how to effectively display the velocity profile alongside the ray paths defined by a specific velocity profile equation.

Discussion Character

  • Homework-related
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant describes a program that models seismic wave propagation using a velocity profile equation, seeking to visualize how the velocity changes with position and its effect on ray paths.
  • Another participant questions the nature of the information being presented, suggesting that if the velocity is a scalar, color could represent its magnitude in the 2-D plot.
  • A clarification is made that while the ray path is a vector quantity, the velocity profile equation produces a scalar field for each point in the x-z plane.
  • There is a request for guidance on using color to represent the scalar field in the 2-D plane.
  • One participant admits unfamiliarity with GNUplot and suggests looking into documentation for features related to contour and colormap functionalities.

Areas of Agreement / Disagreement

Participants express differing levels of familiarity with GNUplot, with some uncertainty about how to represent the velocity profile gradient effectively. There is no consensus on a specific method to achieve the desired visualization.

Contextual Notes

Participants have not resolved the specifics of how to implement the visualization in GNUplot, and there may be assumptions about the definitions of scalar and vector quantities that are not fully articulated.

Who May Find This Useful

This discussion may be useful for individuals interested in visualizing scalar and vector fields in 2-D plots, particularly in the context of seismic wave propagation and using GNUplot for data representation.

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