Julia 0.3.5
Gadfly 0.3.10

julia> plot(sin, 0, 2pi, Guide.annotation(compose(context(), circle([pi/2, 
3*pi/2], [1.0, -1.0], [2mm]), fill(nothing), stroke("orange"))))
ERROR: annotation not defined

??

Kaj


On Friday, January 9, 2015 at 6:28:03 AM UTC+2, Sheehan Olver wrote:
>
> I came across this which answers my question:
>
> http://gadflyjl.org/guide_annotation.html
>
> On Wednesday, December 10, 2014 at 8:05:02 AM UTC+11, Sheehan Olver wrote:
>>
>>
>> I want to add, say, a triangle or circle to a Gadfly plot.  The following 
>> works
>>
>> compose(render(plot(x=1:10,y=1:10)),circle(0.5,0.5,0.1))
>>
>> But I want the circle to use the same coordinate system as the plot.  Any 
>> advice?
>>
>>
>>

Reply via email to