From: Alan G I. <ai...@am...> - 2004-09-21 01:50:24
|
On Thu, 09 Sep 2004, John Hunter apparently wrote: > # set the locations of the xticks > xticks( arange(6) ) > # set the locations and labels of the xticks > xticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') ) Just for context, there is much I can do with Matplotlib that I cannot do in gnuplot, and vice versa. Naturally I want the best of both worlds ... In gnuplot, I can set xtics axis to put the tics (both the tics themselves and the accompanying labels) along the zeroaxis (If the zeroaxis is very close to the border, the axis option will move the tic labels to outside the border.) Now that you have given us axhline as a generalization of gnuplot's set xzeroaxis please consider letting xticks take an optional "loc" argument, which could either be "border" or a number to be interpreted as a 'y' value. So, e.g., axhline() xticks(arange(5),loc=0) would draw an xzeroaxis and put the xtics along it. Am I overlooking an obvious way to do this (in the matlab module)? fwiw, Alan |