How to switch colormaps

Hello everyone,

Is it possible to have automaticaly more than 3 colors when Iplot a graph? When I plot it put the first in blue the second in green the third in red and the fourth in blue again. I want to use more colors to differenciate the curves.

Is it possible?

Fabien

Hello everyone,

Is it possible to have automaticaly more than 3 colors when Iplot a graph?
When I plot it put the first in blue the second in green the third in red
and the fourth in blue again. I want to use more colors to differenciate
the curves.

Sure. Here's an example I cooked up for you:

Hope that helps.

···

On Fri, Jul 20, 2012 at 12:14:08PM +0200, Fabien Lafont wrote:

Is it possible?

Fabien

--
Damon McDougall
http://damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom

Strange, this is the default color cycle (colormaps are something different).

[‘b’,‘g’,‘r’,‘c’,‘m’,‘y’,‘k’]

You can modify this via the “axes.color_cycle” rcparam.

Cheers!
Ben Root

···

On Fri, Jul 20, 2012 at 5:39 AM, Damon McDougall <damon.mcdougall@…287…> wrote:

On Fri, Jul 20, 2012 at 12:14:08PM +0200, Fabien Lafont wrote:

Hello everyone,

Is it possible to have automaticaly more than 3 colors when Iplot a graph?

When I plot it put the first in blue the second in green the third in red

and the fourth in blue again. I want to use more colors to differenciate

the curves.