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:14:09
matplotlib twinx legend
import numpy as np import matplotlib.pyplot as plt from matplotlib import rc rc('mathtext', default='regular') time = np.arange(10) temp = np.random.random(10)*30 Swdown = np.random.random(10)*100-10 Rn = np.random.random(10)*100-10 fig = plt.figure() a... 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 -
Python 2021-10-02 15:03:04
how to place a plot in a tkinter frame
from tkinter import * from pandas import * from math import sin import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg # Data for plot df = DataFrame({'A': range(20), 'B': [sin(i) for i in range(20... Add solution -
Python 2021-09-30 02:00:07
set axis labels python
# 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