What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-24 11:50:18
add y axis label matplotlib
plt.xlabel("X axis label") Add solution -
Python 2022-03-20 00:15:05
add x axis label python
plt.xlabel("X axis label") Add solution -
Python 2022-02-01 20:30:14
random forrest plotting feature importance function
def plot_feature_importances(model): n_features = data_train.shape[1] plt.figure(figsize=(20,20)) plt.barh(range(n_features), model.feature_importances_, align='center') plt.yticks(np.arange(n_features), data_train.columns.values) pl... Add solution -
Python 2022-01-24 01:55:39
xaxis matplotlib
import matplotlib.pyplot as plt x = [0.00001,0.001,0.01,0.1,0.5,1,5] # create an index for each tick position xi = list(range(len(x))) y = [0.945,0.885,0.893,0.9,0.996,1.25,1.19] plt.ylim(0.8,1.4) # plot the index for the x-values plt.plot(xi, y, marker='... Add solution -
Python 2022-01-22 02:35:30
how to load wav file python
import matplotlib.pyplot as plt from scipy import signal from scipy.io import wavfile sample_rate, samples = wavfile.read('path-to-mono-audio-file.wav') frequencies, times, spectrogram = signal.spectrogram(samples, sample_rate) plt.pcolormesh(times, fre... Add solution