Hello.
I want to try and plot the logarithmic plot as given in attached file.
Please, help me with the technique of plotting such graphs.
Should I create a range of values for E and rho and then create a function v(E,rho)?
Please, share an example with me if there is any.
Best regards,
Sergey
Solved! Go to Solution.
As far as the wave speed lines, create a function that calculates E as a function of r and n. Plotting the areas (as Luc has already said) will be very challenging!
Prime 4.0 attached.
Not entirely. Yes, you have to describe the relation between rho and E, but.
You have to realise that for every value of rho, there are 0, 1 or 2 values of E that describe the outer perimeter of each of the shapes you want to draw on the graph.
Let's take a simple example: how do you draw a circle on the x, y plane. It can be done like this:
This describes circle with radius 1, and the centre is at x=2, y=2.
For each value of x, two values are calculated.
Now we can run x from 1 to 3 and plot the two components of Circle().
If we now change the axes of the plot to log we get:
If you want to convey the impression of a single curve, you can change the blue trace to red.
There is an alternative way, using another parameter, but I don't know if you (can) have that in your example. Anyway, for a circle it can go like this:
And with log scales:
Success!
Luc
Hello Luc!
Thank you for explanation.
But would you please, show the same example, but in Mathcad Prime?
It looks like that you solved your example in Mathcad 15.
Best regards,
Sergey
No, 't was Mathcad 11.
See attached for Prime 4
Success!
Luc
As far as the wave speed lines, create a function that calculates E as a function of r and n. Plotting the areas (as Luc has already said) will be very challenging!
Prime 4.0 attached.
Thank you a lot, Fred