Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to edit minor ticks in points() plot

Hey there,

I am working with various plots in the complex plane, for instance:

points([CDF(a // 5 - 3 + (a % 5 - 2)*i) for a in range(0, 35)])

How would one go about deleting the minor ticks? This is a particular case of the more general question: how does one gain finer control over matplotlib parameter when working with sage plotting primitives? (especially grids, axes, ticks, etc.).

I have tried passing Locator and Formatter arguments to points, but as far as I can tell this affects both major and minor ticks. I have also tried working with matplotlib objects direcly via points(...).matplotlib(), where one can then fine-tune those elements. But I cannot actually get it to plot what I would expect after modifying them.

Please help! And thank you