What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-09-25 14:45:07
add dots to line matplotlib
#Python, matplotlib from matplotlib import pyplot as plt #Create the regular line graph with plt.plot, then add the marker argument. plt.plot(df["col1"], marker='o') #Example of a few markers: - solid line style -- ... Add solution -
Python 2021-09-25 13:01:03
animate time series python
import numpy as np import matplotlib.pyplot as plt from matplotlib import animation dt = 0.01 tfinal = 1 x0 = 0 sqrtdt = np.sqrt(dt) n = int(tfinal/dt) xtraj = np.zeros(n+1, float) trange = np.linspace(start=0,stop=tfinal ,num=n+1) xtraj[0] = x0 for i ... Add solution -
Python 2021-09-01 06:11:02
matplotlib line plot
from matplotlib import pyplot as plt # Median Developer Salaries by Age dev_x = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35] dev_y = [38496, 42000, 46752, 49320, 53200, 56000, 62316, 64928, 67317, 68748, 73752] plt.plot(dev_x, dev_y) plt.xlabe... Add solution