Plot command, horizontal line as a marker
Mostrar comentarios más antiguos
Hi,
I am combining a bar plot with a line plot and want to use the '_' as the marker for the line plot. However when I run the command, I get the following error
plot(1:1:4,1:1:4,'k','LineStyle','none','Marker','_')
Error using plot
'_' is not a valid value. Use one of these values: '+' | 'o' | '*' | '.' | 'x' | 'square' | 'diamond' | 'v' | '^' | '>' | '<' | 'pentagram' | 'hexagram' | 'none'.
1 comentario
There's a demo of the '_' marker combined with a bar plot in this community highlight (r2020b or later required).
Respuestas (1)
Star Strider
el 13 de Oct. de 2020
1 voto
The '_' (and '|') markers were introduced in R2020b. So to use it, you will need to upgrade to the latest release. (The online documentatiion is for R2020b.)
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!