Thread Subject: Is it possible to get more line styles?

Subject: Is it possible to get more line styles?

From: Scott

Date: 29 Apr, 2008 21:59:02

Message: 1 of 2

I want to try to plot several different lines on the same
plot, but Matlab has only four line styles available: solid,
dashed, dotted, and dash-dot. Of those the dotted line
doesn't work very well because I end up needing to convert
the figures to images or print them and the dotted lines
look almost the same as the grid lines.

I can use color, but we want the plots to still be
distinguishable in black and white.

I could use line thickness, but the most interesting data on
the plot are a group of lines which tend to be closely
spaced together so they need to be thin, and I was asked not
to make other lines thicker because it may shift the focus
away from the more important lines.

Plot markers don't really help much because they appear only
at data points and for the lines I might use them on there
aren't always many points in the plot region. (Unless
there's a way to make the markers appear at a regular
interval along the line regardless of where the data points
for the line are.)

What would really help is if I could get a few extra,
easily-distinguishable line styles to use.

Subject: Is it possible to get more line styles?

From: helper

Date: 30 Apr, 2008 03:26:01

Message: 2 of 2

> Plot markers don't really help much because they appear
only
> at data points and for the lines I might use them on there
> aren't always many points in the plot region. (Unless
> there's a way to make the markers appear at a regular
> interval along the line regardless of where the data
points
> for the line are.)

You could try interpolating your data at the points where
you want the markers to be and then plotting that.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com