Re : displaying ticklabels on a graph

See enclosed the python file of my code.
The code is not a professional one because i just start python and matplotlib.

Thanks,

Naga

dographcsv.py (5.66 KB)

···

De : John Hunter <jdh2358@…761…>
À : Clyng11 <coulibalynaga@…450…>
Cc : matplotlib-devel@lists.sourceforge.net
Envoyé le : Sam 30 avril 2011, 22h 45min 22s
Objet : Re: [matplotlib-devel]
displaying ticklabels on a graph

On Wed, Apr 27, 2011 at 4:17 AM, Clyng11 <coulibalynaga@…450…> wrote:

I run this code, but labels do not appear under the ticks.

 # label the X ticks with years
 self.mpl.canvas.ax.set_xticks(np.arange(len(years))+width/2,

[int(year) for year in years])
self.mpl.canvas.ax.set_xticklabels([str(year) for year in years])

I Need an help.

Could you post a complete, free-standing example that we can run that
exposes your problem?