Matplotlib offers simple but powerful plotting interface, versatile plot types and robust customization. Matplotlib 2.x By Example illustrates the methods and applications of various plot types through real world examples. It begins by giving readers the basic know-how on how to create and customize plots by Matplotlib. Matplotlib has native support for legends. Legends can be placed in various positions: A legend can be placed inside or outside the chart and the position can be moved. The legend() method adds the legend to the plot. In this article we will show you some examples of legends using matplotlib. Related course. Data Visualization with Matplotlib ... Apr 18, 2017 · The scale consists of two Transform classes, each of which needs to provide a transform_non_affine method. One class needs to transform from data to display coordinates, which would be log(a+1), the other is the inverse and needs to transform from display to data coordinates, which would in this case be exp(a)-1. @neggert: Nice workaround. Wish I had seen it before I wasted 1 hour to try and fix it ;) From a beginners standpoint I would definitely vote for making it the default (unless there are obvious reasons not to do so). The following are code examples for showing how to use matplotlib.pyplot.semilogx().They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.