Skip to main content
18-Opal
September 30, 2022
Solved

HELP PLOT QUADS AND SHAPES

  • September 30, 2022
  • 2 replies
  • 1249 views

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

 

Best answer by ttokoro

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

image.png

image.pngimage.pngimage.png

2 replies

ttokoro
21-Topaz I
ttokoro21-Topaz IAnswer
21-Topaz I
September 30, 2022

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

image.png

image.pngimage.pngimage.png

t.t.
25-Diamond I
September 30, 2022

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