Home > Back-end >  Can matlab figure have vertical separator line?
Can matlab figure have vertical separator line?

Time:12-14

I am trying to achieve a similar graph to the one shown below. I have been researching how to add lines as separators and put 2 box plots in between 2 lines. The dataset I have is that I have 3 message sizes of type A and 3 same message sizes of type B. I want to draw them side by side based on their sizes. Below is the similar graph that I want to achieve. There are 2 box plots in each column which represent they are the same message size, only different type.

Final result

What keyword should I search for that result?

CodePudding user response:

What you want can be achieved defining two grouping variables for the data, and using the 'factorseparator' input of enter image description here

CodePudding user response:

As of R2018b, you can use xline to draw vectical lines on a plot at the locations you select.

To answer the immediate question, I searched for "matlab vertical line" on Google. All of the first few posts mentioned this function.

  • Related