[Matplotlib-users] graphic scale

 [Matplotlib-users] graphic scale From: Xavier MERIAUX - 2004-08-30 15:24:57 ```Hi, I am a new user of matplotlib. I have already plot some data whit it but, I can't find the way to control the axis scales ... I know how to define the min/max number for each axis. Is it possible to define the intermediate scale values ?? For example , the x - axis marks are (automatically) choosen :0 , 0.2 , 0.4 , 0.6 , 0.8 , 1.0 Can I have instead the values 0, 0.5 , 1.0 written on the axis ? Best regards, Xavier. ```

 [Matplotlib-users] graphic scale From: Xavier MERIAUX - 2004-08-30 15:24:57 ```Hi, I am a new user of matplotlib. I have already plot some data whit it but, I can't find the way to control the axis scales ... I know how to define the min/max number for each axis. Is it possible to define the intermediate scale values ?? For example , the x - axis marks are (automatically) choosen :0 , 0.2 , 0.4 , 0.6 , 0.8 , 1.0 Can I have instead the values 0, 0.5 , 1.0 written on the axis ? Best regards, Xavier. ```
 Re: [Matplotlib-users] graphic scale From: John Hunter - 2004-08-31 04:13:05 ```>>>>> "Xavier" == Xavier MERIAUX 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 ```