Matplotlib – global legend and title aside subplots

Global title: In newer releases of matplotlib one can use Figure.suptitle() method of Figure: import matplotlib.pyplot as plt fig = plt.gcf() fig.suptitle(“Title centered above all subplots”, fontsize=14) Alternatively (based on @Steven C. Howell’s comment below (thank you!)), use the matplotlib.pyplot.suptitle() function: import matplotlib.pyplot as plt # plot stuff # … plt.suptitle(“Title centered above all subplots”, … Read more

Changing navigation title programmatically

You change the title by changing the title of the view controller being displayed: viewController.title = “some title” Normally this is done in view did load on the view controller: override func viewDidLoad() { super.viewDidLoad() self.title = “some title” } However, this only works if you have your view controller embedded in a UINavigationController. I … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)