I need to display non-numeric data by dates in a simple line graph. I am using matplotlib.
Here is a sample code.
import matplotlib.pyplot as plt xticks=['Jan','Feb','Mar','April','May'] x=[1,2,3,4,5] yticks = ['Windy', 'Sunny', 'Rainy', 'Cloudy', 'Snowy'] y=[2,1,3,5,4] plt.plot(x,y,'bo')

I want the label labels to leave some space from the origin. So they do not look very crowded. Should I use Fixedlocator for this? I would also like the chart to be a line showing markers for each point, for example, in this example. How can I achieve this?
source share