This has been irritating for a long time. I have tried to look at
this code too but I find it confusing. I have been reduced to writing
my own code to produce axes (sometimes I need some funny things, like
2 sets of axes for a plot with two different scales). There is
probably already a ticket for this but I'm not sure what it is off
hand.
In general there needs to be clearer ways to override the choices that
plot makes. For example, I think currently that when one specifies
xmin, xmax, etc, the plot is still padded out a little, which is
sometimes unacceptable. It also sometimes put the axes in the middle
of the plot, sometimes on the side...ack.
Maybe it would make sense to make an alternative plot command,
something like "manual_plot", with more direct and fine-grained
control. Doing it from scratch might be easier than changing the
current code.
-M. Hampton
On Nov 1, 9:29 am, "David Joyner" <
wdjoy...@gmail.com> wrote:
> This probably doesn't help, but there is a method in axes.py called
> "tasteless_tick_marks" which I guess you have to figure out how to use
> somehow.
>
> sage: from sage.plot.axes import Axes
> sage: P = plot(x^2,2,10)
> sage: Axes(P)._tasteless_ticks(2,10, 10)
>
> ([9.1999999999999993,
> 8.4000000000000004,
> 2.0,
> 4.4000000000000004,
> 6.0,
> 5.2000000000000002,
> 10.0,
> 6.8000000000000007,
> 3.6000000000000001,
> 7.6000000000000005,
> 2.7999999999999998],
> 9.1999999999999993,
> 0.80000000000000004)
>
> I couldn't figure it out though.
>