![]() ![]() In last, we use show() method to display the graph.Here we pass the color parameter and set the color to be white. plt.yticks() method is used for removal of ticks labels at the y-axis.plt.xticks() method is used for removal of ticks labels at the x-axis.plt.plot() method is used for the creation of the graph.After this, we define data points of the x-axis and y-axis. In the above example, we import matplotlib.pyplot library.Let’s understand the concept more clear with the help of an example: # Import Library The above-used parameter is defined below: The syntax to remove tick labels by setting color as given below: # X-axis tick label Use xticks() and yticks() method and pass the color argument as ‘w’. If the background color is not white, then this method doesn’t work. ![]() By setting the color of tick labels as white we can easily hide tick labels.īasically, it does make the tick labels invisible but set the label color to be white. ![]() If the background color of the plot is white. Matplotlib remove tick labels by setting color
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |