# Updating plot attribute (ComputeGraph) from map!

**URL:** <https://discourse.julialang.org/t/updating-plot-attribute-computegraph-from-map/135814>\
**Category:** General Usage\
**Tags:** question, makie, compute-graph\
**Created:** [February 24, 2026, 5:34pm UTC](https://discourse.julialang.org/t/updating-plot-attribute-computegraph-from-map/135814 "2026-02-24T17:34:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Post date:** [February 24, 2026, 5:34pm UTC](https://discourse.julialang.org/t/updating-plot-attribute-computegraph-from-map/135814/1 "2026-02-24T17:34:30Z")

</div>

I have a custom Makie recipe that has plenty of arguments. One of these arguments is a `performance` setting that allows to deactivate some features when the data to plot becomes too big, such as `text` calls, which lead to latency.  
This setting can be set manually, but I was wondering how to update it properly in a `ComputeGraph`, based on other arguments of the graph. I tried something along the lines of

```julia-auto
map!(plt.attributes, [:data1,:data2] do data1, data2
    if length(data1) > 1000
        update!(plt.attributes, performance=true) # Fails with ERROR: Attribute performance not found in ComputeGraph
    end
end

```

but that failed. Is there a supported and recommended way to do this ?

Note however that I use this property afterwards as e.g.

```julia-auto
if !performance[]
    text!(data1, string.(data1))
end

```

Which is probably in itself somewhat ill-advised, as it is not updated by subsequent modifications to `performance`. Still this is the only way I know to fully deactivate some plots, as even plots with `visible=false` can lead to large slow-downs.

Any advice would be greatly appreciated;
