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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Graph in Mathcad

dm-3
12-Amethyst

Graph in Mathcad

Hi,

Find the attached image. How to plot such a graph in Mathcad 15?

--

Dhinesh

ACCEPTED SOLUTION

Accepted Solutions
MikeArmstrong
12-Amethyst
(To:dm-3)

Please see attached. I have used the Lines function to create the vertical lines on the X-axis, but had to use vector's to create the lines on the Y-axis. It works, but looks untidy. I'll have a go at writing a function for the Y-axis now.

Mike

View solution in original post

11 REPLIES 11
MikeArmstrong
12-Amethyst
(To:dm-3)

Can you provide a worksheet with the data?

I'm sure the graph can be done, but too lazy to type the data out

Mike

dm-3
12-Amethyst
(To:MikeArmstrong)

Mike,

pfa

I know the graph can be plotted.

But I need similar kind of output as in image.

--

Dhinesh

MikeArmstrong
12-Amethyst
(To:dm-3)

Please see attached. I have used the Lines function to create the vertical lines on the X-axis, but had to use vector's to create the lines on the Y-axis. It works, but looks untidy. I'll have a go at writing a function for the Y-axis now.

Mike

Here's a small modification to Mike's program that does all the lines automatically.

Alan

Here's a small modification to Mike's program that does all the lines automatically.

Nice mod Alan, I was just trying to change it before your post.

Well done.

Mike

dm-3
12-Amethyst
(To:MikeArmstrong)

Mike/Alan,

Can you please expalin the program and how its working?

I am new to Mathcad and am not good in programming.

Thanks in advance

--

Dhinesh

MikeArmstrong
12-Amethyst
(To:dm-3)

Can you please expalin the program and how its working?

I am new to Mathcad and am not good in programming.

If I was you I wouldn't be too concerned at this time how the program works, just file it and know how to utilize it.

It basically creates a Matrix of the data to be plotted and then the Re(x) and Im(x) functions are used to create the graph. The Re(x) function plots the real part of the matrix, in this case called Lines and Im(x) plots the imaginary part.

Mike

VladimirN
24-Ruby II
(To:dm-3)

Hello!

The easiest and fastest way is as follows:

Plot.jpg

dm-3
12-Amethyst
(To:VladimirN)

Vladimir,

Which graph option I have to use? What are the settings I have to do?

--

Dhinesh

VladimirN
24-Ruby II
(To:dm-3)

The settings for plot can be changed using tab "Formatting" (right click on the plot and choose in the list "Format .."). Basic tab with which it is necessary to work it- "XY Axes", "Traces", "Labels".

P.S. I have attached to the message file for Mathcad 15.

VladimirN
24-Ruby II
(To:dm-3)

I also recommend reading books on the program Mathcad. For example, Brent Maxfield "Engineering with Mathcad".

Announcements

Top Tags