Hi,
I'm plotting an array, stored as 'data'. It starts out as just the
data, but I add little strips on the left and bottom to highlight
certain ranges (black where I want the highlights and white where I
don't). I use concatenate to tack those strips onto my data array, so
'data' ends up bigger than it should be. I then want the ticks and
labels to ignore the strips.
I can set the major ticks explicitly like this:
pylab.xticks(mlab.linspace(offset,data.shape[0],num_major_ticks)
But I didn't see an obvious way to set the minor ticks explicitly. I
made a fragile locator class like this::
class ExplicitLinearLocator(Locator):
def __init__(self,vmin,vmax,numticks):
self.vmin = vmin
self.vmax = vmax
self.numticks=numticks
def __call__(self):
return mlab.linspace(self.vmin,self.vmax,self.numticks)
But it seems like I should either beef that up or just set the minor
ticks explicitly. How do I do that?
Thanks,
-michael
--
Biophysics Graduate Student
Carlson Lab, University of Michigan
http://www.umich.edu/~mlerner http://lernerclan.net
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users