rudimentary tick positions

Shai Ayal shaiay at gmail.com
Mon Feb 4 14:51:45 CST 2008


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  <shaiay at users.sourceforge.net>

	* 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: calc_ticks.patch
Type: text/x-patch
Size: 4168 bytes
Desc: not available
Url : https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080204/a23428bb/attachment.bin 


More information about the Octave-maintainers mailing list