# Valid values for attributes: is there a list or a way to look them up?

**URL:** https://discourse.julialang.org/t/valid-values-for-attributes-is-there-a-list-or-a-way-to-look-them-up/79386
**Category:** Visualization
**Tags:** plotting, makie
**Created:** [April 12, 2022, 12:27pm UTC](https://discourse.julialang.org/t/valid-values-for-attributes-is-there-a-list-or-a-way-to-look-them-up/79386 "2022-04-12T12:27:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![weltenbummler](https://avatars.discourse-cdn.com/v4/letter/w/82dd89/32.png) [@weltenbummler](https://discourse.julialang.org/u/weltenbummler)
#### Post date: [April 12, 2022, 12:27pm UTC](https://discourse.julialang.org/t/valid-values-for-attributes-is-there-a-list-or-a-way-to-look-them-up/79386/1 "2022-04-12T12:27:20Z")

</div>

Hello,  
In makie, I can look up a list with attributes by e.g. writing

```julia
fig = Figure()
ax = Axis(fig[1,1])
ax.attributes

```

It lists the attributes and shows the current settings. However, how can I find out the valid values that I can set for each attribute? Is there a command for it, or is there a list somewhere in the documentation?

For example, under `alignmode`, the help and documentation shows that the default is `Inside()` but it doesn’t seem to show other options that are possible.

Thank you.

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [April 12, 2022, 1:37pm UTC](https://discourse.julialang.org/t/valid-values-for-attributes-is-there-a-list-or-a-way-to-look-them-up/79386/2 "2022-04-12T13:37:20Z")

</div>

For alignmodes there’s this part of the docs [https://makie.juliaplots.org/stable/examples/layoutables/gridlayout/#alignment](https://makie.juliaplots.org/stable/examples/layoutables/gridlayout/#alignment) although I still have to add `Mixed` to it.

Typing the attributes is a work in progress, there are currently efforts underway to limit what you can put into them (if possible) and document the options better.

---

<div class="post-metadata">

### Author: ![weltenbummler](https://avatars.discourse-cdn.com/v4/letter/w/82dd89/32.png) [@weltenbummler](https://discourse.julialang.org/u/weltenbummler)
#### Post date: [April 14, 2022, 10:40am UTC](https://discourse.julialang.org/t/valid-values-for-attributes-is-there-a-list-or-a-way-to-look-them-up/79386/3 "2022-04-14T10:40:23Z")

</div>

Thank you. It might be useful to implement the input checks via a function that returns all valid options for a given attribute. Users could then call that function to see the options available.
