Skip to content

Commit 043153d

Browse files
committed
Use plotname as title
1 parent f91074f commit 043153d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/plotcli/draw.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ unittest
9292
void draw(Appender!(typeof(aesDefaults())[]) aes)
9393
{
9494
import std.range : empty, front;
95-
import ggplotd.ggplotd : GGPlotD;
95+
import ggplotd.ggplotd : title, GGPlotD;
9696
import ggplotd.aes : group;
9797
import ggplotd.axes : xaxisLabel, yaxisLabel;
9898
import ggplotd.colour : colourGradient;
@@ -125,6 +125,7 @@ void draw(Appender!(typeof(aesDefaults())[]) aes)
125125
gg.put(discreteLegend);
126126
}
127127
gg.put( geomType( ps ) );
128+
gg.put( title( ps.front.plotname ) );
128129
version(plotcliGTK)
129130
{
130131
if (ps.front.format == "gtk")

0 commit comments

Comments
 (0)