Hi Phil,

I think it's a "feature". It's a question of which of rev and putting
coord1 backwards you consider to be reversing the direction around the
wheel and which you consider to be flipping the colourscheme. You
could argue that it would make more sense to have it the other way
round.  Either way, I would suggest the best way forward is to ensure
that the documentation is clearer and consistent with what is actually
done rather than making a backwards incompatible change to code that
has been around for a long time.

Patches gratefully received!

Andrew

On Fri, Aug 10, 2012 at 03:04:22AM -0700, phil rosenberg wrote:
> Hi all
> I've come across a?"feature" of the cmap1 colourscale that?I wanted to check. 
> According to the doumentation for plscmap1l "the hue is interpolated around 
> the front of the colour wheel (red-green-blue-red) unless the rev flag is set 
> to true.
> ?
> I've found however that this isn't always the case and that reversing the 
> order of points on the coord arrays also reverses the direction. For example 
> using HLS I set coord1 to {0,120} and rev to false which gives me a 
> colourscale of red-yellow-green-turquoise-blue. If I then set coord1 to 
> {120,0} I would expect to get a colourscheme from blue-purple-red, but 
> instead I get blue-turquoise-green-yellow-red.
> ?
> I've called it a feature, because I'm not sure if this is a bug in the code 
> or if it is the correct behaviour but the documentation isn't great. Any 
> thoughts?
> ?
> Phil Rosenberg

> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to