What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-10-29 06:02:17
multiple scatter plots in python
import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(111) ax1.scatter(x1, y1, s = 10, c = 'b', label = 'elbow') ax1.scatter(x2, y2, s = 10, c = 'r', label = 'shoulder') plt.legend(loc='upper left'); plt.show() Add solution -
TypeScript 2021-10-28 20:47:12
matplotlib subplots size
f, axs = plt.subplots(2,2,figsize=(15,15)) Add solution -
Other 2021-10-28 02:12:09
Plot Wavelet modes
"""A visual illustration of the various signal extension modes supported in PyWavelets. For efficiency, in the C routines the array is not actually extended as is done here. This is just a demo for easier visual explanation of the behavior ... Add solution -
Python 2021-10-24 10:07:08
change xlabel python
import matplotlib.pyplot as plt fig, ax = plt.subplots() # We need to draw the canvas, otherwise the labels won't be positioned and # won't have values yet. fig.canvas.draw() labels = [item.get_text() for item in ax.get_xticklabels()] labels[1] = 'Tes... Add solution -
Python 2021-10-22 13:17:03
pandas creating multiple grid subplots
plt.figure(figsize=(10, 12)) # The first subplot plt.subplot(3, 2, 1) plt.plot(traffic_per_day['Monday']['Hour (Coded)'], traffic_per_day['Monday']['Slowness in traffic (%)']) plt.title('Monday') # The second subplot plt.subplot(3, 2, 2) plt.plo... Add solution