What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-10 05:14:07
Plotting keras model trainning history
history = model.fit() print(history.history.keys()) import matplotlib.pylab as plt from matplotlib.pyplot import figure figure(figsize=(8, 6)) plt.plot(history.history['loss']) plt.plot(history.history['val_loss']) plt.title('model loss') plt.ylabel('los... Add solution -
Python 2021-10-09 16:07:03
python draw polygon
# credit to the Stack Overflow user in the source link import matplotlib.pyplot as plt coord = [[1,1], [2,1], [2,2], [1,2], [0.5,1.5]] coord.append(coord[0]) # repeat the first point to create a 'closed loop' xs, ys = zip(*coord) # create lists of x an... Add solution -
Python 2021-10-08 16:22:07
how download library python vscode
""" example: install matplotlib + numpy open commandprompt(Win + R -> cmd) """ #fist of all make sure u have python installed py -3 --version #make the python project #code: import matplotlib.pyplot as plt import numpy as... Add solution -
Python 2021-10-08 05:13:03
trends in yearly data python
import matplotlib.pyplot as pltimport matplotlib.dates as mdatesfig, ax = plt.subplots()ax.grid(True)year = mdates.YearLocator(month=1)month = mdates.MonthLocator(interval=3)year_format = mdates.DateFormatter('%Y')month_format = mdates.DateFormatter('%m')... Add solution -
Python 2021-10-07 17:17:08
label axis matplotlib
# Basic syntax: plt.xlabel("X axis label") # Add ", fontsize = #" to control fontsize plt.ylabel("Y axis label") # Example usage: plt.plot(range(5)) plt.xlabel("X axis label") plt.ylabel("Y axis label") p... Add solution