Daniel,
Thanks, works now perfectly, I had to restart julia after checkout to get
it working. In fact this was my suspicion but did not know how to get the
master.
This is indeed a very friendly community, many thanks!
Kaj
On Saturday, January 10, 2015 at 9:01:03 PM UTC+2, Daniel Jones wrote:
>
> Kaj,
>
> Guide.annotation was recently added. I haven't tagged a new version since
> its inclusion, so you need to either checkout master (with
> Pkg.checkout("Gadfly")) or wait until I tag 0.3.11.
>
> On Friday, January 9, 2015 at 4:42:38 PM UTC-8, Kaj Wiik wrote:
>>
>> 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?
>>>>
>>>>
>>>>