I currently have some separate data frames that aren’t particularly amenable to being combined; but I need to plot them on the same plot but with a single legend/color key. I have done so with the following code, but when I “hide” the legend, it’s still apparent the spacing between the two plots hasn’t decreased, and there’s still a single colored square. (Note the following code is being made for a bunch of plots, hence the map).
temp=map(x->time_behavior(x),instances) atemp=map(x->agent_time_behavior(x),instances) df=zip(temp,atemp) set_default_plot_size(21cm, 8cm) plots=map(x->hstack(plot(x,x=:step,y=:value,color=:Strategy, Geom.bar(position=:stack),Guide.ylabel("Count"), Guide.xlabel("Time Step"), Guide.colorkey(title="",labels=[""]), ), plot(x,x=:id,y=:value,color=:variable, Geom.bar(position=:stack), Guide.ylabel("Count"), Guide.xlabel("Agent")) ), df)
Can anybody help me get this resolved? I am so close and I need these results for a conference presentation in a few days.