2011/11/24 Marianne C. <mariyanna.c@...287...>:
My name is Marianne, I am a beginner user of matplotlib.
I am using imshow in pyplot. I am desperate to get rid of
the ticks on both x and y axes (see attached picture). I
do not need the black box around the data either. Should
The cleanes solution, is to use the NullLocator. I'm not a user of
pylab Matlabish interface, but from what I know::
after importing matplotlib.ticker of course. Should work, but didn't try.
You are free to use the OO interface which yields the same.
Notice that upon clear() the locators are most probably lost.
gca() get the current Axes object. xaxis and yaxis are its Axis
attributes. The locator defines where to set ticks. If it's the
NoneLocator this is rather a stub to saying "don't place ticks ever".
But it's more clean than to force them directly to the empty list
because it'll survive at least limit changes. I don't know if the
manual method survives that. Otherwise it's also a matter of taste.
From the docs I do not see that you could hand over the locators
directly to the imshow call
For the frame, if it really matters, you can set the ``edgecolor``
probably to 'none', literally with the quotes. There's a Figure
object created when you create the plot, you can get it via gcf().
Try to figure out how to set its egdecolor either on construction or
later. If you are stuck tell.
Make sure to "reply to all".
On Thu, Nov 24, 2011 at 3:48 PM, Marianne C. <mariyanna.c@...287...> wrote: