How to Hide the Floating Toolbar in Plotly in Python Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report In this article, we'll see an easy way to hide the floating toolbar in Python Plotly using Python. When we hover the mouse pointer over the chart, we see a floating toolbar with a set of tools. At times, this toolbar can be a distraction. We just want the chart to appear without a floating toolbar to avoid distractions since we're not always sure what tool to use on our chart. Here, we will cover 3 examples as mentioned below: Plot with the floating toolbar in PlotlyPlot without the floating toolbar in PlotlyPlot with the fixed toolbar in PlotlyExamples to Hide the floating toolbar in PlotlyPlot with the Floating Toolbar in Plotly By default, the toolbar is only visible when we hover the mouse pointer over the chart. we see a floating toolbar with a set of tools. Python3 import plotly.express as px # using the dataset df = px.data.tips() # plotting the scatter chart plot = px.scatter(df, x='total_bill', y="tip") # showing the plot with the floating toolbar plot.show() Output: Plot without the Floating Toolbar in Plotly The .show() method that we all use to display our figures also accepts a config parameter to help us change the configuration of the chart by passing a dictionary to the config parameter which contains the options which we want to set. If we want the floating toolbar to never be visible, set the displayModeBar property to False in the figure configuration. plot.show(config = {'displayModeBar': False}) Python3 import plotly.express as px # using the dataset df = px.data.tips() # plotting the scatter chart plot = px.scatter(df, x='total_bill', y="tip") # showing the plot without floating toolbar in Plotly plot.show(config={'displayModeBar': False}) Output: Plot with the Fixed Toolbar in Plotly By default, the toolbar is only visible when we hover the mouse pointer over the chart. If we want the toolbar to always be visible, regardless of whether the user is currently hovering over the figure, set the displayModeBar property to True in the figure configuration. plot.show(config = {'displayModeBar': True}) Python3 import plotly.express as px # using the dataset df = px.data.tips() # plotting the scatter chart plot = px.scatter(df, x='total_bill', y="tip") # showing the plot with fixed floating toolbar in Plotly plot.show(config={'displayModeBar': True}) Output: Comment More infoAdvertise with us Next Article How to Hide the Floating Toolbar in Plotly in Python ishukatiyar16 Follow Improve Article Tags : Technical Scripter Python Technical Scripter 2022 Practice Tags : python Similar Reads How to change figure size in Plotly in Python In this article, we will discuss how we can change the figure size in Plotly in Python. Let's firstly take about Plotly in Python. Plotly  Python library provides us with an interactive open-source Plotly library that can support over 40 unique chart types that cover a wide list of statistical, fin 4 min read How to hide axis titles in plotly express figure with facets in Python? In this article, we will learn how to hide axis titles in a plotly express figure with facets in Python. We can hide the axis by setting the axis title as blank by iterating through for loop. We are hiding the axis only for X-axis and Y-axis so we have to compare this condition in each iteration Sy 2 min read How to create Tables using Plotly in Python? Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library 2 min read How to change a color bar in Plotly in Python In this article, we will learn how to change a color bar in Plotly Python. Different types Color-Scale names for Plotlyaggrnyl    burginferno    plasma    rdpu     ylgnbu    mattergeyseragsunset   burgyl    jet      plotly3redorylorbr    solarpiygblackbodycividismagenta    pubu 2 min read How to hide legend with Plotly Express and Plotly in Python? In this article, we will learn How to hide legend with Plotly Express and Plotly. Here we will discuss two different methods for hiding legend in plotly and plotly express, using two different examples for each to make it more clear. Syntax: For legend: fig.update_traces(showlegend=False)fig.update( 2 min read How to create Stacked bar chart in Python-Plotly? Plotly is a Python library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library 2 min read How to change the position of legend using Plotly Python? In this article, we will discuss how to change the position of the legend in Plotly using Python. The legend appears by default when variation in one object has to be depicted with reference to the other. Legend makes it easier to read a graph since it contains descriptions for the color code or key 2 min read Python Plotly - Exporting to Static Images In this article, we will discuss how to export plotly graphs as static images using Python. To get the job done there are certain additional installations that need to be done. Apart from plotly, orca and psutil have to be installed. psutil (python system and process utilities) is a cross-platform P 2 min read Python Plotly: How to set the range of the y axis? In this article, we will learn how to set the range of the y-axis of a graph using plotly in Python. To install this module type the below command in the terminal: pip install plotly Example 1: Using layout_yaxis_range as a parameter In this example, we have first import the required libraries i.e 3 min read Like