Skip to content

Commit bc1bf3a

Browse files
committed
Only use plotname and plotID as title for gtk format
In all other cases it is part of the filename
1 parent 043153d commit bc1bf3a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/plotcli/draw.d

Lines changed: 4 additions & 3 deletions
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 : title, GGPlotD;
95+
import ggplotd.ggplotd : GGPlotD;
9696
import ggplotd.aes : group;
9797
import ggplotd.axes : xaxisLabel, yaxisLabel;
9898
import ggplotd.colour : colourGradient;
@@ -103,7 +103,7 @@ void draw(Appender!(typeof(aesDefaults())[]) aes)
103103
version(plotcliGTK)
104104
{
105105
import core.thread : Thread;
106-
import ggplotd.ggplotd : Facets;
106+
import ggplotd.ggplotd : title, Facets;
107107
import ggplotd.gtk : GTKWindow;
108108
static GTKWindow[string] windows;
109109
auto facets = Facets();
@@ -125,11 +125,12 @@ void draw(Appender!(typeof(aesDefaults())[]) aes)
125125
gg.put(discreteLegend);
126126
}
127127
gg.put( geomType( ps ) );
128-
gg.put( title( ps.front.plotname ) );
129128
version(plotcliGTK)
130129
{
131130
if (ps.front.format == "gtk")
132131
{
132+
gg.put( title(
133+
ps.front.plotname ~ "_" ~ ps.front.plotID) );
133134
facets.put( gg );
134135
} else {
135136
gg.save(ps.front.plotname ~ ps.front.plotID ~ "." ~

0 commit comments

Comments
 (0)