python remove x and y values on plots

Solutions on MaxInterview for python remove x and y values on plots by the best coders in the world

showing results for - "python remove x and y values on plots"
Beatrice
08 Jan 2019
1plt.gca().axes.get_xaxis().set_visible(False)
2plt.gca().axes.get_yaxis().set_visible(False)
Aleah
18 Nov 2018
1# Basic syntax:
2ax.set_yticklabels([])
3ax.set_xticklabels([])
4
5# Example usage:
6import matplotlib.pyplot as plt
7
8# Create Figure and Axes instances
9fig,ax = plt.subplots(1)
10
11# Make your plot, set your axes labels
12ax.plot(range(1, 10),range(10, 1, -1))
13ax.set_ylabel('Y Label')
14ax.set_xlabel('X Label')
15
16# Turn off tick labels — tick marks remain but values are removed
17ax.set_yticklabels([])
18ax.set_xticklabels([])
19
20plt.show()
queries leading to this page
python have not on x axishide y axis pyplotremove xlabel pythonpython 3a ax ylabesl ticksplt show x label but not axismatplotlib 3a hide axis subplot xlabelmatplotlib no x axispython showing only some x axis labelsmatplotlib hide x labematplotlib no y axispython remove x and y values on plotsplt drop x labelremove yticks matplotlibremove x label matplotlibplt disable labelmatplotlib hide ylabelmatplotlib leave x axis without textpyplot remove axis ticksmatplotlib no labelshow to hide subplot ticksmatplotlib remove xlabely axis off matplotlibax histy axes get xaxis 28 29 set visible 28false 29remove tick labels matplotlibmatplotlib leave x axis emptymatplotlib no x y labelmatplotlib delete y values from plotpandas plot no x axis labelremove labels in bar plot pythonpyplot no x axis labelsmatplotlib x axis label not showingset visible 28false 29plt drop x axesmatplotlib hide y axis tick labelsmatplotlib hide axis ticksmatplot lib hide x and y labelsplt remove y axishide labels matplotlibplt how to now show the value while plotingplt plot remove x axismatplotlib x axis offturn off y ticks and labels matplotlibmathplotlib axis no ticks or numbersturn axis ticks off matplotlibhide x label remove x axis in matplotlibmatplotlib don 27t show x axis labelsmatplotlib turn off axis labelsno x axis pythonhow to remove x and y axis pythonmatplotlb text without axis numbersmatplotlib x axis invisiblehide y axis matplotlibset tickmarks not visible matplotlibmatplotlib python remove oarameter labels from x axisplt remove ylabeldisable xlabel matplotlibmatplotlib no x axis labelshow to remove x and y axis in plt show 28 29why is there a b appearing on the x axis labels pythonhide yticksmatplotlib hide axisplt hide x and y axis pythonhide every other mark in matplotlibx axis labels are not printing matplotlibplt remove axis tickshide points in pythonremove x axis ticks matplotlibpython remove tick valuex axis labels not showing pythonplt plot not showing x axis labelpython turn off labelxaxis name plt hideno show x labels matplotlibturn off axis ticks matplotlibplt plot remove title y axishide x axis values matplotlibplot python ylable nopython remove x and y values on plots