cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Plotting logarithmic scale graphs

Sergey
15-Moonstone

Plotting logarithmic scale graphs

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

ACCEPTED SOLUTION

Accepted Solutions
Fred_Kohlhepp
23-Emerald I
(To:Sergey)

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.

View solution in original post

6 REPLIES 6
LucMeekes
23-Emerald III
(To:Sergey)

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:

LucMeekes_1-1611867919125.png

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().

LucMeekes_2-1611868019940.png

If we now change the axes of the plot to log we get:

LucMeekes_3-1611868062914.png

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:

LucMeekes_4-1611868314439.png

And with log scales:

LucMeekes_5-1611868336003.png

 

Success!
Luc

Sergey
15-Moonstone
(To:LucMeekes)

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

LucMeekes
23-Emerald III
(To:Sergey)

No, 't was Mathcad 11.

 

See attached for Prime 4

 

Success!
Luc

ttokoro
20-Turquoise
(To:LucMeekes)

image.pngimage.pngimage.png

Fred_Kohlhepp
23-Emerald I
(To:Sergey)

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.

Sergey
15-Moonstone
(To:Fred_Kohlhepp)

Thank you a lot, Fred

Announcements

Top Tags