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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Singling out points in a plot and drawing the vectors

YA_10963798
14-Alexandrite

Singling out points in a plot and drawing the vectors

Hi there, 

I have this plot which has ( x, y ) and A and B are points in this plot>>> I want to show this point in different colour and then draw the vector of them AB

and then I have  another x and y ( x;cpt , y;cpt different values) I want to show point C,cpt in the same previous plot 

then draw the vector component of AB and C,cpt

YA_10963798_0-1729773062929.png

the result should look something like this:

YA_10963798_1-1729773582329.png

not necessarily the same ,but I need to show the vectors 

Thanks in advance

prime 9 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:YA_10963798)

To plot a single point, you simply put its x-ccordinate at the abscissa, its y-ccordinate at the ordinate, chose a Symbol rom the menu and plot (you may chose line style "none").

Werner_E_0-1729774909435.png

 

If you don't need the two points in different colors, you may combine their coordinates. Use a vector with all x-coordinates at the abscissa and a vector with the corresponding y-coordinates at the ordinate. You may also choose a line stye to connect the points. Unfortunately Symbol size  and thickness of he line cannot be chosen independently.

Werner_E_0-1729776196772.png

 

In both cases because of the values used your main plot (Y over X) is just seen very tiny at the upper right corner of the plot.

 

To draw a vector you would have to use a small program to do so. I happen to have posted one not too long ago.

"How to Plot Vector Arrows in Mathcad: Need Guidan...

Of course you would not only have to provide the vector B-A but also the point the drawing of the arrow should start from.

 

See here for another thread dealing with drawing arrows/vectors in Prime

Solved: Plotting complex numbers in Mathcad Prime 2.0

 

BTW, none of the functions so far will deal with plots where the two axis are differently scaled. The arrow head will look somewhat distorted in such cases:

Werner_E_1-1729776900521.png

 

View solution in original post

7 REPLIES 7
Werner_E
25-Diamond I
(To:YA_10963798)

To plot a single point, you simply put its x-ccordinate at the abscissa, its y-ccordinate at the ordinate, chose a Symbol rom the menu and plot (you may chose line style "none").

Werner_E_0-1729774909435.png

 

If you don't need the two points in different colors, you may combine their coordinates. Use a vector with all x-coordinates at the abscissa and a vector with the corresponding y-coordinates at the ordinate. You may also choose a line stye to connect the points. Unfortunately Symbol size  and thickness of he line cannot be chosen independently.

Werner_E_0-1729776196772.png

 

In both cases because of the values used your main plot (Y over X) is just seen very tiny at the upper right corner of the plot.

 

To draw a vector you would have to use a small program to do so. I happen to have posted one not too long ago.

"How to Plot Vector Arrows in Mathcad: Need Guidan...

Of course you would not only have to provide the vector B-A but also the point the drawing of the arrow should start from.

 

See here for another thread dealing with drawing arrows/vectors in Prime

Solved: Plotting complex numbers in Mathcad Prime 2.0

 

BTW, none of the functions so far will deal with plots where the two axis are differently scaled. The arrow head will look somewhat distorted in such cases:

Werner_E_1-1729776900521.png

 

YA_10963798
14-Alexandrite
(To:Werner_E)

Thank so much . This is really helpful 

ttokoro
20-Turquoise
(To:YA_10963798)

image.pngimage.pngimage.pngimage.pngimage.png

YA_10963798
14-Alexandrite
(To:ttokoro)

Hi ttokoro , 

thank you for your reply. 

What does the 13i/(2*50) represent?

Yusra

ttokoro
20-Turquoise
(To:YA_10963798)

It is a normarized factor to arrow for x and y direction.

So if you expand the plot x axis like my picture, you need modify the factor value like 13i/(2*50).

(x:y=2:1) for  13i/(2*50). If (x:y=1:1), it is  13i/(1*50)

13 and 50 is Xmax 130000 and Ymax 500000...

YA_10963798
14-Alexandrite
(To:Werner_E)

Hi Werner, 

I hope you are doing well.

Can you please take a screen shot of ( Re) function .. thanks 

Werner_E
25-Diamond I
(To:YA_10963798)


@YA_10963798 wrote:

Hi Werner, 

I hope you are doing well.

Can you please take a screen shot of ( Re) function .. thanks 


Sorry, I don't understand your question!?

"Re" and also "Im" are built-in functions which return the real- and the imaginary-part of a complex number.

Werner_E_0-1729861951725.png

 

Announcements

Top Tags