From: John H. <jdh...@ac...> - 2004-08-31 04:13:05
|
>>>>> "Xavier" == Xavier MERIAUX <Me...@mr...> writes: Xavier> Hi, I am a new user of matplotlib. I have already plot Xavier> some data whit it but, I can't find the way to control the Xavier> axis scales ... I know how to define the min/max number Xavier> for each axis. Is it possible to define the intermediate Xavier> scale values ?? For example , the x - axis marks are Xavier> (automatically) choosen :0 , 0.2 , 0.4 , 0.6 , 0.8 , 1.0 Xavier> Can I have instead the values 0, 0.5 , 1.0 written on the Xavier> axis ? You can set the xticks with the following. set(gca(), xticks=[0, 0.5 , 1.0]) If you haven't had a chance yet to read the tutorial at http://matplotlib.sourceforge.net/tutorial.html, it should help somewhat. See the section "Controlling axes properties" Cheers, John Hunter |