Bugs item #3458200, was opened at 2011-12-12 04:51 Message generated for change (Tracker Item Submitted) made by pascal22p You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102915&aid=3458200&group_id=2915
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Pascal (pascal22p) Assigned to: Nobody/Anonymous (nobody) Summary: Linear gradient in rgb space, plscmap1l Initial Comment: Could be a feature request depending how you see the problem. The documention states that the gradient is linear. However this is only valid in hls. When using rgb coding it is no longer the case. http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.9/plscmap1l.html "Set color map1 colors using a piece-wise linear relationship between position in the color map (from 0 to 1) and position in HLS or RGB color space" This is due to the conversion from rgb space to hls when the input is rgb: n plctrl.c, void plcmap1_calc( void ) //! Bin up cmap 1 space and assign colors to make inverse mapping easy. //! Always do interpolation in HLS space. This works: call plscmap1l(.false., & & (/0.0_plflt, 0.499_plflt, 0.501_plflt, 1.0_plflt /),& & (/0.0_plflt, 0.0_plflt, 120.0_plflt, 120.0_plflt /),& & (/0.2_plflt, 1.0_plflt, 1.0_plflt, 0.2_plflt /),& & (/1.0_plflt, 1.0_plflt, 1.0_plflt, 1.0_plflt /) ) But not this: call plscmap1l(.true., & & (/0.0_plflt, 0.5_plflt, 1.0_plflt /),& & (/1.0_plflt, 1.0_plflt, 0.0_plflt /),& & (/0.0_plflt, 1.0_plflt, 1.0_plflt /),& & (/0.0_plflt, 1.0_plflt, 0.0_plflt /) ) Either the documention should mention this but it stills buggy for me as this function accepts rgb input. Or remove the hls transformation and do the gradient with rgb values when the input is in rgb. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102915&aid=3458200&group_id=2915 ------------------------------------------------------------------------------ Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel