You may just want to start with the "custom_ticker1.py" example here:
http://matplotlib.sourceforge.net/examples/pylab_examples/custom_ticker1.html
The meat of it is just to provide a function that converts the incoming
values (in your case pixel positions) into whatever you want to be
displaye
I want to let matplotlib control where the tick marks go, but I want to
scale the value of the tick labels. For example,
if my matrix has a 100 columns the tick marks might be [0,25,50,100]. I
want to scale these tick labels by some value say .01 so that the
corresponding tick labels would be [
What are you setting the x ticklabels to? If you want to control how
the numbers are displayed, you can create a custom formatter (which is
basically a function to convert a floating-point number to a string).
If you want to control the number of ticks across the axis, you can make
a custom t
Hi,
I'm using imshow to make an image of a 2-d matrix. I use
set_xticklabels to adjust the x-axis labels. The problem is that when I
then zoom in on the plot, the axis labels are not adjusted
appropriately. Does anyone suggestions on how I can fix this?
Thanks
Jeremy
--