aberdysh
aberdysh

Reputation: 1664

How to plot circle around data point in Julia's Gadfly?

Would like to plot circle with specified radius, color, around data point in Julia's Gadfly? Is this achievable?

Upvotes: 3

Views: 894

Answers (1)

Reza Afzalan
Reza Afzalan

Reputation: 5746

I set default_color and panel_fill the same:

julia> tm=Theme(panel_fill=colorant"black", default_color=colorant"black");

julia> plot(x=rand(10), y=rand(10),tm)

enter image description here

EDIT:
to control points size and width:

julia> tm.default_point_size=4pt
julia> tm.highlight_width=4pt

while circle colors is determined by highlight_color() function related to their fill color.

Upvotes: 4

Related Questions