Answers for "matplotlib set y label"

0

changing axis labels matplotlib

import matplotlib.pyplot as plt

fig, ax = plt.subplots()

labels = [item.get_text() for item in ax.get_xticklabels()]
labels[1] = 'Testing'

ax.set_xticklabels(labels)
Posted by: Guest on May-13-2020
0

python no label in legend matplot

ax.plot(randn(1000).cumsum(), 'k.', label='_nolegend_')
Posted by: Guest on May-08-2020

Python Answers by Framework

Browse Popular Code Answers by Language