octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rudimentary tick positions


From: Shai Ayal
Subject: rudimentary tick positions
Date: Mon, 4 Feb 2008 22:51:45 +0200

attached is a patch for rudimentary tick position calculations. It is
a translation of Tom Holroyd's python code which he posted to this
list some weeks ago (Tom, I hope that by posting the code here you
agreed to it's use in octave ...).
What is missing is:
*) log axes ticks
*) minor ticks
*) does not take into account the axes size and font size to eliminate
tick overruns
*) gnuplot interaction
*) your favorite feature here

Still, I think it is good enough to serve as a basis to the above improvements.

Shai

2008-02-04  Shai Ayal  <address@hidden>

        * graphics.h.in (axes::properties): New update methods
        for {x,y,z}lims

        * graphics.cc (axes::properties::calc_ticks): New function for
        rudimentry tick position calculation
        (axes::properties::magform): New auxilary function for calc_ticks
        (axes::update_axis_limits): call update_{x,y,z}lims if appropriate

Attachment: calc_ticks.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]