mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core

Home Page:https://mathics.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

@rocky #1428 should fix this, it was merged, but I saw here that its change is not applied 🤔.

@TiagoCavalcanteTrindade Thanks for the investigation and information. #1437 adds an additional commit we don't want right now. Commit 2de5524 adds the #1428 back in. But this doesn't fix the problem.

#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()

@rocky I think I'm going to do other thing right now, that function is being called here, and there we don't have a axis variable or something like that.

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.