X axis is drawn in ListPlot is often not at 0 but some other place i
rocky opened this issue · comments
In
ListPlot[Table[n ^ 2, {n, 10}]]
(and others) the dots for the data is misaligned from the 0 or the tick marks of the Y axis.
@TiagoCavalcanteTrindade is this something you'd be interested in?
#1437 adds an additional commit we don't want right now.
Sorry, I think it was my mistake in rebasing.
But this doesn't fix the problem.
Strange, I'll look at it.
#1437 adds an additional commit we don't want right now.
Sorry, I think it was my mistake in rebasing.
np.
But this doesn't fix the problem.
Strange, I'll look at it.
Many thanks.
@rocky the same function is being called by x and y tick numbers. The align of y must be to the right, while the align of the x must be to the center.
@rocky that function is added to the class by a add_conversion_fn
, and I don't see how it's called latter.
@TiagoCavalcanteTrindade Add print statements in the function.
Personally I do this:
pip install trepan3k
and where you want to stop and inspect:
from trepan.api import debug; debug()
The more conventional approach is:
import pdb; pdb.set_trace()
Ok - work on whatever suits you. The options dictionary is where you would add axis variables, and I am sure WL has defined a set of names to use and default values for these.