I'm trying to figure out how to change the font size for text written using compose.jl. The text is being written within a Gadfly plot using Guide.annotation, and I can see how to change other font sizes within the plot (i.e. key_title_font_size etc.) but there doesn't seem to be a "default_font_size" parameter within Gadfly. I'm sure compose() must have some font size parameter, but I can't see what it is. My code is here:
modelplot = plot(all_data_to_plot, x=:value,y=:sample, colour=:PFAM_Model, Geom.bar(position=:dodge,orientation=:horizontal),
Guide.ylabel(""),
Guide.xlabel("rpoB equivalents"),
Theme(bar_highlight=color(colorant"black"),
key_position=:none,
default_color=color(colorant"black"),
panel_stroke=color(colorant"black"),
grid_color=color(colorant"gray"),
major_label_font="Helvetica",
major_label_color=color(colorant"black"),
key_title_color=color(colorant"white"),
minor_label_font="Helvetica",
key_label_font="Helvetica",
minor_label_color=color(colorant"black")),
Guide.annotation(compose(context(),
text(all_data_to_plot[:value]+0.01,all_data_to_plot[:read_plot_pos],all_data_to_plot[:reads],[hleft])))
)
I'd be grateful for anyone who could point me in the right direction.
EDIT: I tried adding a "point_label_font_size" within Gadfly, but that doesn't change any of the font size for the text printed within Guide.annotation, so I still don't know how to do this:
modelplot = plot(all_data_to_plot, x=:value,y=:sample, colour=:PFAM_Model, Geom.bar(position=:dodge,orientation=:horizontal),
Guide.ylabel(""),
Guide.xlabel("rpoB equivalents"),
Theme(bar_highlight=color(colorant"black"),
key_position=:bottom,
default_color=color(colorant"black"),
panel_stroke=color(colorant"black"),
grid_color=color(colorant"gray"),
major_label_font="Helvetica",
major_label_color=color(colorant"black"),
key_title_color=color(colorant"white"),
minor_label_font="Helvetica",
key_label_font="Helvetica",
minor_label_color=color(colorant"black"),
point_label_font_size=32pt),
Guide.annotation(compose(context(),
text(all_data_to_plot[:value]+0.01,all_data_to_plot[:read_plot_pos],all_data_to_plot[:reads],[hleft])))
)