Community Highlights

Community Pick

Adam Danz
1,013 views (last 30 days)

New in R2020b: Two new marker symbols

Adam Danz 2020년 9월 30일 (2021년 4월 30일에 수정됨)
Latest activity Edit by Hans Scharler 2021년 4월 30일

'

The Matlab r2020b release introduces the new horizontal ('_') and vertical (' | ') line marker symbols that are centered around the coordinate similarly to the plus marker ('+').

plot(x,y,'_')
plot(x,y,'|')

See the attached Live Script to reproduce all plots in this post.

'

Use case example 1: Days in August 2020 that COVID-19 cases (vertical ticks) and number of tests (horizontal ticks) increased from the previous day in countries with populations greater than 100M (4 countries eliminated for incomplete data).

'

Use case example 2: (An alternative to stacked bar plots) Number of power outages in 2005 across regions of the USA, broken down by calendar quarters.

 
Isabelle Foster
Isabelle Foster 2021년 3월 15일

You explained it perfectly, thank you. You helped me deal with everything

 
goc3
goc3 2020년 9월 30일

Thanks for pointing this out.

The first graphic that shows the possible markers could be improved. It currently shows the filled circle twice. Also, it doesn't show any of the unfilled shapes, though the second graphic does utilize the unfilled circle.

 

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!