Using Hex number with shape syntax

Hi,

I am just playing around with different shapes and colours at the moment, I
have managed the "standard" colours like this:

plot(Time, Value, 'r.')

Which obviously prints a red dot.

However how do use the hex colour map with the ".", I have tried:

plot(Time, Value, '#330066.')
plot(Time, Value, '#330066,.')
plot(Time, Value, '#330066' '.')
plot(Time, Value, '#330066', '.')

Not quite sure on the syntax.

Thank you in advance

···

--
View this message in context: http://www.nabble.com/Using-Hex-number-with-shape-syntax-tp18808107p18808107.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

stuartornum wrote:

Hi,

I am just playing around with different shapes and colours at the moment, I
have managed the "standard" colours like this:

plot(Time, Value, 'r.')

Which obviously prints a red dot.

However how do use the hex colour map with the ".", I have tried:

plot(Time, Value, '#330066.')
plot(Time, Value, '#330066,.')
plot(Time, Value, '#330066' '.')
plot(Time, Value, '#330066', '.')

Not quite sure on the syntax.

Use the named kwarg "linestyle":

   plot(Time, Value, '#330066', linestyle='.')

I think you meant marker, since the '.' represents a marker rather
than a linestyle

  plot(Time, Value, color='#330066', marker='.')

JDH

···

On Mon, Aug 4, 2008 at 4:48 AM, Manuel Metz <mmetz@...1721...> wrote:

Use the named kwarg "linestyle":

  plot(Time, Value, '#330066', linestyle='.')

Perfect!

Thanks guys

Did this in the end:

plot(Time, Value, 'o', markersize = 1, markerfacecolor = '#330066',
markeredgecolor = '#330066'

···

--
View this message in context: http://www.nabble.com/Using-Hex-number-with-shape-syntax-tp18808107p18811425.html
Sent from the matplotlib - users mailing list archive at Nabble.com.