# Getting Attributes for Makie Axis and Lines

**URL:** <https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500>\
**Category:** Specific Domains\
**Tags:** visualization, makie\
**Created:** [September 20, 2022, 2:53am UTC](https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500 "2022-09-20T02:53:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Post date:** [September 20, 2022, 2:53am UTC](https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500/1 "2022-09-20T02:53:03Z")

</div>

There are many attributes of axes and plots that one might want to be able to inspect and change. I used to be able to find a list of these possibilities with Makie by doing the following.

```julia
fig, axis, lineplot = lines(1:10, (1:10) .^ 3; color=:red, linewidth=2)
# axis.attributes will list out all axis attributes (this does not work anymore)
# lineplot.attributes will list out all line plot attributes (this still works)

```

Unfortunately this no longer seems to work for `Axis` in Makie 0.17.13 (what I assume Pluto’s download manager is grabbing).

I see in some of the documentation there is this thing called [`MakieLayout`](https://docs.makie.org/v0.15/examples/layoutables/axis/index.html#modifying_ticks) that _appears_ to serve a similar purpose but there is no documentation available to validate that observation.

Any suggestions on how I can go about determining the `.attributes` for an axis object now?

---

<div class="post-metadata">

**Author:** ![fatteneder](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fatteneder/32/33991_2.png) [@fatteneder](https://discourse.julialang.org/u/fatteneder)\
**Post date:** [September 20, 2022, 7:57am UTC](https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500/2 "2022-09-20T07:57:37Z")

</div>

The available attributes for an `Axis` object are listed in the docs now, e.g. `? Axis`.  
There is a slight difference between `Block` objects (previously called `Layoutablels`) and plot elements (or `recipes`). To get the attributes for a block you have to ask for the docs of the type, e.g. `? Axis`, whereas for the latter you have to ask for the plotting function, e.g. `? lines`.

To inspect and change attributes you can either pass a keyword argument or access them directly, e.g. `axis.xlabel`.
