# Plot-gradient problem

**URL:** https://forum.foleysfinest.com/t/plot-gradient-problem/161
**Category:** PluginGuiMagic
**Created:** [6 April 2023 18:25 UTC](https://forum.foleysfinest.com/t/plot-gradient-problem/161 "2023-04-06T18:25:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jos](https://forum.foleysfinest.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jos](https://forum.foleysfinest.com/u/jos)
#### Post date: [6 April 2023 18:25 UTC](https://forum.foleysfinest.com/t/plot-gradient-problem/161/1 "2023-04-06T18:25:24Z")

</div>

The mostly minimized XML below loads the screenshot shown shown. I have to eliminate the fill below the plot line because I am working with notch filters, and all of those fills add up to obscure the notches. I discovered that the plot-gradient is causing my problem. When I set its alpha to zero, I get strings like `none(0% 0,100% ffffffff)` which still does not work because the alpha is set on only one side of the gradient. Manually editing the second value to 00xxxxxx fixes the problem temporarily, but it is very brittle (because the Editor cannot set it that way) and updates stop working for other properties in the `Plot` inspector. I think the alpha setting should hit _both sides_ of the gradient, or more sliders should be used, etc.

```auto
<?xml version="1.0" encoding="UTF-8"?>

<magic>
  <View id="root" resizable="1" resize-corner="1" min-width="400" min-height="400"
        margin="0" tooltip-text="silver" tooltip-background="FF210444"
        tooltip-outline="FF9581AD" lookAndFeel="FoleysFinest">
    <Plot source="plotSum"/>
    <!-- plot-fill-color="FF23F242" plot-color="FFEBEBE0"
          plot-decay="0" plot-inactive-color="FF0C00A3" plot-gradient="none(0% f50,100% ffffffff)"/> -->
  </View>
</magic>

```

 ![Screenshot 2023-04-06 at 11.17.09 AM](https://forum2.foleysfinest.com/uploads/default/original/1X/b09a76be2a239449c64b512ffd95b52f9f404fcb.jpeg)

---

<div class="post-metadata">

### Author: ![daniel](https://forum.foleysfinest.com/user_avatar/forum.foleysfinest.com/daniel/32/5_2.png) [@daniel](https://forum.foleysfinest.com/u/daniel)
#### Post date: [6 July 2023 22:03 UTC](https://forum.foleysfinest.com/t/plot-gradient-problem/161/2 "2023-07-06T22:03:35Z")

</div>

Thank you for reporting and apologies for the long delay.

The orange is an unfortunate choice for the default colour.

I managed to get rid of it by selecting the Types: Plot node and set the `plot-inactive-fill-color` to transparent black. Unfortunately I had to click “Refresh” from the File menu.

 ![Screenshot 2023-07-07 at 00.02.17](https://forum2.foleysfinest.com/uploads/default/original/1X/b943bcfa300e2a96531ecf8493f42c1598743d20.jpeg)

There seems to be a missing update for changes in the Stylesheet node.

---

<div class="post-metadata">

### Author: ![daniel](https://forum.foleysfinest.com/user_avatar/forum.foleysfinest.com/daniel/32/5_2.png) [@daniel](https://forum.foleysfinest.com/u/daniel)
#### Post date: [6 July 2023 22:31 UTC](https://forum.foleysfinest.com/t/plot-gradient-problem/161/3 "2023-07-06T22:31:40Z")

</div>

The missing update is now fixed on develop:

> <https://github.com/ffAudio/foleys_gui_magic/commit/62311df6012dcec0b4d84833016162de2c98a66a>

Since it only happens when editing, it should be fine.
