Remove automatically generated color key in Gadfly plot?
<p>I'm just starting out with Julia and trying to create a simple sin/cos plot using <a href="http://gadflyjl.org/" rel="nofollow noreferrer">Gadfly</a>. It all works well, however for some reason Gadfly insists on inserting its own <code>Color... f1 f2</code> legends into the plot (see the red-outlined portion in the image). Could anyone please tell me what I should do to remove it? I've searched but couldn't find anything. The code that generates this is given below.</p>

<p>I'm using Julia 0.4.6 on Windows 10.</p>

<p><a href="https://i.stack.imgur.com/82bCN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/82bCN.png" alt="Plot Output"></a></p>

<pre><code>using Gadfly

set_default_plot_size(9inch, 9inch/golden)

πs = Char(960) # pi in string form
ticklabel_data = ["$πs/2", πs, "3$πs/2", "2$πs", "5$πs/2"]

global c = 0
incr = () -&gt; global c = (c + 1) % 5 == 0? 1 : (c + 1) % 5
ticklabels = () -&gt; ticklabel_data[incr()]

plot([sin, cos],
     0, 2 * pi,
     Guide.xticks(ticks=[pi/2, pi, 3 * pi / 2, 2 * pi]),
     Scale.x_continuous(labels = x -&gt; @sprintf "%s" ticklabels()),
     Guide.manual_color_key("Color", ["sin", "cos"], ["#D4CA3A", "deepskyblue"])
)
</code></pre>