On Monday, 9 May 2016 at 06:24:22 UTC, Edwin van Leeuwen wrote:
On Monday, 9 May 2016 at 02:29:47 UTC, brocolis wrote:
Is this correct usage?
auto gg = GGPlotD().put( geomLine( Aes!(typeof(xs), "x",
typeof(ysfit), "y", string, "colour")( xs, ysfit, "red") ) );
The output is a blank png file.
On Monday, 9 May 2016 at 02:29:47 UTC, brocolis wrote:
Is this correct usage?
auto gg = GGPlotD().put( geomLine( Aes!(typeof(xs), "x",
typeof(ysfit), "y", string, "colour")( xs, ysfit, "red") ) );
The output is a blank png file.
Full source:
import ggplotd.ggplotd;
import ggplotd.geom;
Is this correct usage?
auto gg = GGPlotD().put( geomLine( Aes!(typeof(xs), "x",
typeof(ysfit), "y", string, "colour")( xs, ysfit, "red") ) );
The output is a blank png file.
Full source:
import ggplotd.ggplotd;
import ggplotd.geom;
import ggplotd.aes;
import ggplotd.axes;
void main()
{
On Sunday, 8 May 2016 at 01:50:38 UTC, brocolis wrote:
How do I set the color of a curve with ggplotd?
Thanks.
Also see the below example on how to merge Colour with an
existing range of points using mergeRange:
(Copied from http://blackedder.github.io/ggplotd/stat.html)
void main()
{
On Sunday, 8 May 2016 at 01:50:38 UTC, brocolis wrote:
How do I set the color of a curve with ggplotd?
Thanks.
You can set colours by name:
https://github.com/BlackEdder/ggplotd/blob/master/source/ggplotd/colour.d#L20
Alternatively you can pass through the RGB value (see the link
above for
How do I set the color of a curve with ggplotd?
Thanks.