# Customize modebar of python plotly plot inside Dash App

**URL:** https://community.plotly.com/t/customize-modebar-of-python-plotly-plot-inside-dash-app/27235
**Category:** 📊 Plotly Python
**Created:** [August 13, 2019, 10:12pm UTC](https://community.plotly.com/t/customize-modebar-of-python-plotly-plot-inside-dash-app/27235 "2019-08-13T22:12:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![steena](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@steena](https://community.plotly.com/u/steena)
#### Post date: [August 13, 2019, 10:12pm UTC](https://community.plotly.com/t/customize-modebar-of-python-plotly-plot-inside-dash-app/27235/1 "2019-08-13T22:12:25Z")

</div>

So I want to show a limited set of buttons in the modebar of a plotly plot rendered in Dash (for example, show all options excluding the lasso and pan options). I found this [solution](https://plot.ly/python/configuration-options/#remove-modebar-buttons) however according to [this page](https://plot.ly/python/renderers/#displaying-figures-using-dash) the show method does not work when the plot is in a Dash page. Is there some way to remove modebar buttons when the plot is in a Dash application?

---

<div class="post-metadata">

### Author: ![steena](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@steena](https://community.plotly.com/u/steena)
#### Post date: [August 13, 2019, 10:23pm UTC](https://community.plotly.com/t/customize-modebar-of-python-plotly-plot-inside-dash-app/27235/2 "2019-08-13T22:23:53Z")

</div>

Lol as soon as I posted it, I figured it out. Passed `config = {'modeBarButtonsToRemove':[List, of, Buttons, to, Remove]}` to dcc.Graph :

```
graph = dcc.Graph(
                id = "plot_metric",
                style = {"height" : "40rem"},
                figure = figure,
                config = {'modeBarButtonsToRemove': ['toggleSpikelines', "pan2d", "select2d", "lasso2d"]}
            )
```
