What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-07 05:42:10
matplotlib axis labels
# 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-11-04 22:01:07
vs
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow as tf import zipfile from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL import Image &... Add solution -
Python 2021-11-03 23:07:07
matplotlib secondary x axis
import matplotlib.pyplot as plt import numpy as np import datetime import matplotlib.dates as mdates from matplotlib.transforms import Transform from matplotlib.ticker import ( AutoLocator, AutoMinorLocator) fig, ax = plt.subplots(constrained_layout=... Add solution -
Python 2021-11-02 22:59:10
RuntimeError: Error in qhull Delaunay triangulation calculation: singular input data (exitcode=2); use python verbose option (-v) to see original qhull error.
from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = fig.gca(projection='3d') X = np.arange(-5, 5, 0.2... 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