# How to specify point vs fill for Geom.point in Gadfly?

**URL:** https://discourse.julialang.org/t/how-to-specify-point-vs-fill-for-geom-point-in-gadfly/52097
**Category:** Visualization
**Tags:** question, gadfly
**Created:** [December 19, 2020, 5:52pm UTC](https://discourse.julialang.org/t/how-to-specify-point-vs-fill-for-geom-point-in-gadfly/52097 "2020-12-19T17:52:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mkarikom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkarikom/32/7096_2.png) [@mkarikom](https://discourse.julialang.org/u/mkarikom)
#### Post date: [December 19, 2020, 5:52pm UTC](https://discourse.julialang.org/t/how-to-specify-point-vs-fill-for-geom-point-in-gadfly/52097/1 "2020-12-19T17:52:19Z")

</div>

In the [gallery example here](http://gadflyjl.org/dev/lib/geometries/#Gadfly.Geom.label) we have:

```julia
using Gadfly, RDatasets
set_default_plot_size(21cm, 8cm)
p1 = plot(dataset("MASS", "mammals"), x="Body", y="Brain", label=1,
     Scale.x_log10, Scale.y_log10, Geom.point, Geom.label)
p2 = plot(dataset("MASS", "mammals"), x="Body", y="Brain", label=1,
     Scale.x_log10, Scale.y_log10, Geom.label(position=:centered))
hstack(p1,p2)

```

Which generates (zoomed in):

![points](https://global.discourse-cdn.com/julialang/original/3X/c/2/c266f5cdac383989e67f927a0b6f9ef5520c56c3.png)

How do I change the color of the white outline around the points (or at least make it the same as fill[blue])?

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [December 19, 2020, 7:07pm UTC](https://discourse.julialang.org/t/how-to-specify-point-vs-fill-for-geom-point-in-gadfly/52097/2 "2020-12-19T19:07:32Z")

</div>

This option does not plot the outline around the points: `Geom.beeswarm`

---

<div class="post-metadata">

### Author: ![evanfields](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evanfields/32/1744_2.png) [@evanfields](https://discourse.julialang.org/u/evanfields)
#### Post date: [December 19, 2020, 8:25pm UTC](https://discourse.julialang.org/t/how-to-specify-point-vs-fill-for-geom-point-in-gadfly/52097/3 "2020-12-19T20:25:34Z")

</div>

If you’re just looking to hide the white outline, you can use `Theme` or `style` with `highlight_width=0mm`: [docs](http://gadflyjl.org/stable/lib/gadfly/#Gadfly.Theme). Hiding the outline plus making the points a bit bigger should produce the same result as making the highlight color match the point color, right?

I’m not sure how to change the highlight color, sorry.

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [December 19, 2020, 10:12pm UTC](https://discourse.julialang.org/t/how-to-specify-point-vs-fill-for-geom-point-in-gadfly/52097/4 "2020-12-19T22:12:53Z")

</div>

@mkarikom, changing the **alpha** parameter in code below, allows varying from transparent point filling to opaque, continuously. Indicated also parameters for point size and [color](http://juliagraphics.github.io/Colors.jl/stable/namedcolors/).

```julia
p1 = plot(dataset("MASS", "mammals"), x="Body", y="Brain", label=1,
     Scale.x_log10, Scale.y_log10, Geom.point, Geom.label,
     Theme(discrete_highlight_color = identity, point_size = 3pt,
           point_shapes=[Shape.circle], alphas=[0.3], default_color="darkgreen") )

```

`alpha = 0.3`:

 ![Gadfly_alpha_filling](https://global.discourse-cdn.com/julialang/original/3X/2/6/265893a799e33ef2cd95be6ec5bcba00c59214cb.png)  
`alpha = 1.0`:  
 ![Gadfly_alpha_eq1_filling](https://global.discourse-cdn.com/julialang/original/3X/7/1/712b8b6fa25661473c43e98d863c2f45d4eb624e.png)
