Thanks Tom, this was helpful.
FYI, with the newer version the command is:
using Compose
final = compose(context(),
(context(.5, 0.31 ,0.4, 0.5), render(myplot_1)),
(context(0, 0, 1, 1), render(myplot_2)))
draw(PDF("model.pdf", 6inch, 4inch), final)
where myplot_1 and myplot_2 are Gadfly plots e.g. myplot_1 =
plot(x=rand(1:10, 10),y=rand(1:10, 10), Geom.point)
On Monday, September 28, 2015 at 2:32:55 PM UTC+2, Stephan Buchert wrote:
>
> Thanks for the quick reply. I think, this will work.
>
> Am Montag, 28. September 2015 13:43:53 UTC+2 schrieb Tom Breloff:
>>
>> I don't think it's directly built in, but here's how you would do it:
>> ("p1.o[2]" and "p2.o[2]" are the Gadfly.Plot objects that are returned
>> from Gadfly.plot commands:
>>
>> [image: Inline image 1]
>>
>> On Mon, Sep 28, 2015 at 7:11 AM, Stephan Buchert <[email protected]>
>> wrote:
>>
>>> I'm trying out the different options to plot in Julia.
>>>
>>> Gadfly seems to lack the option to draw a plot at a specified
>>> location/size on the page, like for example as an inset in another plot?
>>>
>>> Would it be possible to add an interface for doing this? I have been
>>> staring at the code for hstack/vstack, but this stuff is too abstract for
>>> me.
>>>
>>> Regards,
>>> Stephan
>>>
>>>
>>>
>>