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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

HELP PLOT QUADS AND SHAPES

ppal
17-Peridot

HELP PLOT QUADS AND SHAPES

Trying to plot some protection relay characteristics.

Please see attached failure

Could be box quad or even boxes with bits cut out.

ppal_1-1664501884920.png

 

ACCEPTED SOLUTION

Accepted Solutions
ttokoro
20-Turquoise
(To:ppal)

Use NaN to separate the plot lines. To plot Box, it needs a, b, c, d, a dataset.

image.png

image.pngimage.pngimage.png

View solution in original post

2 REPLIES 2
ttokoro
20-Turquoise
(To:ppal)

Use NaN to separate the plot lines. To plot Box, it needs a, b, c, d, a dataset.

image.png

image.pngimage.pngimage.png

Werner_E
25-Diamond I
(To:ppal)

As long as the shapes are polygons you simply create a vector of x-coordinates and a second vector of y-coordinates and plot one over the other.

And Prime will connnect the points in the order you give them. Thats the reason it connects #3 with #4 which is obviously not what you want.

Furthermore you will have to add the first point again as last one if you want the polygon to be closed.

In your case you may consider two separate plots  - you can make them with just the two vectors if you separate them by inserting a "point" with coordinates (NaN/NaN).

Another way is to go back from #3 to #2 and then go ahead to #4 as shown in the picture below

Werner_E_0-1664508031745.png

 

Announcements

Top Tags